<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to smooth the line for route drawing?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1887&amp;type=atom" />
	<updated>2021-12-07T00:46:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1887</id>
		<entry>
			<title type="html"><![CDATA[Re: How to smooth the line for route drawing?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7951#p7951" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-12-07T00:46:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7951#p7951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to smooth the line for route drawing?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7949#p7949" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mikejm]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1782</uri>
			</author>
			<updated>2021-12-06T08:52:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7949#p7949</id>
		</entry>
</feed>
