<?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 — Extend Online Maps to create a horizon]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=808</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=808&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Extend Online Maps to create a horizon.]]></description>
		<lastBuildDate>Thu, 07 Dec 2023 15:17:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9290#p9290</link>
			<description><![CDATA[<p>Hello.</p><p>Horizon scripts with elevations in the first post.</p><p>Thank you very much for the bug report.<br />The problem has been fixed.<br />The scripts in the first post have been updated.<br />If you need updated HorizonWithoutElevation script, please contact me by email (support@infinity-code.com) and I will send it to you.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 07 Dec 2023 15:17:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9290#p9290</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9286#p9286</link>
			<description><![CDATA[<p>Hello,</p><p>I just purchased the Online Maps v3 from the Unity asset store and trying to implement the horizon. I am using version 3.9.3.1</p><p>I have a couple issues, I was not able to find the horizon scripts from the video. The only one I can find is the &quot;HorizonWithoutElevation&quot;. Is this the script I should be using?</p><p>Next, I use the Universal Render Pipeline, and the legacy shaders are not rendering (showing magenta). What shader should I use that will work with the URP?</p><p>As a test I am using &quot;TileSetPBRShader&quot; but that has strange results when zooming in and out.&nbsp; I have added a screen clip of my map and horizon settings. Here is a link to a video demonstrating the issues with the test shader... <a href="https://app.screencast.com/fKIIWkeE4J0oA">https://app.screencast.com/fKIIWkeE4J0oA</a></p><p>When I used the map wizard to create the map I enabled Mapbox elevations. Could this be creating the rendering issues? Is there a way to have elevations and a horizon?</p>]]></description>
			<author><![CDATA[null@example.com (AviarLabs)]]></author>
			<pubDate>Wed, 06 Dec 2023 16:38:46 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9286#p9286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8711#p8711</link>
			<description><![CDATA[<p>Thanks!!!!! <img src="https://forum.infinity-code.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (jcthome)]]></author>
			<pubDate>Thu, 27 Oct 2022 12:21:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8711#p8711</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8710#p8710</link>
			<description><![CDATA[<p>I used these skyboxes:<br /><a href="https://assetstore.unity.com/packages/2d/textures-materials/sky/sky5x-one-6332">https://assetstore.unity.com/packages/2 … x-one-6332</a></p><p>How to make horizon fade using shader:<br /><a href="https://www.dropbox.com/s/f0e0w8sdlgdql35/Online%20Maps%20-%20Horizon%20Fade.mp4?dl=0">https://www.dropbox.com/s/f0e0w8sdlgdql … e.mp4?dl=0</a></p><p>Tileset Fade Shader in post #4.</p><p>Horizon Fade Shader (it&#039;s just a slightly modified version of Tileset Fade Shader):<br /></p><div class="codebox"><pre><code>Shader &quot;Infinity Code/Online Maps/Horizon Fade Shader&quot;
{
    Properties
    {
        _Color(&quot;Main Color&quot;, Color) = (1,1,1,1)
        _MainTex(&quot;Base (RGB) Trans (A)&quot;, 2D) = &quot;white&quot; {}
        _OverlayBackTex(&quot;Overlay Back Texture&quot;, 2D) = &quot;black&quot; {}
        _OverlayBackAlpha(&quot;Overlay Back Alpha&quot;, Range(0, 1)) = 1
        _TrafficTex(&quot;Traffic Texture&quot;, 2D) = &quot;black&quot; {}
        _OverlayFrontTex(&quot;Overlay Front Texture&quot;, 2D) = &quot;black&quot; {}
        _OverlayFrontAlpha(&quot;Overlay Front Alpha&quot;, Range(0, 1)) = 1
    }

    SubShader
    {
        Tags{ &quot;Queue&quot; = &quot;Transparent-200&quot; &quot;IgnoreProjector&quot; = &quot;True&quot; &quot;RenderType&quot; = &quot;Opaque&quot; }
        LOD 200

        CGPROGRAM
#pragma surface surf Lambert alpha

        sampler2D _MainTex;

        struct Input
        {
            float2 uv_MainTex;
            float3 worldPos;
        };

        void surf(Input IN, inout SurfaceOutput o)
        {
            float tilesetSizeX = 1024;
            float tilesetSizeY = 1024;
            float startFadeDist = 2600;
            float fadeRange = 1024;

            float3 center = float3(tilesetSizeX / -2, 0, tilesetSizeY / 2);

            float3 wp = mul(unity_WorldToObject, float4(IN.worldPos, 1)).xyz;
            float3 dist = center - float3(wp.x, 0, wp.z);
            float len = length(dist);
            float scale = (len - startFadeDist) / fadeRange;

            o.Alpha = saturate(1 - scale);

            fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
            o.Albedo = c.rgb;
        }
        ENDCG
    }

    Fallback &quot;Transparent/Cutout/Diffuse&quot;
}</code></pre></div><p>Unfortunately, I did not understand why you rotated the map in post #54.<br />You definitely don&#039;t need to do this.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 26 Oct 2022 17:40:56 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8710#p8710</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8709#p8709</link>
			<description><![CDATA[<p>In this picture, I removed the Horizon 2_Bing Maps. So we can check what happens if I zoom in max 15 and also rotate to the sides. Is there a way that I can just show the rest of the map, instead cropping like is doing now?</p>]]></description>
			<author><![CDATA[null@example.com (jcthome)]]></author>
			<pubDate>Wed, 26 Oct 2022 16:34:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8709#p8709</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8708#p8708</link>
			<description><![CDATA[<p>Hello again,</p><p>I have followed the video, the only thing that is different is that I used the skybox instead. <img src="https://forum.infinity-code.com/img/smilies/sad.png" width="15" height="15" alt="sad" /> Could this be the problem? If yes, where can I find the same skybox material used in the video?</p><p>Also, If this info is in this thread and I missed I&#039;m sorry, but could you tell me how can I hide the horizon border using a shader? </p><p>The other thing that I think would solve my problem is limiting the rotation on x, but when I changed the maxRotationX on the Camera Orbit script it does nothing. Could you tell me what I can do to limit the rotation on x?</p>]]></description>
			<author><![CDATA[null@example.com (jcthome)]]></author>
			<pubDate>Wed, 26 Oct 2022 16:31:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8708#p8708</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8707#p8707</link>
			<description><![CDATA[<p>This is achieved by properly setting the fog (see the video in the first post) and Camera / Clipping Planes / Far.<br />Or you can hide the horizon border using a shader.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 26 Oct 2022 16:06:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8707#p8707</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8706#p8706</link>
			<description><![CDATA[<p>Here is another picture of what is happening</p>]]></description>
			<author><![CDATA[null@example.com (jcthome)]]></author>
			<pubDate>Wed, 26 Oct 2022 15:19:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8706#p8706</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8705#p8705</link>
			<description><![CDATA[<p>I have added the script Horizon 2_Bing Maps, and when I rotate to look around in the map with the elevations on, It clips and still shows the end of the map. How can I stop this clipping?</p><p>Is there a way that I can allow rotation movements in the map, have a horizon that does not show the end of the map, and make it do not clip when I zoom in?</p>]]></description>
			<author><![CDATA[null@example.com (jcthome)]]></author>
			<pubDate>Wed, 26 Oct 2022 15:17:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8705#p8705</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8704#p8704</link>
			<description><![CDATA[<p>Please ask your question in more detail, or describe in detail the problem you are having.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 26 Oct 2022 14:38:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8704#p8704</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8703#p8703</link>
			<description><![CDATA[<p>Hello, I&#039;m trying to make the Horizon 2_bing Maps script work with camera Orbit. Could you give me some guidance?</p>]]></description>
			<author><![CDATA[null@example.com (jcthome)]]></author>
			<pubDate>Wed, 26 Oct 2022 14:35:53 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8703#p8703</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8381#p8381</link>
			<description><![CDATA[<p>You can use OnlineMapsTiledElevationManager.SetElevationToCache and TryLoadFromCache as an example of writing to and reading from a custom cache.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 14 Jun 2022 19:51:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8381#p8381</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8380#p8380</link>
			<description><![CDATA[<p>Hi Alex, <br />Thanks for the help! It really gave me direction.<br />I have added the code to load the elevation data from cache using &quot;OnlineMapsCache.Get(string key)&quot; while keeping internet off. <br />But something wrong must be there, I am not able to load the cached elevation in offline mode for horizon. </p><p>Does any of the Horizon scripts you have shared in this thread has the feature to load the elevation from cache? </p><p>Please help me into this.<br />Regards,<br />Pooja Garg</p>]]></description>
			<author><![CDATA[null@example.com (pooja.garg)]]></author>
			<pubDate>Tue, 14 Jun 2022 13:33:06 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8380#p8380</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8377#p8377</link>
			<description><![CDATA[<p>Modify the script and before downloading the elevation data, check its presence in the cache.<br />If present, read the data from the cache.<br />If missing, download the data and cache it.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 14 Jun 2022 10:36:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8377#p8377</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extend Online Maps to create a horizon]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8376#p8376</link>
			<description><![CDATA[<p>I think, there is some misunderstanding.<br />My question is, if I have already cached data for some region then how can we use this Horizon script to load cached tile textures and elevation data from cached folder in offline mode.</p>]]></description>
			<author><![CDATA[null@example.com (pooja.garg)]]></author>
			<pubDate>Tue, 14 Jun 2022 10:32:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8376#p8376</guid>
		</item>
	</channel>
</rss>
