<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Marker created at center of map is 1 unit off]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1901&amp;type=atom" />
	<updated>2022-01-10T15:32:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1901</id>
		<entry>
			<title type="html"><![CDATA[Re: Marker created at center of map is 1 unit off]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8008#p8008" />
			<content type="html"><![CDATA[<p>Just checked it out.<br />Unfortunately, the formulas are not perfect, and there will always be a small error in the calculations (about 0.1%), and I cannot improve it.<br />For your settings and 1024x1024 map, I have an error of about 0.5 Unity World Point on the axis.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-01-10T15:32:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8008#p8008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker created at center of map is 1 unit off]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8007#p8007" />
			<content type="html"><![CDATA[<p>Thanks for the response Alex.&nbsp; Started a fresh Tileset Demo scene, here are the results:</p><div class="quotebox"><blockquote><p>3D marker created at map GO pos: (-511.0, 0.0, 511.0)</p><p>for markerPosition: (-109.31370000, 45.63195000)</p><p>for map.Position: (-109.31370000, 45.63195000)</p><p>for map floatZoom: 14</p><p>spawned AR scene object at pos: (-512.0, 0.0, 512.0)</p><p>dist between markers is: 1.4142 m</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2022-01-10T14:44:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8007#p8007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker created at center of map is 1 unit off]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8006#p8006" />
			<content type="html"><![CDATA[<p>Hello.</p><p>What values do you have in map.position, map.floatZoom and markerPosition?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-01-10T11:01:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8006#p8006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Marker created at center of map is 1 unit off]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8005#p8005" />
			<content type="html"><![CDATA[<p>Hi Alex</p><p>I&#039;ve be doing some prototyping with the tileset map demo, and noticed that the 3D marker created on gps loc changed event is not actually located at 0,0,0; which should be the center of the map. Here&#039;s my marker creation:</p><div class="quotebox"><blockquote><p>var marker3D = OnlineMapsMarker3DManager.CreateItem(markerPosition, markerPrefab);<br />Debug.Log(&quot;3D marker created at map GO pos: &quot; + marker3D.instance.gameObject.transform.position.ToString());</p><p>3D marker created at map GO pos: (1.0, 0.0, -1.0)</p></blockquote></div><p>Along with creating the 3D map marker, I also spawn a game object into the scene as follows:</p><div class="quotebox"><blockquote><p>var arObjPos = Camera.main.transform.position;<br /> arObjPos.y = 0;<br /> Debug.Log(&quot;spawned AR scene object at pos: &quot; + arObjPos.ToString());</p><p>spawned AR scene object at pos: (0.0, 0.0, 0.0)</p></blockquote></div><p>As I mentioned, it&#039;s the tileset control demo with a location service component added.&nbsp; Demo scene camera is at (-512, 1024, 512).&nbsp; Loc services uses update map setting.&nbsp; </p><p>Anyway, since the marker is at (1,0,-1) I thought that might be something you were doing, or maybe it was just accuracy variance, or worse yet something stupid I was doing.&nbsp; I tried re-creating the tileset demo&nbsp; with this setup multiple times and the result is always the same.</p><p>Any ideas?&nbsp; Thanks.</p>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2022-01-10T03:51:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8005#p8005</id>
		</entry>
</feed>
