<?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 — Line drawing doesn't go through points]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=445</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=445&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Line drawing doesn't go through points.]]></description>
		<lastBuildDate>Fri, 17 Mar 2017 20:09:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Line drawing doesn't go through points]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2043#p2043</link>
			<description><![CDATA[<p>When the size is not 256 * N, the coordinate transformation methods does not work properly, and almost nothing is correctly positioned.<br />So currently use the right size.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 17 Mar 2017 20:09:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2043#p2043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Line drawing doesn't go through points]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2038#p2038</link>
			<description><![CDATA[<p>Ah, I see. I was trying to map my own lines to the coordinate system in OnlineMaps, but couldn&#039;t figure out how to. I tried use GetWorldPosition, and then set the lines at that point, but that did not seem to work. Do you potentially know why?</p>]]></description>
			<author><![CDATA[null@example.com (nbhandari)]]></author>
			<pubDate>Fri, 17 Mar 2017 13:22:27 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2038#p2038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Line drawing doesn't go through points]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2021#p2021</link>
			<description><![CDATA[<p>Hello.</p><p>We were able to reproduce the problem.<br />Yes, this is because the size is not 256 * N.<br />Thank you for reporting the problem.</p><p>We will try to fix it.<br />But this is perhaps the most deep and difficult problem that I ever seen (in Online Maps), and I do not know how long it will take.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 16 Mar 2017 00:22:27 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2021#p2021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Line drawing doesn't go through points]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2017#p2017</link>
			<description><![CDATA[<p>Hi,</p><p>I tried playing around with width/height of map. It was set to 1920x1920. I tried setting it to 256x256 and it worked, so I thought it might be a resolution issue. Then I tried 512, then 1024, and they worked. I tried 1080, and it was wrong again. Then I tried 2048, and it was fine (albeit a bit slow). </p><p>It seems to only work when it&#039;s a power of 2. Is it because the tiling is set in powers of 2?</p>]]></description>
			<author><![CDATA[null@example.com (nbhandari)]]></author>
			<pubDate>Wed, 15 Mar 2017 15:20:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2017#p2017</guid>
		</item>
		<item>
			<title><![CDATA[Re: Line drawing doesn't go through points]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1939#p1939</link>
			<description><![CDATA[<p>Hello.</p><p>Possible there is not enough accuracy with such a small line thickness.<br />Please show your Online Maps settings and GameObject Transform.<br />We will try to reproduce and fix the problem.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 08 Mar 2017 11:27:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1939#p1939</guid>
		</item>
		<item>
			<title><![CDATA[Line drawing doesn't go through points]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1937#p1937</link>
			<description><![CDATA[<p>We have a bunch of markers, and wish to draw lines connecting them. When using the Drawing API, none of the lines are passing through the marker points.</p><p>I&#039;ve had to scale my markers down to .005f, as in the HTC Vive, they come out huuuuuge otherwise. I&#039;m not sure if this would affect it, and they would otherwise be in the correct place? </p><p>I set the line weight to .001f, as again, it just covers the entire map otherwise. </p><p>My code&#039;s fairly simple:</p><p>foreach (double[] coord in geoms)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 pos = new Vector2((float)coord[0], (float)coord[1]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsMarker3D marker3D = control.AddMarker3D(pos,spawnPrefab);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; marker3D.scale = 0.005f;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //positions.Add(pos);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; double[] positions = geoms.SelectMany(i =&gt; i).ToArray();<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsDrawingLine line = new OnlineMapsDrawingLine(positions, Color.green, .001f);<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.AddDrawingElement(line);</p><br /><p>Any idea?</p>]]></description>
			<author><![CDATA[null@example.com (nbhandari)]]></author>
			<pubDate>Tue, 07 Mar 2017 14:22:31 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1937#p1937</guid>
		</item>
	</channel>
</rss>
