Skip to main content
Up and Coming
March 28, 2014

My scene has z=up, ho do I handle that

My engine has Z=up, but oculus expects Y=up

Do I have to rewrite everything, or is there a z=up option in oculus?

thanks

    2 replies

    Up and Coming
    March 28, 2014
    If I recall correctly, the SDK has no understanding of "up" direction. It just reports HMDs angles and whatever you do with them is your business. The first obvious thing to do anyway is to use HMD angle as an offset off base angle rather than absolute angle.
    kojack
    Honored Contributor
    March 28, 2014
    The sdk understands up, it's head orientation quaternion is based on a right handed Y up coordinate system, and in SDK 0.3 (whenever that comes out) the position tracking of the head will be based on that too.

    But that's just two values (orientation and position of the head), it's not hard to convert them to your coordinate system rather than rewriting everything.
    Author: Oculus Monitor , Auto Oculus Touch , Forum Dark Mode , Phantom Touch Remover , X-Plane Fixer Hardware: Threadripper 1950x, MSI Gaming Trio 2080TI, Asrock X399 Taich Headsets: Wrap 1200VR, DK1, DK2, CV1, Rift-S, GearVR, Go, Quest, Quest 2, Reverb G2, Quest 3