Start a new topic

Keep 3D model always positioned in front of camera in Geo Location

I built a sample app that loads a 3D model using "AR.RelativeLocation".


My question is that is it possible to have the 3D model always appear in front of the camera anywhere the I point my phone?


Because right now I have it set to  

var location = new AR.RelativeLocation(null, 80, 20, -65);

 but when I turn my body(and the phone) opposite of the relative location, the model is not in front of the camera anymore and is either to the left, right, or behind me.

I found a small solution to the problem by using "AR.Positionable" which worked, but the object is glued to the screen which I don't want.


I am using the Cordova plugin with the Javascript API.


- Which version of the SDK are you using? I am using the 8.0.0 version
- Are you working with the JS API or the Native API?  JS API
- Are you using any of our Extensions (Cordova, Xamarin, Unity)? If yes, which version are you using

I am using Cordova version 8.1.2

The issue you described may be caused by a missing location update or even compass access troubles.

Did you have a look at the Solar System example, which demoes the very same thing? Ideally, you find the issue by comparing your project with this sample. If not:

Could you customise this sample so we can reproduce the issue? That would ease investigation a lot.


Best regards & Thanks for your assistance,

Andreas

Login or Signup to post a comment