Tim Moore wrote: > Assuming you want the orientation and position of the listener, and the > positions of the sources, to match those in the visual world, you > should just use the absolute position and orientation in the corresponding > FGViewer object i.e., what you get from FGViewer::getViewPosition() and > FGViewer::getViewOrientation(). You don't need to worry about the local > reference frame, view position and orientation offsets, or the rotation > between OpenGL and aerospace coordinates; that is all included in those > position and orientation values. Then the vectors you need for the OpenAL > orientation are: > > SGVec3d lookAt = viewOrientation.back_transform(-SGVec3d::ec3); > SGVec3d lookUp = viewOrientation.back_transform(SGVec3d::ec2);
Yes, finally! Thanks Tim I doubt I would have ever gotten this without any help. Now only directional sounds should be fixed. 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