Sign in to follow this  
cozzie

Positional sound effects, easy approach?

Recommended Posts

cozzie    5029
Hi all,

Say you have a 3d scene where on x1 y2 z3 a fan is located, and I add a sound effect to it. My easy approach would be to set the volume to 1.0 if the camera is at 1,2,3 and calculate the volume when the camera is further away, till for example the distance is 4meter, volume is 0 and the sound is not longer played.

I use fmod in my engine and this approach is a walk in the park, accepting that it's not 100% accurate, because objects in between the camera and fan possibly absorb sound.

Just curious what your thoughts are on this and/or how would you do this. Are there known methods how to handle this, tutorials maybe.

Any input is appreciated.

Share this post


Link to post
Share on other sites
Mona2000    1967

FMOD already has methods to handle 3D sounds (Channel::set3DAttributes, System::set3DListenerAttributes) and occlusion (System::createGeometry).

Share this post


Link to post
Share on other sites
cozzie    5029
Thanks, I'm gonna look into it.
Another big advantage (from what I've read so far) on this approach, is that the heading of the player is also taken into account, not only the distance to the sound. Not to mention left/right the right channel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this