Start a new topic

Altitude Problem

Altitude Problem


Hi there!

I have a little problem with altitude and 3D models.

I just need to be sure that the 3D model will be rendered at the right place in terms of altitude. I know for sure where are located the trigger point (in terms of latitude, longitude and of course altitude) but seems that when I put my 3D object, is floating in the view.

Is there any strategy to anchor the model to the ground?

Thanks,
P.

The altitude is only obeyed if a good enough GPS signal is available so the altitude information can be trusted. Without that information the GeoObject will be drawn at the same altitude as the user.

If you can retrieve altitude information using a different technique you can inject a custom location with altitude information and an accuracy set to high. This will always render objects using the altitude information you provided.

The altitude is only obeyed if a good enough GPS signal is available so the altitude information can be trusted. Without that information the GeoObject will be drawn at the same altitude as the user.

I see the point, good one!

If you can retrieve altitude information using a different technique you can inject a custom location with altitude information and an accuracy set to high. This will always render objects using the altitude information you provided.

Great, but:

1. How can I inject the custom location? Do I need to modify the sdk? What if I'm using an hybrid approach?

2. What happen if the user start to walk in 3D Model object? All will work fine in terms of scale / rotation (just in case the user start to move laterally)?

Thanks,

P.

1. For injecting custom location please see following documentation parts (depending on the platform/plugin you are using)

native iOS: http://www.wikitude.com/external/doc/documentation/latest/Reference/iOS%20Reference/HTML/Classes/WTArchitectView.html#//api/name/injectLocationWithLatitude:longitude:altitude:accuracy:

native Android http://www.wikitude.com/external/doc/documentation/latest/Reference/Android%20Reference/html/com/wikitude/architect/ArchitectView.html#setLocation(double, double, double, float)

Phonegap: http://www.wikitude.com/external/doc/documentation/latest/phonegap/referencephonegap.html#phonegap-plugin-reference

Titanium: see sample application's location listener at https://github.com/Wikitude/wikitude-titanium/blob/master/WikitudeTitaniumSample/Resources/ui/windows/ARchitectWindow.js

2. If the user walks into the 3D model there is no change in scale/rotation, except for what you would expect when change the view. Same is for any lateral movement, the height is based on the altitude of the GeoObject and the current location's altitude.

I am not seeing the links. They redirect to sorry page not found.
Login or Signup to post a comment