Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Positional sound effects, easy approach?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 cozzie   Members   -  Reputation: 1660

Like
0Likes
Like

Posted 01 January 2014 - 06:57 AM

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.

Sponsor:

#2 Mona2000   Members   -  Reputation: 617

Like
0Likes
Like

Posted 01 January 2014 - 09:23 AM

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



#3 cozzie   Members   -  Reputation: 1660

Like
0Likes
Like

Posted 03 January 2014 - 11:50 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS