<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — reverse buildings from map into unity 3D space or vice-versa]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1712</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1712&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in reverse buildings from map into unity 3D space or vice-versa.]]></description>
		<lastBuildDate>Fri, 12 Mar 2021 10:20:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7241#p7241</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 12 Mar 2021 10:20:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7241#p7241</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7239#p7239</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zhenkai)]]></author>
			<pubDate>Fri, 12 Mar 2021 08:27:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7239#p7239</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7238#p7238</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zhenkai)]]></author>
			<pubDate>Fri, 12 Mar 2021 02:07:51 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7238#p7238</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7235#p7235</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 11 Mar 2021 11:50:25 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7235#p7235</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7234#p7234</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zhenkai)]]></author>
			<pubDate>Thu, 11 Mar 2021 10:08:13 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7234#p7234</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7233#p7233</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 11 Mar 2021 08:57:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7233#p7233</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7232#p7232</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zhenkai)]]></author>
			<pubDate>Thu, 11 Mar 2021 08:11:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7232#p7232</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7231#p7231</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zhenkai)]]></author>
			<pubDate>Thu, 11 Mar 2021 02:15:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7231#p7231</guid>
		</item>
		<item>
			<title><![CDATA[Re: reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7222#p7222</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 10 Mar 2021 09:29:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7222#p7222</guid>
		</item>
		<item>
			<title><![CDATA[reverse buildings from map into unity 3D space or vice-versa]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7221#p7221</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zhenkai)]]></author>
			<pubDate>Wed, 10 Mar 2021 07:32:58 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7221#p7221</guid>
		</item>
	</channel>
</rss>
