moagames
15-05-2008 10:53:13
Hi,
I know, it has been asked several times before, but even after searching through the forum i didn't get an good answere.
The problem is, that when i set a sound in the environment and attach it to a scenenode, it works fine, but it fades away very slowly, so i have to go really very far away to get it to the point, that i nearly can't hear it.
I used the same standart code like in the example.
My Unit scale is 1meter=1unit.
Can anybody tell me with a few lines of code, how i can create a sound, that is at the Position of a scenenode (let's say scenenode with the name node and with the position Vector3(10,10,10) ) and i want, that when the listener is 10 meters away, you can't hear it anymore. In between the sound should fade out.
I tried several parameters for rollof, refdistance and maxdistance but could't figure out fitting parameters.
Another question is: when i am too far from the source (let's say in the example 12 meters away) is the sound then cutted off, so, that it isn't calculated or transmitted to the soundcard anymore or do i have to make this on my own ?
Thank ou for your help.
I know, it has been asked several times before, but even after searching through the forum i didn't get an good answere.
The problem is, that when i set a sound in the environment and attach it to a scenenode, it works fine, but it fades away very slowly, so i have to go really very far away to get it to the point, that i nearly can't hear it.
I used the same standart code like in the example.
My Unit scale is 1meter=1unit.
Can anybody tell me with a few lines of code, how i can create a sound, that is at the Position of a scenenode (let's say scenenode with the name node and with the position Vector3(10,10,10) ) and i want, that when the listener is 10 meters away, you can't hear it anymore. In between the sound should fade out.
I tried several parameters for rollof, refdistance and maxdistance but could't figure out fitting parameters.
Another question is: when i am too far from the source (let's say in the example 12 meters away) is the sound then cutted off, so, that it isn't calculated or transmitted to the soundcard anymore or do i have to make this on my own ?
Thank ou for your help.