Hi Guys,
My 3D models show up using relative location, but not GPS. I've set the lat/long to my office right where I am sitting. I also created an action area with 500 meter radius.
What am I doing wrong?
var stageLocation = new AR.GeoLocation(25.784146, -80.191038); var actionRange = new AR.ActionRange(stageLocation, 500); //cake model this.cake = new AR.Model("assets/cake(6).wt3", { scale: { x: 1000, y: 1000, z: 1000 }, rotate: { x: 45, y: 30, z: 0 }, translate: { x: -12000, y: -12000, z: 0 }, enabled: true, //onLoaded: function () { } }); //geo object var geoObject = new AR.GeoObject(stageLocation, { drawables: { cam: [this.cake] } })
BTW, I'm using Xamarin PCL iOS / Android.
Aside from my project, I'm testing using the sample iOS Xamarin project called WikitudeSDKExample.
I loaded up the x_Demo_1_2dTrackingAndGeo sample (That's the only one I see that uses Lat & Long - the others use relative locations).
The problem is that sample has errors in the ADE.js
Uncaught TypeError: Cannot read property 'createTargetCollectionResource' of undefined at Object.__executeFunctionByName (file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/ade.js:1:297683) at Object.callAsync (file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/ade.js:1:297485) at c.init (file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/ade.js:1:166797) at c.(anonymous function) [as init] (file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/ade.js:1:4857) at new c (file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/ade.js:1:4720) at Object.IrAndGeo.initIr (file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/x_Demo_1_2dTrackingAndGeo/js/2dtrackingandgeo.js:127:37) at file:///C:/Users/spinteractive/Desktop/SpinDev/Dev/BayFest/App/App/Wikitude/all%20samples/x_Demo_1_2dTrackingAndGeo/js/2dtrackingandgeo.js:210:10
At this point, I don't have a working GEO sample with lat/long location.
Also, I have enabled location in my plist.
<key>UIBackgroundModes</key> <array> <string>location</string> </array>
Any ideas?
Hello Eva,
I understand how to use the relativelocation class and it works fine with that.
The problem occurs when I switch to a GEOLocation - none of my models show up.
I had to enable:
<key>NSLocationAlwaysUsageDescription</key> <string>Used for Mixed Reality Experience</string> <key>NSLocationWhenInUseUsageDescription</key> <string>Used for Mixed Reality Experience</string>
David Ali