<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Elevation Tiles]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2176&amp;type=atom" />
	<updated>2023-10-01T16:44:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2176</id>
		<entry>
			<title type="html"><![CDATA[Re: Elevation Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9204#p9204" />
			<content type="html"><![CDATA[<p>Problem solved. Just found the problem. </p><p>My app is a standalone and works offline. </p><p>I was loading elevation tiles from streaming assets and for missing tiles was requesting through&nbsp; OnlineMapsMapboxElevationManager.instance.StartDownloadElevationTile(tile) and that was causing the small delay!! Because there was no internet connection and was requesting to download those missing tiles. I modify the code and now works. Also the Win 10 issue solve too. </p><p>thank you very much!</p>]]></content>
			<author>
				<name><![CDATA[savvas_6]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1113</uri>
			</author>
			<updated>2023-10-01T16:44:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9204#p9204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Elevation Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9203#p9203" />
			<content type="html"><![CDATA[<p>Hello. </p><p>What do you mean by &quot;a little bit laggy&quot;?</p><p>In general, your code looks correct (I haven&#039;t tested it), except for two things:<br />1. ZoomIn method won&#039;t do anything if the animation is already running.<br />2. If you currently have a non-integer zoom (like 13.6), ZoomIn method will do an animation from 13 to 14 which will look like a jump.</p><p>Unfortunately, I can&#039;t comment on how elevations work on Win10, 11 because the class you attached doesn&#039;t have your implementation of loading from Streaming Assets.<br />First of all you need to look for a problem in the loading implementation.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-10-01T12:55:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9203#p9203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Elevation Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9202#p9202" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Im modify OnlineMapsTiledElevationManager to read elevation tiles only from zoom 13 and I load elevation tiles from Streaming Assets for a specific area.</p><p>I notice that while I zoom out, the map using the following code, is not zooming out &quot;smooth&quot; enough. It gets a little bit laggy.</p><p>I use this code for Zoom out:</p><p>public void ZoomIn() {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!isAnim) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; startZoom = OnlineMaps.instance.zoom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetZoom = OnlineMaps.instance.zoom + 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; progress = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isAnim = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />}</p><p>// Smooth Zoom<br />void Update() { </p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (progress &lt;= 1 &amp;&amp; isAnim) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; progress += Time.deltaTime / duration;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (progress &gt;= 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; progress = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isAnim = false;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } </p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float zoom = Mathf.Lerp(startZoom, targetZoom, progress);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.floatZoom = zoom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.Redraw();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />}</p><p>I also noticed that on a windows 10 and above the 3D elevation is not visible on map, its flat. It loads tiles, I can read elevation values for a specific coordinates. On Mac OSX standalone the 3D elevation is visible. This issue happening only on windows 10 and above.</p>]]></content>
			<author>
				<name><![CDATA[savvas_6]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1113</uri>
			</author>
			<updated>2023-09-30T18:58:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9202#p9202</id>
		</entry>
</feed>
