OpenAL and a different coordinate system
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement