Sign in to follow this  
Andybean9

OpenAL and a different coordinate system

Recommended Posts

Hi all, Got a question. I am putting OpenAL into a program and the coordinate system in this program is right handed, but +y points straight ahead, +z is up, and +x is right. I am trying to set up my listener orientation like this, { 0, 1.0, 0, 0, 0, 1.0 }. The only thing is nothing sounds right. Do I need to pass coordinates differently to the position function? like swap my y and z values. I've tried this and also no success. I think I basically don't understand what is happening here and any pointers would be appreciated. Thanks! Andrew

Share this post


Link to post
Share on other sites
OpenAL uses a normal right-handed system so your X axis is the same as theirs, but your Y needs to be their -Z (ie. negated), and your Z needs to be their Y. Trigonometrically, it's a 90 degree rotation around the X axis.

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