<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — how to keep 2D Marker Order stable when using multiple textures?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2351&amp;type=atom" />
	<updated>2025-04-11T09:47:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2351</id>
		<entry>
			<title type="html"><![CDATA[Re: how to keep 2D Marker Order stable when using multiple textures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9802#p9802" />
			<content type="html"><![CDATA[<p>First of all sorry for the late reply, and thank you for your swift response and the script.<br />I found a solution now - your script sadly had a few issues* but helped me understand how to solve it. *markers rendered in front of UI and also markers now showing up at bottom part of map sometimes but that might also be issues arising from the logic of my side. <br />Anyways for now I am going the 3D-Markers route and added a &quot;index&quot; field to each marker which is assigned once when markers are created which I use to set the y-coordinate, this way I can have the behaviour I want which is that most recent markers are rendered on top of older ones, which not only results in stable order but results in a map where the visuals match closer to the data distribution than rendering all the different marker colors in a specific order which results in a dominance of the last drawn color.</p>]]></content>
			<author>
				<name><![CDATA[aurelwu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=16587</uri>
			</author>
			<updated>2025-04-11T09:47:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9802#p9802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to keep 2D Marker Order stable when using multiple textures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9793#p9793" />
			<content type="html"><![CDATA[<p>I have written a new marker drawer for you (attached) that will fix the problem.<br />Just add this component to the map.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2025-03-21T14:29:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9793#p9793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to keep 2D Marker Order stable when using multiple textures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9788#p9788" />
			<content type="html"><![CDATA[<p>A workaround is to use 3D markers that will look like 2D markers + a custom shader that will sort the markers on the Z axis of the scene or the Y axis of the screen.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2025-03-16T18:19:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9788#p9788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to keep 2D Marker Order stable when using multiple textures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9787#p9787" />
			<content type="html"><![CDATA[<p>Thank you for the quick reply.<br />Do you have any ideas for workarounds in the meantime? I guess using a single texture which acts as texture atlas might work?<br />PS: really like the package so far, bought it a long time ago but only recently found a usecase for it and aside from that minor annoyance it is working great and intuitive to use and extend.</p>]]></content>
			<author>
				<name><![CDATA[aurelwu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=16587</uri>
			</author>
			<updated>2025-03-16T14:09:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9787#p9787</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to keep 2D Marker Order stable when using multiple textures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9786#p9786" />
			<content type="html"><![CDATA[<p>Hi. </p><p>Thank you very much for the bug report.<br />I will definitely fix it, but I don&#039;t know how long it will take because the problem is quite deep.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2025-03-16T14:00:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9786#p9786</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[how to keep 2D Marker Order stable when using multiple textures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9785#p9785" />
			<content type="html"><![CDATA[<p>Hi,<br />when using just 1 marker texture this problem does not occur and I followed the example here <a href="https://infinity-code.com/atlas/online-maps/pages/MarkerScaleByZoomExample.html">https://infinity-code.com/atlas/online- … ample.html</a> </p><p>However when assigning multiple different textures to markers then sometimes at change of zoom level or when moving around suddenly all markers of one texture are drawn in front of another even if they previously where behind. I attached a screenshot to show that.</p><p>Is there something what I can change to make sure this does not happen? I also tried a custom comparer which uses a fixed assigned z-value to all markers and looking at what happens with the debugger attached this comparer also is definitely used - however the behaviour is still the same.</p>]]></content>
			<author>
				<name><![CDATA[aurelwu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=16587</uri>
			</author>
			<updated>2025-03-15T20:28:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9785#p9785</id>
		</entry>
</feed>
