James Turner wrote: > On 20 Sep 2009, at 09:25, Erik Hofman wrote: > >> I might need some help to understand quads, but I am converting it to >> SGVec3f where ever possible. > > No problem, I'm sure Mathias / Tim / myself can oblige.
Thanks! > One other I've remember from looking at the code - for some reason we > always positioned the listener at (0,0,0), and do a lot of work to > transform world positions into a listener-relative basis. As I > understand it, OpenAL can do that itself, i.e we could use a 'world' > transform for most of the source positions (which would be simpler), > and pass the FGViewer orientation as the OpenAL listener orientation. > I *think* at that point the OpenAL and OSG local cartesian systems > would be in-sync, which might help people generally understanding the > code! True, and I expect it's also the reason why doppler didn't work correctly (besides that the listener velocity wasn't updated while OpenAL needs both the listener velocity and the source velocity for proper calculation of the doppler effect). What I'm planning on doing is let the SoundManager handle the OpenAL context suff /and/ the listener properties and let the individual SampleGroups handle positioning and handling the properties of all associated samples. > I do recall some story, that there was a problem with giving the > OpenAL listener a non-default position, but I've totally forgotten the > origin of that story, whether it applied to a specific OpenAL version/ > platform, or whatever. Or maybe I imagined it. It might have been a long time ago but it doesn't ring a bell for me. Erik ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel