<?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 — Marker created at center of map is 1 unit off]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1901</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1901&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Marker created at center of map is 1 unit off.]]></description>
		<lastBuildDate>Mon, 10 Jan 2022 15:32:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Marker created at center of map is 1 unit off]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8008#p8008</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 10 Jan 2022 15:32:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8008#p8008</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker created at center of map is 1 unit off]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8007#p8007</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Mon, 10 Jan 2022 14:44:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8007#p8007</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker created at center of map is 1 unit off]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8006#p8006</link>
			<description><![CDATA[<p>Hello.</p><p>What values do you have in map.position, map.floatZoom and markerPosition?</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 10 Jan 2022 11:01:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8006#p8006</guid>
		</item>
		<item>
			<title><![CDATA[Marker created at center of map is 1 unit off]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8005#p8005</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Mon, 10 Jan 2022 03:51:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8005#p8005</guid>
		</item>
	</channel>
</rss>
