<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Building Footprints Too Small]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=824&amp;type=atom" />
	<updated>2018-11-05T11:27:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=824</id>
		<entry>
			<title type="html"><![CDATA[Re: Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4156#p4156" />
			<content type="html"><![CDATA[<p>Thanks Alex!</p>]]></content>
			<author>
				<name><![CDATA[rooi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=786</uri>
			</author>
			<updated>2018-11-05T11:27:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4156#p4156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4153#p4153" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thanks for the bug report.<br />The problem is fixed, and in the next version it will work correctly.</p><p>How can you fix it right now. OnlineMapsBuildingBase.cs (lines 199 - 200):<br /></p><div class="codebox"><pre><code>float sw = OnlineMapsUtils.tileSize * map.tilesetSize.x / map.tilesetWidth;
float sh = OnlineMapsUtils.tileSize * map.tilesetSize.y / map.tilesetHeight;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-04T18:44:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4153#p4153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4151#p4151" />
			<content type="html"><![CDATA[<p>Hi Alex,</p><p>I&#039;m noticing the same in the latest version when scaling down the map or parent gameobject. I the bug back again or am I doing something wrong?</p><p>I produced it by setting a scale other thans 1,1,1 on the map, e.g. 0.5,0.5,0.5 and press play in unity after.</p><p>In understand your suggested fix and we can implemented it, but if possible, being able to scale gameobjects would be nice. Either way, thanks again!</p>]]></content>
			<author>
				<name><![CDATA[rooi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=786</uri>
			</author>
			<updated>2018-11-04T14:55:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4151#p4151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3563#p3563" />
			<content type="html"><![CDATA[<p>I see.<br />Just copy the values from Transform.Scale (XZ) to Size In Scene (XY), and set Transform.Scale = (1, 1, 1).</p><p>In the next version this will work correctly with the scaled GameObject.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-04-20T10:23:14Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3563#p3563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3562#p3562" />
			<content type="html"><![CDATA[<p>Thank you for the advice! That definitely gets me on the right track.&nbsp; Are you sure it wont work if I just set the gameobject size to 1x1?&nbsp; </p><p>If not, could you possibly help me understand how to use the script you linked?&nbsp; I assume I should just copy and paste into the map gameobject c# script -- anywhere in particular? anything I should know before trying that?&nbsp; I&#039;ve never done any scripting but I&#039;m happy to take a crack at it if you just give me a rough idea of how... </p><p>thanks again for your help! This asset rules.<br />Evan</p>]]></content>
			<author>
				<name><![CDATA[epgra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=722</uri>
			</author>
			<updated>2018-04-20T03:01:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3562#p3562</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3557#p3557" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Yes, the problem is that the map GameObject is scaled.<br />Better use OnlineMapsTileSetControl.Resize to change the size of the map in the scene.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#a15e4efd3378e2f9dbf5300600c27ca50">http://infinity-code.com/doxygen/online … 600c27ca50</a></p><p>In any case, the problem is fixed.<br />Thanks for the bug report.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-04-18T20:32:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3557#p3557</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Building Footprints Too Small]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3556#p3556" />
			<content type="html"><![CDATA[<p>Hi all, </p><p>I am having an issue where all of the 3D buildings appear to have had the building footprint scale turned way down. <br /> As in, the building all have the right shape, but they are about 1/10th of the correct length and width. <br /> Heres a video i took showing the problem: <a href="https://www.youtube.com/watch?v=QxErLzMwE60">https://www.youtube.com/watch?v=QxErLzMwE60</a></p><p>I had the map gameobject scaled down in order to fit in the camera&#039;s view in an AR game, so maybe thats the issue? The scale of the map gameobject didnt affect the imagery though, so I&#039;m not sure why it would affect the buildings differently.&nbsp; Any help would be greatly appreciated!</p>]]></content>
			<author>
				<name><![CDATA[epgra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=722</uri>
			</author>
			<updated>2018-04-18T16:22:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3556#p3556</id>
		</entry>
</feed>
