<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — OnlineMaps Smooth Zoom problem]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=838&amp;type=atom" />
	<updated>2018-05-15T08:20:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=838</id>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMaps Smooth Zoom problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3593#p3593" />
			<content type="html"><![CDATA[<p>Thanks for your reply, I tried out beta build and actually it works much much better and without any modifications all runs well. <br />This is probably thanks to your float zoom change.</p>]]></content>
			<author>
				<name><![CDATA[bartosz.wolski]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=736</uri>
			</author>
			<updated>2018-05-15T08:20:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3593#p3593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMaps Smooth Zoom problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3592#p3592" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Your camera is not correctly centered.<br />You need to modify the script AdjustTilesetMapToScreen:<br /></p><div class="codebox"><pre><code>mainCamera.transform.position = new Vector3(-mapWidth * 0.5f, 1024, mapHeight * 0.5f);</code></pre></div><p>In addition, you can slightly reduce the orthographic size to hide this border.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-05-14T15:39:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3592#p3592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OnlineMaps Smooth Zoom problem]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3591#p3591" />
			<content type="html"><![CDATA[<p>I am using OnlineMaps 2.5.36.1 version with your smoothZoom script : <br />infinity-code.com/viewtopic.php?pid=3165#p3165<br />I modified Demo example to fit my needs.<br />I am doing all this on Android Device and performing any actions with gestures (pinch to zoom etc).</p><p>I need the map to displayed in Portrait mode on full hd device,&nbsp; 55 inches screen.<br />I noticed that even when doing max zoom out possible I am not able to view whole world, and I am not able to move the map up/down.</p><p>After that I saw that its because in Scene view whole map is rendered but Camera Orthographic size was set in example to 250, so I did set it to 50% of the screen height, which results in beautiful whole map shown, so far everything works good.</p><p>But when trying to zoom in/out and when map scale is below 1.00, while x/y offset is applied to map so zoom looks natural, the texture is sometimes having offset and its rendered on about 85-95% of the screen.</p><p>Here is google drive link with project and video with problem recorded:<br />Link to video featuring the problem : <a href="https://drive.google.com/file/d/1dwFDc_fNnW4t-Hl1MHH_QpvieQj0-LAU/view">https://drive.google.com/file/d/1dwFDc_ … 0-LAU/view</a></p><br /><p>Edit: I tried using Smooth Zoom with option : Zoom Mode - Center<br />But it doesn&#039;t work and behave exactly the same as Zoom Mode - Target.</p>]]></content>
			<author>
				<name><![CDATA[bartosz.wolski]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=736</uri>
			</author>
			<updated>2018-05-14T12:59:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3591#p3591</id>
		</entry>
</feed>
