[openal] distance model questions

Chris Robinson chris.kcat at gmail.com
Mon May 18 23:10:30 EDT 2015

On 05/18/2015 06:21 AM, Victorious wrote:
> I mean the former. For simplicity, I probably want a boxed shape, and
> the axis will always be in respect to the global x/y/z axis.

In that case, you need to calculate the distance to the nearest point on 
the bounding box when the point lies outside of it, and subtract that 
from the real distance and radius when calculating the interpolation factor.

Unfortunately the exact math to do that escapes me at the moment.

More information about the openal mailing list