At this time I've tried about everything to get the listener orientation 
aligned properly. What's needed it converting the ViewOrientation matrix 
(quaternation) and/or ViewOrientationOffset matrix (quaternation) to 
align with OpenGL and get the look-at and look-up vector from it.
the look-at vector should match the OpenGL view vector and the up-vector 
is the perpendicular vector pointing out of the top of the listeners head.

It looks like I'm really close (for testing I've commented out some 
position offset and velocity vector code) but to me it's not yet 100% 
right, as if I'm missing something. I would really appreciate it if 
someone who knows his way around this could take a look at 
SGSoundManager::update_pos_and_orientation() in 
SimGear/simgear/sound/soundmgr_openal.cxx
View related values are set in FlightGear/src/Main/viewmgr.cxx: both 
recalcLookFrom() anf recalcLookAt()

Erik


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to