<?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 — Markers as filters to draw map]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2203</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2203&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Markers as filters to draw map.]]></description>
		<lastBuildDate>Mon, 27 Nov 2023 18:36:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Markers as filters to draw map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9275#p9275</link>
			<description><![CDATA[<p>Make a float array in the shader that looks like [m1.x, m1.z, m2.x, m2.z, ... etc] and pass it to the shader.<br /><a href="https://stackoverflow.com/questions/45098671/how-to-define-an-array-of-floats-in-shader-properties">https://stackoverflow.com/questions/450 … properties</a><br />In the shader, make a loop that will go through all the world positions of the markers, and calculate the texture color.<br />Actually it will be a fairly uncomplicated shader that will have good performance.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 27 Nov 2023 18:36:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9275#p9275</guid>
		</item>
		<item>
			<title><![CDATA[Re: Markers as filters to draw map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9274#p9274</link>
			<description><![CDATA[<p>Got it. Any hint on how to pass multiple markers positions + radius to the custom shader? Because with the built-in Properties I&#039;m not sure I&#039;m able to.</p><p>Or would I need to provide a dynamically built texture to be used as a mask? Could this compromise performance?</p>]]></description>
			<author><![CDATA[null@example.com (victors.cv)]]></author>
			<pubDate>Sun, 26 Nov 2023 23:38:33 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9274#p9274</guid>
		</item>
		<item>
			<title><![CDATA[Re: Markers as filters to draw map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9273#p9273</link>
			<description><![CDATA[<p>You do not need to modify or inherit Tileset.<br />Just specify your shader in the Tileset / Materials &amp; Shaders / Tileset Shader field.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 26 Nov 2023 22:01:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9273#p9273</guid>
		</item>
		<item>
			<title><![CDATA[Re: Markers as filters to draw map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9272#p9272</link>
			<description><![CDATA[<p>Thank you Alex!</p><p>So I&#039;ll create a new shader an add it as a final step to the tileset rendering, through inheritance of the MonoBehaviour responsible for rendering (OnlineMapsTileSetControl). Extend controller class and leave the original shaders intact. WDYT?</p><p>I&#039;m not that experienced with shader programming but I&#039;ll give it a try nevertheless. If it works, I&#039;ll be happy to share it to complement the examples repo.</p>]]></description>
			<author><![CDATA[null@example.com (victors.cv)]]></author>
			<pubDate>Sun, 26 Nov 2023 13:59:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9272#p9272</guid>
		</item>
		<item>
			<title><![CDATA[Re: Markers as filters to draw map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9271#p9271</link>
			<description><![CDATA[<p>Hello.</p><p>I think the best way to achieve this is to make a custom shader that will store the world positions of the markers (and update them when the map is moved) and draw the map only within a certain radius of the marker.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 26 Nov 2023 11:26:17 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9271#p9271</guid>
		</item>
		<item>
			<title><![CDATA[Markers as filters to draw map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9269#p9269</link>
			<description><![CDATA[<p>Hello everyone, hope you are all doing fine!</p><p>I want to make something similar to the <a href="https://infinity-code.com/atlas/online-maps/pages/BouncingCircle.html">Bouncing Circle example</a>, but instead of creating drawing polys around the markers, I want to use the markers as filters to render the other map elements. </p><p>In other words, I want a blank map (custom texture) that only draws real map data around markers. Picture it as candles (markers) in the dark (custom texture). Like in Bouncing Circle example, rendered area should respect the map zoom and multiple filter markers should be supported.</p><p>What would be the best approach to achieve this? Any help in this matter will be much appreciated.</p><p>Thanks in advance,</p><p>Victor</p>]]></description>
			<author><![CDATA[null@example.com (victors.cv)]]></author>
			<pubDate>Sun, 26 Nov 2023 00:56:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9269#p9269</guid>
		</item>
	</channel>
</rss>
