PDA

View Full Version : 3d sound


joeymax
04-21-2008, 02:03 AM
Hi there,

I was wondering how I can add 3d sound to an entire object, so that no matter where you are on that object the volume of sound stays the same.
For instance, the object could be a ground plane which you walk around, and the volume only decreases when you leave that object.

Sorry if this is really dumb, ive checked the user guide but im new to vizard.

Thanks :)

sound = d4.playsound('BusyStation.wav', viz.LOOP)

farshizzo
04-22-2008, 10:05 AM
This is not currently possible. If you want ambient sound then you will need to use the non-3D sound features. You can manually decrease the volume of the sound as you move away from the specific area. Here is how you would create a sound object:ambient = viz.add('BusyStation.wav',loop=True)
ambient.play()You can also set the volume using the following code:ambient.volume(0.5) #Set volume to 50%

joeymax
04-22-2008, 12:36 PM
thanks farshizzo

i think ill experiement with using both 3d sound and ambient sound in my scene, that should work fine! thanks for your help :)