<?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 — Drone Camera Image Overlay]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=825</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=825&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Drone Camera Image Overlay.]]></description>
		<lastBuildDate>Tue, 24 Apr 2018 18:51:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Drone Camera Image Overlay]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3571#p3571</link>
			<description><![CDATA[<p>Most likely the problem is that you do not Instantiate the texture of the tile.<br />Use Instantiate, and pass the texture instance to the tile.<br /><a href="https://docs.unity3d.com/ScriptReference/Object.Instantiate.html">https://docs.unity3d.com/ScriptReferenc … tiate.html</a></p><p>No, you can not modify (add) resources after publication.<br />But you can store your tiles in some other source that you can modify, such as a file system, a database, or your own server.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 24 Apr 2018 18:51:32 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3571#p3571</guid>
		</item>
		<item>
			<title><![CDATA[Re: Drone Camera Image Overlay]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3568#p3568</link>
			<description><![CDATA[<p>Thank you, that is what I was looking for, I don&#039;t know how I didn&#039;t find that example before. <br />I do have two more questions now though, the first is when I am running this through the unity editor, I see my custom tiles, and when I zoom all the way out I get the following error&nbsp; - <br /></p><div class="codebox"><pre><code> Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
UnityEngine.Object:Destroy(Object)
OnlineMapsUtils:DestroyImmediate(Object) (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsUtils.cs:351)
OnlineMapsTile:Destroy() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsTile.cs:489)
OnlineMapsTile:UnloadUnusedTiles() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsTile.cs:741)
OnlineMaps:CheckBufferComplete() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:869)
OnlineMaps:LateUpdate() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1264)</code></pre></div><p>when I zoom back in, my tiles are still there, but when I publish my &quot;game&quot; zoom out and back in, my tiles are gone. What do i need to do to fix this?</p><p>and my second, is there a way to load custom tiles dynamically, what I mean by this is, I want to run my program, and have the drone feeding me back images that a separate program is turning into custom tiles, and putting into some &quot;resource&quot; folder. Am I capable of doing this, or am I limited to what is packaged up into the resource folder when I publish.</p><p>Again Thank you, I am loving the OnlineMaps asset, It is making everything much easier for me.</p>]]></description>
			<author><![CDATA[null@example.com (jcarff)]]></author>
			<pubDate>Tue, 24 Apr 2018 15:28:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3568#p3568</guid>
		</item>
		<item>
			<title><![CDATA[Re: Drone Camera Image Overlay]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3561#p3561</link>
			<description><![CDATA[<p>Online Maps supports tile overlay.<br />Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/TilesetMapTilerOverlayExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p><p>You can draw a rectangle using drawing api.<br />Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/DrawingAPI_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 19 Apr 2018 23:24:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3561#p3561</guid>
		</item>
		<item>
			<title><![CDATA[Re: Drone Camera Image Overlay]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3560#p3560</link>
			<description><![CDATA[<p>I understand that approach, but is there some way to do this as an overlay onto the map, like a overlay tile provider or something That way I can get it to follow the terrain and also seems like a better approach when I am loading up lots of drone images to &quot;update&quot; the outdated sat images. <span class="postimg"><img src="http://api.ning.com/files/VcH1fGI81XWfWmoK*mrGhkqEmNnUa4Aiqe963*gRYjUfPkwRR4LcQrjfy0w6VHEUTxuRaiPxpspjDdVkwwI6jvgVZ9g-b9VS/ScreenShot20160915at4.51.13PM.png" alt="map overlay" /></span></p><p>Also, say I just wanted to draw a blue square on the ground representing the area that is visible to the drone, even with elevation maps turned on, what would I need to do for that. I understand all the calculations to go from drone images to Geo located images, I just don&#039;t know how to do the overlay.</p>]]></description>
			<author><![CDATA[null@example.com (jcarff)]]></author>
			<pubDate>Thu, 19 Apr 2018 22:41:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3560#p3560</guid>
		</item>
		<item>
			<title><![CDATA[Re: Drone Camera Image Overlay]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3559#p3559</link>
			<description><![CDATA[<p>Hello.</p><p>For each image you need to do the following steps:<br />1. Get the latitude, longitude and altitude of the central point. <br />Actually you&#039;ll get this from the dron.<br />2. Convert the latitude and longitude of the center point to Unity World Position.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#adcfdea4962fd10c64683602992c6e097">http://infinity-code.com/doxygen/online … 2992c6e097</a><br />3. Calculate the length of the sides of your image in tiles based on the altitude.<br />I can not give you a direct formula, because I never did it.<br />But I think you will easily find the correct coefficients by making a few test images.<br />4. Calculate the corner points (top left, top right, bottom left, bottom right) in Unity World Space. For example:<br />TopLeft = new Vector3 (-imageTileWidth / 2, 0, -imageTileHeight / 2).<br />5. Rotate the corner points to the desired angle.<br /><a href="https://docs.unity3d.com/ScriptReference/Quaternion.html">https://docs.unity3d.com/ScriptReferenc … rnion.html</a><br /><a href="https://docs.unity3d.com/ScriptReference/Matrix4x4.html">https://docs.unity3d.com/ScriptReference/Matrix4x4.html</a><br />6. Create a new mesh, set vertices, triangles, normals and UV.<br /><a href="https://docs.unity3d.com/ScriptReference/Mesh.html">https://docs.unity3d.com/ScriptReference/Mesh.html</a><br />7. Set your image as a texture.<br />8. Set the position of your image GameObject equal to the center point.<br />9. When changing the position of the map, update the position of your image GameObject.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#aa5d1ad65ba903de2b1c5ac37bdd7bfa1">http://infinity-code.com/doxygen/online … 37bdd7bfa1</a><br />10. When zooming, scale and update the position of your image GameObject.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#a1affbc34789943af1d87a46575e50112">http://infinity-code.com/doxygen/online … 6575e50112</a></p><p>Something like that.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 19 Apr 2018 20:26:22 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3559#p3559</guid>
		</item>
		<item>
			<title><![CDATA[Drone Camera Image Overlay]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3558#p3558</link>
			<description><![CDATA[<p>I am trying to write a simple drone data visualizer in unity using Online Maps to show the drones location over sat imagery, and I was wondering what the best approach would be for taking imagery from the drone, probably geo-tagged JPGs, and overlaying them on the map at the proper location/size/orientation. Any help on a starting location for this would be greatly appreciated. Thank You.</p>]]></description>
			<author><![CDATA[null@example.com (jcarff)]]></author>
			<pubDate>Thu, 19 Apr 2018 16:17:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3558#p3558</guid>
		</item>
	</channel>
</rss>
