a-day-old-bagel / DualityEngine

3D game stuff
0 stars 0 forks source link

Let's get openAL #9

Open a-day-old-bagel opened 8 years ago

a-day-old-bagel commented 8 years ago

we need to figure out how to use this. A demo was suggested.

natevm commented 8 years ago

I discovered openAL soft, which supports head related transfer functions. Here's an implementation of hrtf in a game engine: http://youtu.be/s3eOuqAmLAA

HRTF is calculated based off position & velocity, as well as a HRTF profile (for how far apart your ears are), so it will be just as easy as openal to implement. This would be a killer feature to have.

a-day-old-bagel commented 8 years ago

That's really cool. I wonder how intensive it is to do all the reflection calculations?

We started discussing the structure of the audio system/audio component the other day but I don't think we came to any conclusions. I'm currently putting together the model rendering system (so that it does more than just render boxes). I think it will turn out that the only things the model components will need is a file name string and a few state flags (for non-animated models). I don't know if this will suffice for the audio components or not, but we should probably sketch out how we want this to work.