From: Tim M. <ti...@re...> - 2009-11-01 22:38:12
|
On 11/01/2009 06:28 PM, Erik Hofman wrote: > > 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() I'm sorry I haven't looked in on this sooner. I've started to look at this and will have a (hopefully) coherent observation in the morning. Tim |