Sign in to follow this  
Followers 0
KramSurfer

Rotation Values of DeviceOrientationCamera

4 posts in this topic

I have a web application that has a 'gaze selector' which is working fine, but I want to have the menus change context when the user is looking at higher X rotation value.

When testing on the desktop the standard FreeCamera has rotation values which I can easily check.  Then attaching a DeviceOrientiation camera, those rotation values are no longer updated. 

How can I get the simple rotation values of the DeviceOrientationCamera  or VRDeviceOrientationCamera?

Pulling my hair out here!
Thanks.

Keith R Morrison

 

Edit:
It appears  scene.activeCamera.getWorldMatrix();  is changing value while moving the device. 
Is there a function to convert this to a x,y,z rotation?

Share this post


Link to post
Share on other sites

Thank you. Thank you. Thank you!

From the Forums I see you're a big part of BabylonJS. 

I want to also say THANKS for you efforts in this.  I'm new to the engine ( coming from Flash & Flare3D, run in installable AIR applications ) and this engine is very well thought out. 

I'm excited to create applications using this tech.

Keith R Morrison


 

davrous likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.