I've got camera/listener x,y,z and heading as well as source x,y,z,heading and roll, pitch.
2 Airplane sounds front and back in OpenAL
Any help is much appreciated as I'm stuck. Currently the sources positions are not moving, could be a fault with the listener heading?
Many thanks
Michael
openal moving source and listener
Started by mike4, Jul 09 2010 04:42 PM
4 replies to this topic
#1
Posted 09 July 2010 - 04:42 PM
#2
Posted 09 July 2010 - 05:07 PM
Post your code, please.
reedbeta.com - developer blog, OpenGL demos, and other projects
#3
Posted 09 July 2010 - 06:51 PM
My problem when using OpenAL was that I was using stereo sounds. Your sounds should be mono, otherwise you can move your sources/listeners whatever you want, the sounds stays the same.
#4
Posted 10 July 2010 - 12:36 PM
There's not much of a working code...I'm banging my head around this for 2 weeks with the only result to get more and more confused.
x' = x*cos(a) – y*sin(a)
y' = x*sin(a) + y*cos(a)
z' = z
y' = y*cos q – z*sin q
z' = y*sin q + z*cos q
x' = x
z' = z*cos q – x*sin q
x' = z*sin q + x*cos q
y' = y
Moving airplane and camera. Any ideas on how to calculate airplane x,y,z and listener heading? The more airplane and camera postions differ the more sound attenuation.
Many thanks
x' = x*cos(a) – y*sin(a)
y' = x*sin(a) + y*cos(a)
z' = z
y' = y*cos q – z*sin q
z' = y*sin q + z*cos q
x' = x
z' = z*cos q – x*sin q
x' = z*sin q + x*cos q
y' = y
Moving airplane and camera. Any ideas on how to calculate airplane x,y,z and listener heading? The more airplane and camera postions differ the more sound attenuation.
Many thanks
#5
Posted 13 July 2010 - 04:41 PM
seems that listener orientation is broken...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











