OpenAL 3D Audio Tutorial 4: Distance Attenuation

preview_player
Показать описание
OpenAL tutorial series about adding 3D audio to your games!

This week we're taking a look at the various distance attenuation models in OpenAL.

OpenAL specification:

Download the sound effect:

End of video music- Kai Engel, "Waking Stars":

Рекомендации по теме
Комментарии
Автор

Very good tutorial as usual! I'm wondering how you would handle a 'large' sound source, a rippling lake for example. Do you just have to add multiple sound sources roughly equal distances from each other? Would be nice to have the whole source emit the sound rather than just a point sound(s).
I guess the clipped attenuation would help but wouldn't be accurate if the lake wasn't circular

peterhall
Автор

Am I the only want to want a shader based audio pipeline like in OpenGL ? With a "audio source" and a "sample" shader, like the vertex and fragment shader ?

The audio source shader just calculate the speaker position in normalized 3D coordinate [-1.0, 1.0], eye space (with a view matrix etc...).
And the sample shader just calculate the audio sample (still normalized [-1.0, 1.0]) to play.

And you have to simulate the attenuation stuff, camera position, velocity etc...

If programmable pipeline made OpenGL better, why won't it made OpenAL better too ?

nasso_
Автор

Another great Tutorial live every time.

And one Question about Socuwan du you Do all the blendMaps and Heightmaps and when yes di you the all in Photoshop or gimp or whats er or Do you have an other Programm to Do then ?

meatbyte
Автор

+ThinMatrix How come you haven't updated this series?

bryceblankinship
Автор

Hey +ThinMatrix, in the description, there's a typo. It says "This week week we're [...]" Just thought you might want to fix that. :)

katkosmos
Автор

WAhen will you continue?? XD This is importand for developers. Its not only very handy to know this. But its also the thing that I am the worst at! XD

fishingbadboys
Автор

Hello ThinMatrix,

i know how I Do Terrain collision Detection for multiple Terrains but how Do I Do IT for Terrains with an negative x or z corrdinate

meatbyte
Автор

Downloaded mp3 files and converted it to big wav-file but it didn't work in the game. How to convert mp3 to play it in the game?

homelleon