Adding sound to the virtual world

Creating realistic sound effects for the environments is important in the virtual world. It can give the players the feeling of immersing inside the world.

The most basic sound handing method is to play all sounds at the same volume. For instance, a bird is singing in the forest and the avatars are walking on the road. In this case, the user should hear at least the music from the bird and the footfalls.

A better way to handle sounds is to consider distance. For example, the following figure depicts the volume of the bird signing in the room:

Adding sound to the virtual world

The three avatars in the room should hear different volumes of the music ...

Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.