You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Ursina does not support playing stereo sound effects. All audio is heard equally in both speakers, which limits the immersive experience for 3D environments. This issue aims to introduce support for playing 3D sound effects, where audio volume and balance dynamically adjust based on the sound's position in 3D space, as well as the orientation of the listener.
The goal is to allow developers to input the following parameters:
The position (x, y, z) and rotation of the entity (listener) that hears the sound.
The position (x, y, z) of the entity (sound source) that plays the sound.
The system will use this information to:
Calculate the distance between the sound source and the listener to adjust the overall volume (e.g., closer sounds are louder, farther sounds are quieter).
Determine the direction of the sound relative to the listener's position and rotation to calculate the left and right audio channel volumes, creating a realistic stereo effect.
For example:
A sound coming from the left of the listener's current orientation will have higher volume in the left speaker and lower volume in the right speaker.
A sound coming from the right of the listener will do the opposite.
If the sound is directly in front of the listener, both speakers will play the sound equally.
The system will also account for cases where the listener rotates or moves, dynamically adjusting the audio to match the new orientation and distance.
This feature will help create more realistic and immersive soundscapes for 3D environments in Ursina by integrating position and rotation-based audio effects.
The text was updated successfully, but these errors were encountered:
Description:
Currently, Ursina does not support playing stereo sound effects. All audio is heard equally in both speakers, which limits the immersive experience for 3D environments. This issue aims to introduce support for playing 3D sound effects, where audio volume and balance dynamically adjust based on the sound's position in 3D space, as well as the orientation of the listener.
The goal is to allow developers to input the following parameters:
(x, y, z)
and rotation of the entity (listener) that hears the sound.(x, y, z)
of the entity (sound source) that plays the sound.The system will use this information to:
For example:
This feature will help create more realistic and immersive soundscapes for 3D environments in Ursina by integrating position and rotation-based audio effects.
The text was updated successfully, but these errors were encountered: