<?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 — Real world mapping]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=226</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=226&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Real world mapping.]]></description>
		<lastBuildDate>Wed, 03 Aug 2016 11:03:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Real world mapping]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1028#p1028</link>
			<description><![CDATA[<p>I understand it.<br />I&#039;m just trying to explain that the map does not know real size of your GameObject.</p><p>Let us suppose you have GameObject with the structure:<br />Prefab (Scale - 1, 1, 1) / Cube (Scale - 1, 1, 1).<br />The real size of GameObject (1, 1, 1).<br />But you can have GameObject:<br />Prefab (Scale - 1, 1, 1) / Cube (Scale - 10, 10, 10).<br />GameObject have Scale (1, 1, 1), but the real size (10, 10, 10).<br />Map does not know it. Actually, the map does not need to know it.</p><p>To work around this problem, you use this example.</p><p>Step-by-step instruction:<br />1. Run the scene and find the location where building should be.<br />2. Create a new empty GameObject.<br />3. Create a an instance of the building as a child of the empty GameObject.<br />4. Adjust the building GameObject on the map.<br />5. Create a prefab from the outer GameObject.<br />6. Reset position of building in prefab.<br />7. Set position.y building so that the bottom of the building was to 0. <br />Otherwise, you can have part of the building below the map.<br />8. Use a prefab as 3d marker in the example.</p><p>In this case, you will always have the correct size of the building.</p><p>Script «Aircraft.cs» attached.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 03 Aug 2016 11:03:05 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1028#p1028</guid>
		</item>
		<item>
			<title><![CDATA[Re: Real world mapping]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1025#p1025</link>
			<description><![CDATA[<p>The example keeps a marker at a constant scale despite map scale changes. What I was asking is how do i scale a marker to match the scale of the map in real world units?</p><p>Let say a marker is a one hundred meter cube. How do I scale it so that when placed on a map it is always in the correct base dimensions and height for the scale of the map?</p><p>An example of this is simply wanting to place 3D buildings on a map.</p><p>Additionally, I am trying to evaluate this Asset for purchase. I can&#039;t see the Aircraft.cs code. Can you supply a snippet or tell me what API calls allow for the aircraft to fly at the proper scale above the ground?</p>]]></description>
			<author><![CDATA[null@example.com (derek150050)]]></author>
			<pubDate>Wed, 03 Aug 2016 04:39:40 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1025#p1025</guid>
		</item>
		<item>
			<title><![CDATA[Re: Real world mapping]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1016#p1016</link>
			<description><![CDATA[<p>Hello.</p><p>Example how to change the scale of markers by zoom:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MarkerScaleByZoomExample.html">http://infinity-code.com/atlas/online-m … ample.html</a><br />But scale it is not meters or units. It&#039;s just a relative value.<br />So you need to make a marker that, for example, when zoom=15 has size=1 unit. <br />In this case at zoom=14 it will have a size=0,5 units, etc.</p><p>Example how to make the altitude, see in «Assets / Infinity Code / Online Maps / Examples / Scripts / Aircraft.cs». <br />Altitude in meters.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 02 Aug 2016 11:16:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1016#p1016</guid>
		</item>
		<item>
			<title><![CDATA[Real world mapping]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1011#p1011</link>
			<description><![CDATA[<p>How do I have a Unity object above the map in the correct location, scale, and a chosen elevation above the locations elevation on the map?</p><p>Is there an example?</p><p>I don&#039;t see in the API a way to tell what y (height) parameters for the object should be and what in what units (meters).</p><p>Is a OnlineMapsMarker3D the only way as these seemed to be located on the surface only as they don&#039;t have elevation parameters?</p>]]></description>
			<author><![CDATA[null@example.com (derek150050)]]></author>
			<pubDate>Tue, 02 Aug 2016 05:42:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1011#p1011</guid>
		</item>
	</channel>
</rss>
