<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — grey materials]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=326&amp;type=atom" />
	<updated>2017-02-05T04:24:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=326</id>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1763#p1763" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tws wrote:</cite><blockquote><p>Hey, thanks for the help.</p><p>Actually there was a problem within IOS. I don&#039;t know why but the game wouldn&#039;t authorize localisation system, at all... </p><p>After researching all the day, I&#039;ve found out that I wasn&#039;t the only one with this problem so I am posting here in case someone encounters the same issue.</p><p>So, it seams that, since IOS 8, some devices do not let apps access their localisation system, even when set to always in the device parameters, privacy options, it always get back to &quot;never&quot;. So there is a trick to do in Xcode , it takes 2 minutes and it works perfectly. I&#039;m posting the link because I think it&#039;s best explained than what I could write.</p><p><a href="http://answers.unity3d.com/questions/792559/ios-8-location-services-not-working.html">http://answers.unity3d.com/questions/79 … rking.html</a></p></blockquote></div><p>Just had this happen to me, and thanks to your posting this solution I was able to solve it within 30 minutes.&nbsp; Honestly I don&#039;t know why this happened because my I&#039;ve been using the OnlineMaps asset successfully in my project for a few months.&nbsp; No problems what&#039;s so ever and I was always prompted to &quot;Allow&quot; location services when installing the app on the device.&nbsp; Then all of a sudden the prompt was gone (on fresh install of the app) and the location services weren&#039;t working.&nbsp; </p><p>Again, this solution fixed it.</p>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2017-02-05T04:24:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1763#p1763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1486#p1486" />
			<content type="html"><![CDATA[<p>Hey, thanks for the help.</p><p>Actually there was a problem within IOS. I don&#039;t know why but the game wouldn&#039;t authorize localisation system, at all... </p><p>After researching all the day, I&#039;ve found out that I wasn&#039;t the only one with this problem so I am posting here in case someone encounters the same issue.</p><p>So, it seams that, since IOS 8, some devices do not let apps access their localisation system, even when set to always in the device parameters, privacy options, it always get back to &quot;never&quot;. So there is a trick to do in Xcode , it takes 2 minutes and it works perfectly. I&#039;m posting the link because I think it&#039;s best explained than what I could write.</p><p><a href="http://answers.unity3d.com/questions/792559/ios-8-location-services-not-working.html">http://answers.unity3d.com/questions/79 … rking.html</a></p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-12-05T22:47:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1486#p1486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1481#p1481" />
			<content type="html"><![CDATA[<p>Hello.</p><p>1. <a href="https://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/">https://ste.vn/2015/06/10/configuring-a … osx-10-11/</a></p><p>2. Online Maps Location Service is a wrapper for Unity Location Service and Unity Compass.<br /><a href="https://docs.unity3d.com/ScriptReference/LocationService.html">https://docs.unity3d.com/ScriptReferenc … rvice.html</a><br /><a href="https://docs.unity3d.com/ScriptReference/Compass.html">https://docs.unity3d.com/ScriptReference/Compass.html</a><br />If you want you can use Unity Location Service directly, without using Online Maps Location Service.<br />OnlineMapsLocationService.position is not available in Start.<br />Use OnlineMapsLocationService.OnLocationInited or OnlineMapsLocationService.OnLocationInited to determine that GPS is initialized.<br />Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/Marker_GPS_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-12-04T18:26:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1481#p1481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1480#p1480" />
			<content type="html"><![CDATA[<p>Hey, it&#039;s been two days I&#039;m fighting with different codes.<br />So after countless builds and modifications, I can tell a few things.<br />First,in Xcode, I always get the http warning if I try to use something like OpenStreet.<br />Second, I need to have my exact gps position, and for that I use this code:</p><div class="codebox"><pre><code>Vector2 gpsPos;
GameObject map;
gpsPos = map.GetComponent&lt;OnlineMapsLocationService&gt;().position;</code></pre></div><p>As I said previously, it works with &quot;Find location by IP&quot; but it&#039;s not accurate enough for my game, and when it is disabled, I only get 0,0 from the gps.</p><p>So obviously the problem, I think, is that I always have 0,0 gps coordinates, and this is why I always end up in the middle of the ocean on the map.</p><p>So, question is, do I have the good code for getting gps coords or is there another way to do it.</p><p>Thanks in advance.</p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-12-04T16:51:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1480#p1480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1479#p1479" />
			<content type="html"><![CDATA[<p>Hi, I&#039;ve spent all the day trying different things: waiting for a moment before trying to access gps, uninstalling the package and reinstall it, create new maps, create an empty scene with just the map. Always the same result, it works with ip activated, not without it.</p><p>I thought about something, do I have to get access to the device GPS or Unity GPS system to use the gps in Online Maps? If yes, what would be the method to access it?</p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-12-03T22:54:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1479#p1479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1478#p1478" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Find Location by IP has very small accuracy (up to the city), so the distance to the real location can be three streets, or can be 40 kilometers, depending on the size of the city.</p><p>GPS is not available on start. It requires some time to initialize.<br />While GPS is not initialized shows the location specified in Online Maps (not Online Maps Location Service Emulator).</p><p>To prevent this, there are several ways:<br />* Use some default location, such as a global map, or your favorite location.<br />* Hide or lock the map while the GPS is not initialized.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-12-03T02:57:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1478#p1478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1477#p1477" />
			<content type="html"><![CDATA[<p>Hi, yes the problem was that the gps coords were 0,0. Which is strange because, it always worked like a charm before.<br />I couldn&#039;t find where the error came from so I deleted the map object and created a new map. <br />It looks like it&#039;s working now but I have another issue. </p><p>If &quot;Find location by IP&quot; is not enabled, I end up in the water (gps coords 0,0...), if I enable &quot;Find location by IP&quot;, the map tells me that I am located three streets up from my real location...</p><p>My game needs to have the closest gps coords from where I really am in the world, so how could I fix this?</p><p>Thanks in advance.</p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-12-02T21:28:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1477#p1477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1473#p1473" />
			<content type="html"><![CDATA[<p>Hello.</p><div class="quotebox"><cite>tws wrote:</cite><blockquote><p>Actually it is light blue</p></blockquote></div><p>Please check the coordinates that you have on iOS.<br />Perhaps you have the coordinates (0, 0) and just see the ocean.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-11-28T18:05:12Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1473#p1473</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1472#p1472" />
			<content type="html"><![CDATA[<p>Actually, i just saw that the first tile doesn&#039;t call oncomplete at all:<br /></p><div class="codebox"><pre><code>Start
https://mt0.googleapis.com/vt?pb=!1m4!1m3!1i11!2i350!3i819!2m3!1e0!2sm!3i295124088!3m9!2sen!3sUS!5e18!12m1!1e47!12m3!1e37!2m1!1ssmartmaps!4e0
Start</code></pre></div>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-11-28T17:46:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1472#p1472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1471#p1471" />
			<content type="html"><![CDATA[<p>Hi, so i tested the script you gave me, and everything looks to be ok, or so i think. Here&#039;s the code received from Xcode:<br /></p><div class="codebox"><pre><code>Start
/[url]https://mt2.googleapis.com/vt?pb=!1m4!1m3!1i11!2i350!3i819!2m3!1e0!2sm!3i295124088!3m9!2sen!3sUS!5e18!12m1!1e47!12m3!1e37!2m1!1ssmartmaps!4e0[/url]
OnComplete
Tile successfully loaded
Texture successfully loaded
OnComplete
Tile successfully loaded
Texture successfully loaded

 </code></pre></div><p>But the game is still not displaying the map. Actually it is light blue, but it still the same result than with grey map. Last time i was using a custom styled map, now i got back to Google maps in terrain mode thinking that would help, nothing .</p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-11-28T17:44:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1471#p1471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1470#p1470" />
			<content type="html"><![CDATA[<p>Your need to look for any information that will help you understand what the problem is.</p><p>Example of custom tile request is attached.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-11-27T23:24:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1470#p1470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1469#p1469" />
			<content type="html"><![CDATA[<p>Hey, thanks for the answer, that is what i thought. </p><p>What should i look for in xcode trace ?</p><p>And how do i do a request to the tile ?</p><p>Thanks in advance</p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-11-27T22:19:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1469#p1469</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1468#p1468" />
			<content type="html"><![CDATA[<p>Hello.</p><p>When you have a gray material it means that you have problems downloading of tiles.<br />This can happen for several reasons, such as: tiles is JPEG, url is HTTP, etc.<br />Try to make a request to the tile, read response, and you will understand what is wrong. Or read XCode stack trace.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-11-27T18:59:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1468#p1468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[grey materials]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1466#p1466" />
			<content type="html"><![CDATA[<p>Hi, <br />I&#039;ve been using your plugin for a few weeks now, and it&#039;s awesome. <br />But now , and for a few days, maps are not displayed properly in my game. In fact, the maps are just grey materials. <br />It works perfectly in the editor so i suppose that it is because of the gps emuator but on ios it s not working anymore. <br />Any idea of what could be wrong?</p>]]></content>
			<author>
				<name><![CDATA[tws]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=302</uri>
			</author>
			<updated>2016-11-27T07:02:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1466#p1466</id>
		</entry>
</feed>
