Scott Hamilton wrote:
> On Thu, 2009-10-29 at 02:26 +0100, Csaba Halász wrote:
> 
>  > Hi Erik!
>  >
>  > If a sound sample keeps its default orientation of all zeroes then in
>  > SGSoundSample::update_absolute_position the sc2body*q will be also
>  > null and cause a division by zero in SGQuat<double>::backTransform.

Hmm, an orientation vector of (0,0,0) means omnidirectional sound and is 
valid for OpenAL. The strange part is that it does return (0,0,0) for me 
every time..

>     Perhaps this explains why the most recent cvs update produces;

Not really I updated the initialization of the sound sample position to 
prevent NaN's (by initializing it to SGGeod::fromDeg(0,0) but that 
places it far, far away from the sound manager that was still at (0,0) 
in OpenAL location.

I've updated that code in SimGear and added a third test program that 
tests (two) different lat/lon positions.

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