<?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 draw a custom layer(fog-like) on map?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=167</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=167&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to draw a custom layer(fog-like) on map?.]]></description>
		<lastBuildDate>Thu, 06 Apr 2017 23:59:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2161#p2161</link>
			<description><![CDATA[<p>Example attached.<br />I hope this helps.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 06 Apr 2017 23:59:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2161#p2161</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2154#p2154</link>
			<description><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>This will give you the acceleration of only one operation (multiplication) per pixel, and will not affect performance.<br />To greatly increase performance, you need to use optimization tricks (for example see post 8).</p></blockquote></div><p>Thanks. I have a list of tiles in zoom 17 that has been visited and I want to show them in all possible zooms as you do here.</p><p>I find it difficult to change your code to do this simple thing though.</p>]]></description>
			<author><![CDATA[null@example.com (Brigos)]]></author>
			<pubDate>Wed, 05 Apr 2017 09:20:39 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2154#p2154</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2153#p2153</link>
			<description><![CDATA[<p>Hello.</p><p>This will give you the acceleration of only one operation (multiplication) per pixel, and will not affect performance.<br />To greatly increase performance, you need to use optimization tricks (for example see post 8).</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 05 Apr 2017 02:02:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2153#p2153</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2151#p2151</link>
			<description><![CDATA[<p>Could you please add a short piece of code with a simple change of the circle into square?</p><p>It seems to me overly complicated and something is telling me that if I wanted to show &quot;tile&quot; square instead of the circle, it could be less performance-demanding.</p>]]></description>
			<author><![CDATA[null@example.com (Brigos)]]></author>
			<pubDate>Tue, 04 Apr 2017 17:15:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2151#p2151</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=817#p817</link>
			<description><![CDATA[<p>Oh! That&#039;s what I am trying.<br />Was wondering if there is other better way to do it.<br />But it looks like it is very good already.<br />Thank you!!</p>]]></description>
			<author><![CDATA[null@example.com (vincentno1)]]></author>
			<pubDate>Thu, 30 Jun 2016 16:34:40 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=817#p817</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=815#p815</link>
			<description><![CDATA[<p>Hello.</p><p>Actually, I do not see a problem to do it.<br />In «Start» generates «defaultFog». <br />You comment (remove) these lines and use the fog texture (with Read / Write Enabled - ON).<br />That&#039;s all. You have fog texture.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 29 Jun 2016 21:13:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=815#p815</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=812#p812</link>
			<description><![CDATA[<p>Thank you for these hints!<br />Working hard on it now.</p><p>By «more fog-like» I mean draw a fog overlay looks like natural fog, instead of flat white layer.<br />I am trying loading texture to default fog and then adjust the transparency around the points.<br />Since you have great experience on Unity, wondering if you think of anything other approach I can try? Maybe some masking function might be useful? If you could give me some keywords, that will be a big help!</p><p>Thank you!</p><p>Sincerely,<br />Vincent</p>]]></description>
			<author><![CDATA[null@example.com (vincentno1)]]></author>
			<pubDate>Wed, 29 Jun 2016 03:43:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=812#p812</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=794#p794</link>
			<description><![CDATA[<p>Hello.</p><p>You have a few ways optimize the algorithm, for example:<br />1. Reduce the number of points.<br />Convert geographic coordinates to tile coordinates. <br />If the distance to the last drawn point less than 3-10 pixels, ignore this point.<br />2. Cache fog texture for the previously generated tiles.<br />3. In some places, this code can be optimized to reduce the amount of computation.</p><p>What do you mean «more fog-like».<br />Please explain in detail.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 26 Jun 2016 21:37:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=794#p794</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=791#p791</link>
			<description><![CDATA[<p>Hi Alex,</p><p>I am working on optimizing this fogOverlay.<br />I used SQLite to optimize ways to store and search for points(visited).<br />But I really have no clue how to optimize the rendering part make it faster and more fog-like.<br />Do you have any thought on it might help me?</p><p>Thanks,<br />Vincent</p>]]></description>
			<author><![CDATA[null@example.com (vincentno1)]]></author>
			<pubDate>Sat, 25 Jun 2016 10:23:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=791#p791</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=760#p760</link>
			<description><![CDATA[<p>Yes, this code should be optimized.<br />This is just the initial implementation of the idea.</p><p>Yes, you can have a different radius and fogTextureResolution.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 17 Jun 2016 20:01:32 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=760#p760</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=759#p759</link>
			<description><![CDATA[<p>May I say you&#039;re godlike to me?!<br />Thanks for this big help!<br />It might takes months for me to figure out by myself.<br />Although it&#039;s late in night here, I am too exciting too sleep now.</p><p>One more question,<br />if I want to improve the performance (since I will have lots of point to set as unfog)<br />should I start from make Radius and fogTextResolution vary with different zoom size?<br />Any other suggestion where I should work on?<br />Thank you very much again.</p><p>Sincerely,<br />Vincent</p>]]></description>
			<author><![CDATA[null@example.com (vincentno1)]]></author>
			<pubDate>Fri, 17 Jun 2016 16:59:50 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=759#p759</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=757#p757</link>
			<description><![CDATA[<p>Example attached.<br />Requires Online Maps v2.4.0.41+.<br />If you do not have it, just update Online Maps through the built-in update system.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 17 Jun 2016 13:23:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=757#p757</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=754#p754</link>
			<description><![CDATA[<p>Omg!<br />Are you some kind of angel?!<br />Thank you very much!</p>]]></description>
			<author><![CDATA[null@example.com (vincentno1)]]></author>
			<pubDate>Fri, 17 Jun 2016 02:15:17 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=754#p754</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=751#p751</link>
			<description><![CDATA[<p>Hello.</p><p>I think the hints here will not be enough.<br />We will make an example of how to do it.<br />It takes time.<br />I hope within 24 hours we will give you an example.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 16 Jun 2016 20:48:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=751#p751</guid>
		</item>
		<item>
			<title><![CDATA[How to draw a custom layer(fog-like) on map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=750#p750</link>
			<description><![CDATA[<p>Hi,<br />I just bought this awesome asset on Unity.<br />It&#039;s great! Thanks for your great work.</p><p>I am trying to build a location base game. So I need to add an extra layer which stands for fog on the map.<br />and once user been to the place (I will use GPS to get the position) the fog will go away.<br />(Just like you are playing a computer game, something like Warcraft.)<br />Could you give me some hints how should I build this?<br />Since I am pretty new to Unity, any hint from anyone will be very helpful.<br />Thanks in advance.</p><p>Sincerely,<br />Vincent</p>]]></description>
			<author><![CDATA[null@example.com (vincentno1)]]></author>
			<pubDate>Thu, 16 Jun 2016 14:06:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=750#p750</guid>
		</item>
	</channel>
</rss>
