<?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 — How to smooth the line for route drawing?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1887</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1887&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to smooth the line for route drawing?.]]></description>
		<lastBuildDate>Tue, 07 Dec 2021 00:46:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to smooth the line for route drawing?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7951#p7951</link>
			<description><![CDATA[<p>Hello.</p><p>Drawing API does not have anti-aliasing when drawing to a texture, and therefore you can see such a ladder.<br />It cannot be fixed.<br />You have two ways to work around this:<br />1. Use Tileset. This mode works differently and will not have ladders.<br />2. Use some third-party Drawing API.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 07 Dec 2021 00:46:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7951#p7951</guid>
		</item>
		<item>
			<title><![CDATA[How to smooth the line for route drawing?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7949#p7949</link>
			<description><![CDATA[<p>I have the route drawing function for Google Maps working nicely, but I notice the line that is drawn has a bit of &quot;jitter&quot; to it. I attached a screencap which may show it. It is simply not a perfectly smooth line, but rather a slightly wiggly/scribbly line with slight noise to its motion.</p><p>I am wondering what this jitter comes from and whether I can smooth it and how. </p><p>How does the route function return from Google API? Is it giving a discrete number of latitude/longitude pairs which this line is then the direction drawing of from one to the other? </p><p>Is there jitter because it is drawing only horizontal/vertical between the points (step ladder)? Or is there jitter from noise in Google API&#039;s results? </p><p>Could it be smoothed by interpolating or local averaging?</p><p>Which function would I want to manipulate to fix this problem if it is fixable?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (mikejm)]]></author>
			<pubDate>Mon, 06 Dec 2021 08:52:28 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7949#p7949</guid>
		</item>
	</channel>
</rss>
