<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Help using OnlineMapsDrawingLine with elevation data]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=442&amp;type=atom" />
	<updated>2017-03-28T15:58:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=442</id>
		<entry>
			<title type="html"><![CDATA[Re: Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2107#p2107" />
			<content type="html"><![CDATA[<p>With the default settings, I have the correct order of the elements (without the modified shader). Screenshot attached.<br />What shader do you use for tileset (Materials &amp; Shaders / Tileset Shader)?<br />Tileset or Tileset Cutout?</p><p>Unfortunately, there is no solution without modifying the shader.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-03-28T15:58:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2107#p2107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2096#p2096" />
			<content type="html"><![CDATA[<p>Hi Alex,&nbsp; I finally got some time to respond... I also upgraded to the latest stable release.</p><p>Your solution works but my users think it is broken because the lines appear on top of other game objects.</p><p>Is there a way to have the lines only appear through the map tiles and not other objects?<br />Would sort layers help?<br />Is there a non-shader solution to this problem?</p>]]></content>
			<author>
				<name><![CDATA[kalaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=215</uri>
			</author>
			<updated>2017-03-27T13:59:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2096#p2096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1929#p1929" />
			<content type="html"><![CDATA[<p>I&#039;m using the default shader with the change you recommended. <br />I have a tight deadline so I was afraid to update my assets. But I&#039;ll try v2.5.0.10 beta later today. <br />I&#039;ll let you know if I can update colors in real-time after I update.<br />Thanks</p>]]></content>
			<author>
				<name><![CDATA[kalaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=215</uri>
			</author>
			<updated>2017-03-03T19:26:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1929#p1929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1928#p1928" />
			<content type="html"><![CDATA[<p>Why exactly v2.5.0.9 beta?<br />In v2.5.0.8 beta and v2.5.0.9 beta tiles are not unloaded correctly, and you have a huge memory leak.<br />In this case is better to use v2.4.0.62 stable, v2.5.0.10 beta or the latest stable version.</p><p>I do not know is working changing color of line or not in v2.5.0.9 beta.<br />In latest version is working correctly.<br />A few days ago I was checking it.</p><p>What shader do you use for Tileset?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-03-03T19:02:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1928#p1928</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1927#p1927" />
			<content type="html"><![CDATA[<p>Thanks Alex, <br />That will work. I was hoping there was a solution without using a shader but it&#039;s a hard problem.</p><p>I have it working but I ran into a bug. Any changes to line color are being ignored. <br />OnlineMapsDrawingElement.InitMesh is responsible for changing the color but it will only do it if the mesh is null. This means I have to remove and add the drawing element every time I update the color. <br />Note: I&#039;m using an old version = 2.5.0.9</p>]]></content>
			<author>
				<name><![CDATA[kalaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=215</uri>
			</author>
			<updated>2017-03-03T18:25:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1927#p1927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1921#p1921" />
			<content type="html"><![CDATA[<p>Hello.</p><p>The easiest way is modify the shader (TilesetDrawingElement.shader).<br />Modify:<br /></p><div class="codebox"><pre><code>Tags {&quot;Queue&quot;=&quot;Transparent-50&quot; &quot;IgnoreProjector&quot;=&quot;True&quot; &quot;RenderType&quot;=&quot;Transparent&quot;}
LOD 200</code></pre></div><p>To:<br /></p><div class="codebox"><pre><code>Tags {&quot;Queue&quot;=&quot;Transparent-50&quot; &quot;IgnoreProjector&quot;=&quot;True&quot; &quot;RenderType&quot;=&quot;Transparent&quot;}
LOD 200
ZWrite Off
ZTest Always</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-03-02T08:07:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1921#p1921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Help using OnlineMapsDrawingLine with elevation data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1917#p1917" />
			<content type="html"><![CDATA[<p>Hi Alex,<br />I have a map with elevation data and I need to draw lines over it. I used OnlineMapsDrawingLine but when the elevation is higher between the points the line gets obstructed. I&#039;m not sure how to create a line that &quot;hugs&quot; the mesh.</p><p>Do you have a solution or can you recommend one? <br />By the way I have &quot;Collider Type&quot; set to &quot;simple mesh&quot; if that matters.</p>]]></content>
			<author>
				<name><![CDATA[kalaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=215</uri>
			</author>
			<updated>2017-03-02T04:53:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1917#p1917</id>
		</entry>
</feed>
