Sven.Panne at BenQ.com
Wed Dec 14 01:41:54 PST 2005
The problem with AL_INVERSE_DISTANCE is the jump from +inf to -inf
distance = referenceDistance * ( 1 - 1 / rolloffFactor )
Probably the gain should stay at a maximum float value when the distance
approaches zero (avoiding a discontinuity), but that is not in the spec.
Sorry for being so picky sometimes, but I need to know what to do to
implement it correctly and consistently with other implementations.
For the curious ones, I've attached a gnuplot batch file and a
PostScript plot showing the effect of the various distance models.
> -----Original Message-----
> From: Garin Hiebert [mailto:garinh at cheesetoast.net]
> Sent: Dienstag, 13. Dezember 2005 16:56
> To: Sven Panne
> Cc: OpenAL List
> Subject: Re: [Openal-devel] _AL_CUTOFF_ATTENUATION
> Anything approaching infinity should go to max float.
> Anything going towards zero and then negative gets clamped at
> zero once the formula goes negative.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5631 bytes
Url : http://localhost.localdomain/pipermail/openal-devel/attachments/20051214/283dfd20/distance-models.bin
More information about the Openal-devel