<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Fix overlap problem]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1308&amp;type=atom" />
	<updated>2019-08-21T00:02:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1308</id>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5454#p5454" />
			<content type="html"><![CDATA[<p>Unfortunately, I did not understand your question.<br />Please rephrase this.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-08-21T00:02:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5454#p5454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5452#p5452" />
			<content type="html"><![CDATA[<p>Hi Alex,<br />Thank you .</p><p>For the method of creating&nbsp; the horizon from the outline of the map (adding countX* countY tuiles from the outline of the map to gain performance).<br />It can be possible with Horizon_ArcGIS SCRIPT ?</p>]]></content>
			<author>
				<name><![CDATA[Amen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=994</uri>
			</author>
			<updated>2019-08-20T09:00:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5452#p5452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5438#p5438" />
			<content type="html"><![CDATA[<p>The problem is not in the shader. The problem is in the horizon.<br />This script was not designed that the map can be rotated or scaled.<br />How to fix it:<br /></p><div class="codebox"><pre><code>Horizon2_ArcGIS.UpdateMesh()
{
    Matrix4x4 matrix = transform.worldToLocalMatrix;
    // ...
    for (int x = 0; x &lt; countX; x++)
    // ...
        for (int y = 0; y &lt; countY; y++)
        // ...
            Vector3 v1 = matrix.MultiplyPoint(control.GetWorldPosition(px, py) + offset);
            // ...
            Vector3 v2 = matrix.MultiplyPoint(control.GetWorldPosition(px, py) + offset);
            // ...
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-08-14T00:29:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5438#p5438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5437#p5437" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>If you use this shader for a tileset, then just make a reverse shader for the horizon.<br /><a href="http://forum.infinity-code.com/viewtopic.php?pid=5354#p5354">http://forum.infinity-code.com/viewtopi … 5354#p5354</a><br /></p><div class="codebox"><pre><code>// ...
o.Alpha = saturate(scale);
// ...</code></pre></div></blockquote></div><br /><p>in the case where the map and the Horizon are oriented, rot.y=180, i have some unexpected result .How can I apply this shader of horizon whatever the rotation of the horizon?</p>]]></content>
			<author>
				<name><![CDATA[Amen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=994</uri>
			</author>
			<updated>2019-08-13T09:55:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5437#p5437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5381#p5381" />
			<content type="html"><![CDATA[<p>For horizon shader try using fadeRange - 0.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-07-30T18:15:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5381#p5381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5377#p5377" />
			<content type="html"><![CDATA[<p>Hello Amen and hello Alex,<br />I gave a try to your shaders (for the map and for the horizon) to get a better transition between map and horizon, but I get a transparent ring around the map.<br />Do I&#039;m missing something?<br />Many thanks!</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-07-30T15:55:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5377#p5377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5360#p5360" />
			<content type="html"><![CDATA[<p>Thank youuu ,you&#039;re a genius</p>]]></content>
			<author>
				<name><![CDATA[Amen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=994</uri>
			</author>
			<updated>2019-07-23T08:25:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5360#p5360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5357#p5357" />
			<content type="html"><![CDATA[<p>Hello.</p><p>If you use this shader for a tileset, then just make a reverse shader for the horizon.<br /><a href="http://forum.infinity-code.com/viewtopic.php?pid=5354#p5354">http://forum.infinity-code.com/viewtopi … 5354#p5354</a><br /></p><div class="codebox"><pre><code>// ...
o.Alpha = saturate(scale);
// ...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-07-22T17:14:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5357#p5357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Fix overlap problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5353#p5353" />
			<content type="html"><![CDATA[<p>Hi,<br />When I attach horizon to the map, I found overlap between the map&#039;s eleavation and the horizon as in the next capture.</p><p>It&#039;s possible to solve this problem of superposition.<br />what I propose is :<br />-that either we can create the horizon from the outline of the map ,but I do not know how I can do that<br />-either we put a shader in the part of the horizon that contain the map so it becomes is transparent.<br />is there a solution for this problem?<br />Thank you</p>]]></content>
			<author>
				<name><![CDATA[Amen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=994</uri>
			</author>
			<updated>2019-07-22T12:02:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5353#p5353</id>
		</entry>
</feed>
