<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to draw a custom layer(fog-like) on map?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=167&amp;type=atom" />
	<updated>2017-04-06T23:59:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=167</id>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2161#p2161" />
			<content type="html"><![CDATA[<p>Example attached.<br />I hope this helps.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-06T23:59:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2161#p2161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2154#p2154" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Brigos]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=405</uri>
			</author>
			<updated>2017-04-05T09:20:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2154#p2154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2153#p2153" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-05T02:02:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2153#p2153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2151#p2151" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Brigos]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=405</uri>
			</author>
			<updated>2017-04-04T17:15:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2151#p2151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=817#p817" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vincentno1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=164</uri>
			</author>
			<updated>2016-06-30T16:34:40Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=817#p817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=815#p815" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-29T21:13:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=815#p815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=812#p812" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vincentno1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=164</uri>
			</author>
			<updated>2016-06-29T03:43:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=812#p812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=794#p794" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-26T21:37:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=794#p794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=791#p791" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vincentno1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=164</uri>
			</author>
			<updated>2016-06-25T10:23:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=791#p791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=760#p760" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-17T20:01:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=760#p760</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=759#p759" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vincentno1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=164</uri>
			</author>
			<updated>2016-06-17T16:59:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=759#p759</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=757#p757" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-17T13:23:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=757#p757</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=754#p754" />
			<content type="html"><![CDATA[<p>Omg!<br />Are you some kind of angel?!<br />Thank you very much!</p>]]></content>
			<author>
				<name><![CDATA[vincentno1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=164</uri>
			</author>
			<updated>2016-06-17T02:15:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=754#p754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=751#p751" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-16T20:48:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=751#p751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to draw a custom layer(fog-like) on map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=750#p750" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vincentno1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=164</uri>
			</author>
			<updated>2016-06-16T14:06:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=750#p750</id>
		</entry>
</feed>
