<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — TMS Tiles]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=44&amp;type=atom" />
	<updated>2015-10-27T20:40:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=44</id>
		<entry>
			<title type="html"><![CDATA[Re: TMS Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=146#p146" />
			<content type="html"><![CDATA[<p>Oops <img src="https://forum.infinity-code.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Perfect - thank you Alex</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2015-10-27T20:40:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=146#p146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TMS Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=145#p145" />
			<content type="html"><![CDATA[<p>The problem is that you change tile.y.</p><p>The right way:<br /></p><div class="codebox"><pre><code>string path = String.Format(&quot;OnlineMapsTiles/{0}/{1}/{2}&quot;, tile.zoom, tile.x, y);
tileTexture = Resources.Load(path) as Texture2D;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2015-10-27T17:20:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=145#p145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TMS Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=144#p144" />
			<content type="html"><![CDATA[<p>I am attaching a gif showing what I am trying to describe - for your reference I can load the same tiles into Leaflet with the TMS tag set to true and they are displayed correctly?</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2015-10-27T17:08:40Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=144#p144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TMS Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=143#p143" />
			<content type="html"><![CDATA[<p>Thanks Alex, I have tried your approach but am having some strange effects. </p><p>When I first start the project in the editor the tiles are in the correct arrangement but then almost immediately they revert to the default arrangement and the sections of the map view start flickering?</p><p>I have added my version of your example script here so you can see what I have done, which is basically just try and load the tiles from Resources ...</p><p>Other than than that I have just added the script to the Tileset map game object in the Tilset example scene </p><p>Any idea what might be going on? Have I approached this in the correct way? Feel like I am missing some important but probably obvious bit of information <img src="https://forum.infinity-code.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2015-10-27T16:36:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=143#p143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TMS Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=142#p142" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Example attached.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2015-10-27T13:45:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=142#p142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[TMS Tiles]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=141#p141" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Firstly I want to say what amazing asset you have created for the Unity community here - thanks.</p><p>Ok, so I have collections of custom tiles that come in the TMS tile arrangement (0,0 at bottom left) rather than the Google / OSM arrangement&nbsp; (0,0 at top left). So while I could probably create an editor script to correct this using this approach taken from <a href="https://alastaira.wordpress.com/2011/07/06/converting-tms-tile-coordinates-to-googlebingosm-tile-coordinates/">https://alastaira.wordpress.com/2011/07 … ordinates/</a></p><p>z = zoomlevel;<br />ymax = 1 &lt;&lt;&nbsp; z;<br />y = ymax - y - 1;</p><p>I wondered if it would be relatively simple or even possible for you guys to accommodate this within your tool? <img src="https://forum.infinity-code.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Thanks</p><p>Nige</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2015-10-27T13:33:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=141#p141</id>
		</entry>
</feed>
