Search code examples
arcoresceneform

Sceneform and geolocation


Using ARCore and Sceneform Im am trying to add a portrait on a vertical surface (which is a wall) i am currently using ViewRenderer to do that from the Sceneform Library.. all works perfectly but im now facing 2 problems:

First problem was that ViewRenderer will render an Android view in 3D so i had to rotate the Node on its right vector 90 degrees so it flats out on the wall.. that works but now my second problem is that i need the portrait to always be straight up with earth's gravity.

How would it be possible to achieve that ?


Solution

  • After a lot of research i found that the best solution right now here.

    But that solution would be perfect if you apply a bit of normalisation of the sensor data so it doesn't jump around often.