<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — reverse buildings from map into unity 3D space or vice-versa]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1712&amp;type=atom" />
	<updated>2021-03-12T10:20:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1712</id>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7241#p7241" />
			<content type="html"><![CDATA[<p>If you mean the source code, then it is inside the control scripts (there are many different scripts). But why do you need it? You don&#039;t need to modify the source code to override any map behavior. You can easily implement almost anything through the API.</p><p>See OnlineMapsKeyboardInput for an example of how to move the map using buttons.<br />And disable Allow User Control in the control inspector (most likely Tileset).</p><p>It&#039;s much easier:<br /></p><div class="codebox"><pre><code>OnlineMapsMarker3DManager.RemoveAllItems()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-03-12T10:20:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7241#p7241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7239#p7239" />
			<content type="html"><![CDATA[<p>Hi all, I am trying to destroy all 3D marker using this:<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsInteractiveElementManager.html#a990942195213c88fe5b987ce18930c6d">https://infinity-code.com/doxygen/onlin … ce18930c6d</a></p><p>I tried the following code:</p><p>public void DestroyAll3DMarker()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsInteractiveElementManager&lt;OnlineMapsMarker3DManager, IOnlineMapsInteractiveElement&gt;.RemoveAllItems();<br />&nbsp; &nbsp; }</p><p>And there&#039;s an error when I try to run the method. This is probably more related to programming instead of the asset itself but can anyone help to explain this? I am unsure of what to fill within the &quot;&lt;&gt;&quot; for the code to work</p>]]></content>
			<author>
				<name><![CDATA[zhenkai]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1561</uri>
			</author>
			<updated>2021-03-12T08:27:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7239#p7239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7238#p7238" />
			<content type="html"><![CDATA[<p>Thanks for all the answers, really help to clarify many of my doubts and solve many of my problems. May I know where I can look into the code that is related to the movement of the map?</p><p>I am still trying to apply the following:<br />&quot;May I also know where to look for the code that controls the map shown when we click and drag to tileset? Instead of clicking and dragging the tileset to move the map, I would like to convert it into 4 UI buttons that move the map in 4 directions, up, down, left, and right. Thanks in advance!!&quot;</p><p>The rationale for doing so is that I am currently putting the Online map into an environment that is somewhat similar to Unity&#039;s Scene, as such, I am unable to directly move the map by clicking and dragging on it and thus extra buttons are required to move the map. Would highly welcome any suggestions that can possibly help to solve this problem. Thank you!!</p>]]></content>
			<author>
				<name><![CDATA[zhenkai]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1561</uri>
			</author>
			<updated>2021-03-12T02:07:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7238#p7238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7235#p7235" />
			<content type="html"><![CDATA[<p>Floors is used when OSM does not have information about the height or number of floors in a building.<br />A random number is selected within the specified range.<br />Floor Height is used when OSM has no height data.</p><p>When using Real-world tileset size, buildings will automatically adjust to the size of the map.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-03-11T11:50:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7235#p7235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7234#p7234" />
			<content type="html"><![CDATA[<p>May I also ask about the &quot;buildings&quot; script, mainly regarding the &quot;Floor height&quot; and &quot;Floors&quot;. if I attach the &quot;Real-world tileset size example&quot; script does that mean that I wouldn&#039;t have to bother about the floor height and level of floors? Or must I always reset the number of floors depending on which building I am looking at? if I have a cluster of 5 buildings that have 5 levels, 10 levels, 20 levels, 1 level, and 100 levels how should I set the &quot;floors&quot; parameter? and what about building with different floor heights. Thank you once again for looking at my questions!</p>]]></content>
			<author>
				<name><![CDATA[zhenkai]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1561</uri>
			</author>
			<updated>2021-03-11T10:08:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7234#p7234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7233#p7233" />
			<content type="html"><![CDATA[<p>OnlineMapsInteractiveElementManager.RemoveAllItems<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsInteractiveElementManager.html#a990942195213c88fe5b987ce18930c6d">https://infinity-code.com/doxygen/onlin … ce18930c6d</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-03-11T08:57:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7233#p7233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7232#p7232" />
			<content type="html"><![CDATA[<p>Hi again, anyone knows if I can destroy all 3D markers with a button click? So a function that can wipe up all 3D markers. Currently, the prefab I use has a specific tag call &quot;marker&quot;. I tried to search all game object in the scene with tag == &quot;marker&quot; and destroy them. However, this causes an error when I re-instantiate ~400 markers. The total number of markers generated is more than what I specify in my code. So I assume I have to clear the markers properly instead of directly destroying them from the scene. </p><p>May I also know where to look for the code that controls the map shown when we click and drag to tileset? Instead of clicking and dragging the tileset to move the map, I would like to convert it into 4 UI buttons that move the map in 4 directions, up, down, left, and right. Thanks in advance!!</p>]]></content>
			<author>
				<name><![CDATA[zhenkai]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1561</uri>
			</author>
			<updated>2021-03-11T08:11:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7232#p7232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7231#p7231" />
			<content type="html"><![CDATA[<p>Hi, I am currently looking at the creating of the 3D marker example shown here <br /><a href="https://infinity-code.com/atlas/online-maps/pages/Marker3D_Example.html">https://infinity-code.com/atlas/online- … ample.html</a></p><p>May I ask how can I plot the 3D markers into the map automatically base on a given latitude, longitude, and altitude? thank you!</p><br /><p>Update: Manage to plot the 3D markers by creating it directly with longitude and latitude input as parameters. Then, assign the altitude value to the altitude variable in the 3D marker class &quot;OnlineMapsMarker3D&quot;.</p>]]></content>
			<author>
				<name><![CDATA[zhenkai]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1561</uri>
			</author>
			<updated>2021-03-11T02:15:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7231#p7231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7222#p7222" />
			<content type="html"><![CDATA[<p>Hello.</p><p>How to make that map had the real world size:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/RealTilesetSizeExample.html.">https://infinity-code.com/atlas/online- … mple.html.</a></p><p>You can create your cubes as 3D markers, and they will automatically position on the map, or you can position them yourself using API:<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBaseDynamicMesh.html#aae41909f01e255df50411eaeedf61eb0.">https://infinity-code.com/doxygen/onlin … eedf61eb0.</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-03-10T09:29:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7222#p7222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7221#p7221" />
			<content type="html"><![CDATA[<p>Hi all, I am currently looking at the &quot;Buildings&quot; scene in the Online map examples scene. It can help to create a 3D model on the map when the user zooms in to a certain selected range. I would like to ask for advice if it is possible to reverse these buildings into 3D world space, scaling their size into real building size, taking 1 unit of length in unity as 1 meter. Alternatively, I have a set of 400 - 1000 3D cubes in unity that are tag along with decimal latitude, longitude, and altitude values, will it be possible to plot them on the Map generated using infinity code? Just like the example scene, these image cubes are only shown when the user zoom into the particular GPS coordinates that these cubes are located.</p><p>Sorry, I am still clueless about how to achieve any of these functions and I don&#039;t have any code to show. Would greatly appreciate if anyone can give me some hint about how to achieve them or any suggestion are greatly welcomed.</p><p>Thanks in advance!!</p>]]></content>
			<author>
				<name><![CDATA[zhenkai]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1561</uri>
			</author>
			<updated>2021-03-10T07:32:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7221#p7221</id>
		</entry>
</feed>
