[Openal] Directional source

PK ---- shouisken at hotmail.com
Tue May 30 11:43:02 PDT 2006


Thanks for the fast reply Garin i really appreciate it.

I have a nother question thats is not regarding Directional sources. I while 
back i asked som questions about distance modles and i got i really good 
explenation on what AL_REFRENCE_DISTANCE, AL_MAX_DISTANCE and 
AL_ROLLOFF_FACTOR did in the linear distance model case.

Garin wrote:
"AL_ROLLOFF_FACTOR -- sets the slope
AL_REFERENCE_DISTANCE -- the point where the gain is 1 -- distances greater 
than this will have gain less than 1
AL_MAX_DISTANCE -- the point where the gain becomes zero"

I am now wondering if i could get a similar explenation for the other 
distance models to?
I have read the spec many times, trying to figure it out but i cant seem to 
get it.

/Patrik

>From: Garin Hiebert <garinh at cheesetoast.net>
>Reply-To: garinh at cheesetoast.net
>To: PK ---- <shouisken at hotmail.com>
>CC: openal at opensource.creative.com
>Subject: Re: [Openal] Directional source
>Date: Sun, 28 May 2006 14:21:33 -0700
>
>
>>I wonder if someone can help me to visualize how the inner and outer angle 
>>of the sound cone works (in degrees)?
>
>Visualize a source with its direction vector.  Now create two new vectors 
>at +INNER_ANGLE/2 and -INNER_ANGLE/2.  If the listener is between those two 
>vectors, then there is no attenuation due to the cone angle of the source.  
>Now create two new vectors at +OUTER_ANGLE/2 and -OUTER_ANGLE/2.  If the 
>listener is between either set of INNER and OUTER vectors, then the 
>cone-related gain is attenuated by linear interpolation between zero 
>attenuation at INNER_ANGLE and AL_CONE_OUTER_GAIN at OUTER_ANGLE.  Between 
>the two OUTER_ANGLE vectors opposite the source's direction, the 
>cone-related gain is AL_CONE_OUTER_GAIN.
>
>Garin
>




More information about the Openal mailing list