<?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 — Elevation Tiles]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2176</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2176&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Elevation Tiles.]]></description>
		<lastBuildDate>Sun, 01 Oct 2023 16:44:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Elevation Tiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9204#p9204</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (savvas_6)]]></author>
			<pubDate>Sun, 01 Oct 2023 16:44:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9204#p9204</guid>
		</item>
		<item>
			<title><![CDATA[Re: Elevation Tiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9203#p9203</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 01 Oct 2023 12:55:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9203#p9203</guid>
		</item>
		<item>
			<title><![CDATA[Elevation Tiles]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9202#p9202</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (savvas_6)]]></author>
			<pubDate>Sat, 30 Sep 2023 18:58:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9202#p9202</guid>
		</item>
	</channel>
</rss>
