[openal] distance model questions

Victorious dtvictorious at gmail.com
Tue May 12 03:33:45 EDT 2015

Hi Garin,


I’ve changed to using first-person style movement, so you can turn until you face the sound source. However, that doesn’t seem to have fixed the problem. Which section of the specification/programmer’s guide are you referring to exactly? The distance model doesn’t really help.


From: openal [mailto:openal-bounces at openal.org] On Behalf Of Garin Hiebert
Sent: Tuesday, May 12, 2015 1:28 AM
To: openal mailing list
Subject: Re: [openal] distance model questions


You'll find detailed information (the formulas and graphs) on the distance models in the OpenAL Specification and Reference linked at  <http://openal.org/> openal.org.  Correcting the panning situation that you describe is likely a matter of setting the listener orientation, and once you look over the available models it should be straightforward to get the desired behavior.






On Sun, May 10, 2015 at 10:44 PM, Victorious <dtvictorious at gmail.com> wrote:


I've trying to set up openal-soft so that sounds are played properly depending on my current coordinate system. For example, I'd like sounds which are a distance of 0.5 and below from the listener to appear as if they are centred in the stereo field. Right now, if the listener is at (3.9, 3.9, 0.0) and a sound source is at (4.0, 4.0, 0.0), it still appears to come fairly far from the right. Hence, moving right from that position to somewhere just right of that sound causes a quick panning of the sound from right to left which I don't want.

I'm using the default inverse distance clamped model. From the openal specification, it looks like the parameters I need to set are AL_REFERENCE_DISTANCE and AL_MAX_DISTANCE. I cant to get the desired effect though, so any help will be greatly appreciated.

On a related question, what does clamping do? And how does rolloff factor affect these calculations? i.e what does the default value of 1 mean?

openal mailing list
openal at openal.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openal.org/pipermail/openal/attachments/20150512/753a00bc/attachment.html>

More information about the openal mailing list