Setting listener orientation
"Peter Soxberger" <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal