[Openal] Setting listener orientation
Peter Soxberger
Peter.Soxberger at gmx.net
Sun Feb 14 08:11:02 PST 2010
Hi!
I guess this is an often asked question but I didn't found any useful information for this problem:
I have the position (.x, .y, .z,) and the angles/orientation (.pan, .tilt, .roll) of the camera of a grafic engine. Setting the OpenAL listener position is easy. But how do I set the orientation?
alListenerfv(AL_ORIENTATION, ListenerOri);
This is the function but I don't know how I have to convert the angles into an "at" and "up" vector.
Could anybody tell me how this works? Btw. I have no clue what is ment by an at and up vector. Why doesn't OpenAL use angles for the orientation?
Thanks for your help!
Best regards,
Peter Soxberger
--
NEU: Mit GMX DSL über 1000,- ¿ sparen!
http://portal.gmx.net/de/go/dsl02
More information about the Openal
mailing list