shawn75's picture

Oculus Orientation

I wonder where do i get the current orientation for the oculus. I meen the agle of the view not the position. The position is the camera vector.

Is this the orientation of the view/oculus ? How can i get a vector or cordiants of the view orientation ?

            Matrix4 matrix;
            Camera.GetProjectionMatrix(camera_type, out matrix);
            GL.LoadMatrix(ref matrix);
            Camera.GetModelviewMatrix(camera_type, out matrix);
            GL.LoadMatrix(ref matrix);


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

OculusCamera is a simply a helper class around the OculusRift class. You can access the raw values from the device through OculusRift.Orientation or OculusRift.PredictedOrientation.

shawn75's picture

Thank you again :D sorry if i am to much a bother but i only have two weeks to build a working fractal program. Are u by any chance the programer for OpenTK ?

the Fiddler's picture

No worries, and yes (among others.)