<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Marker3d over buildings]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=900&amp;type=atom" />
	<updated>2018-09-28T11:33:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=900</id>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d over buildings]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3977#p3977" />
			<content type="html"><![CDATA[<p>According to your original post, I thought that you want to show the marker above the building.</p><p>In this case, this is much more difficult, because the size of the markers does not depend on the zoom, and the buildings have real size and position.</p><p>The easiest way is to check the intersection of bounds of each marker GameObject and bounds of each building. <br />But in this case you will get a big overhead when changing the zoom of the map.</p><p>I believe that there is a better way here, but I do not see it yet.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-28T11:33:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3977#p3977</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d over buildings]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3976#p3976" />
			<content type="html"><![CDATA[<p>Thanks Alex for answering me, <br />but If I place the marker3d as a lat,lng position. I don´t know in which building is placed. So I cannot create the gameobject in that way.</p><p>In our APP we display the map (with buildings) and afterwards, we create some POI with lat,lng on it.</p><p>I´m facing to options<br />1- Detect if the lat,lng crashes with a building in that case we need to move it to a clear gap to pointing it.<br />2- If there is a buiding, place it on top.</p><br /><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[juanluis]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=806</uri>
			</author>
			<updated>2018-09-28T10:40:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3976#p3976</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d over buildings]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3970#p3970" />
			<content type="html"><![CDATA[<p>Hello.</p><p>I&#039;m not sure that for such purposes you need to use markers.</p><p>I would do it in another way:<br />1. Use OnlineMapsBuildings.OnBuildingCreated to determine the creation of buildings.<br />2. Use Collider.bounds or MeshRenderer.bounds of the building to find the top center point.<br />3. Create your GameObject (which previously planned to be used as a marker) as a child of the building, and set the position.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-27T13:39:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3970#p3970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Marker3d over buildings]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3967#p3967" />
			<content type="html"><![CDATA[<p>Hello all,<br />I have some problems when I´m trying to set up some markers 3d on the map, when the position is in the same place of a building.<br />As I set up a floor height for buildings, the markers draws inside the building and sometimes (depending on the height of buildings) are hidden by them.</p><p>Is there any chance to avoid this situation, placing the markers on top of this buildings??</p><p>Many thanks.<br />Juan Luis</p>]]></content>
			<author>
				<name><![CDATA[juanluis]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=806</uri>
			</author>
			<updated>2018-09-27T07:46:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3967#p3967</id>
		</entry>
</feed>
