<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Real world mapping]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=226&amp;type=atom" />
	<updated>2016-08-03T11:03:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=226</id>
		<entry>
			<title type="html"><![CDATA[Re: Real world mapping]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1028#p1028" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-03T11:03:05Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1028#p1028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Real world mapping]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1025#p1025" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[derek150050]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=209</uri>
			</author>
			<updated>2016-08-03T04:39:40Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1025#p1025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Real world mapping]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1016#p1016" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-02T11:16:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1016#p1016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Real world mapping]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1011#p1011" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[derek150050]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=209</uri>
			</author>
			<updated>2016-08-02T05:42:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1011#p1011</id>
		</entry>
</feed>
