<?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 — How to make 3D map fullscreen?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=650</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=650&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to make 3D map fullscreen?.]]></description>
		<lastBuildDate>Thu, 21 Sep 2017 11:29:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to make 3D map fullscreen?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2831#p2831</link>
			<description><![CDATA[<p>You are going in the wrong direction.<br />You do not need to make a round fullscreen map.<br />In your case, this is much easier.<br />You just need to set up fog and &quot;Camera / Clipping Planes / Far&quot; in your scene.<br />Something like:<br /><a href="http://forum.infinity-code.com/viewtopic.php?pid=1423#p1423">http://forum.infinity-code.com/viewtopi … 1423#p1423</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 21 Sep 2017 11:29:57 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2831#p2831</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make 3D map fullscreen?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2829#p2829</link>
			<description><![CDATA[<p>Thank you, it makes the map size equal to screen size initially, but if I will change the angle of the camera I will see the map &quot;floating in the air&quot;. Is there a way to always keep it fullscreen, just like in a car navigator apps for example?</p>]]></description>
			<author><![CDATA[null@example.com (Rumata)]]></author>
			<pubDate>Wed, 20 Sep 2017 15:04:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2829#p2829</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to make 3D map fullscreen?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2805#p2805</link>
			<description><![CDATA[<p>Hello.</p><p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class AdjustMapToScreen2 : MonoBehaviour
{
    private int screenWidth;
    private int screenHeight;

    private void ResizeMap()
    {
        screenWidth = Screen.width;
        screenHeight = Screen.height;

        int mapWidth = screenWidth / 256 * 256;
        int mapHeight = screenHeight / 256 * 256;
        if (screenWidth % 256 != 0) mapWidth += 256;
        if (screenHeight % 256 != 0) mapHeight += 256;
        OnlineMapsTileSetControl.instance.Resize(mapWidth, mapHeight);

        OnlineMapsTileSetControl.instance.cameraDistance = screenHeight * 0.9f;
    }

    private void Start()
    {
        ResizeMap();
    }

    private void Update()
    {
        if (screenWidth != Screen.width || screenHeight != Screen.height) ResizeMap();
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 14 Sep 2017 23:20:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2805#p2805</guid>
		</item>
		<item>
			<title><![CDATA[How to make 3D map fullscreen?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2802#p2802</link>
			<description><![CDATA[<p>How can I make a 3D map to always take a full screen of the phone, regardless of the screen orientation?<br />Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (Rumata)]]></author>
			<pubDate>Thu, 14 Sep 2017 18:13:39 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2802#p2802</guid>
		</item>
	</channel>
</rss>
