sábado, 12 de septiembre de 2009

Easy 3D Sound System

BrainWave  incorporates  a simple system to position sounds in a 3D space:

First you must define the radius of the sphere, or spheroid, which wraps the listener.
pSoundListener->SetWorldRadius(xRadius, yRadius);
pSoundListener->SetWorldRadius(xRadius, yRadius, zRadius);
Out of the defined spheroid, the listener will not listen anything.

Later you must define the position of the sounds:
pSound->SetPosition(x, y, z);

Finally you can change the position of the listener (default 0, 0, 0) and the position of the sound objects that appear in the screen.

No hay comentarios:

Publicar un comentario