Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Jurgen
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 7th Sep 2003 20:24
Hi everyone, this is my next step and I'm heaving some troubles.
I can load a simple sound and place it somewhere on a matrix. Then I position the listener to my character and voila, it works, but not the way I intended to.

What I want to do is that when someone makes a sound, I want to hear from what direction it came, like in counterstrike: you can hear from where the shots are fired, and if you turn the sound adapts...

Did I make my question clear? No okay:

I WANT TO KNOW FROM WERE A SHOT IT FIRED, AND WHEN I TURN AROUND, THE SOUND "ANGLE" CHANGES TOO right?

thanx - Jurgen

"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 7th Sep 2003 21:19 Edited at: 7th Sep 2003 21:20
you need to set the listener position and angle too, I don`t know what your test code looks like since you didn`t post it, but you may have missed that, it isn`t obvious from just reading the help, the commands you need are.

position listener x,y,z
rotate listener x,y,z

normaly you would use them with the object position and object angle functions so that the listeners position and angle are the same as the player model, unless its an fps in which case you use the camera position and angle functions, cheers.

Mentor.

Login to post a reply

Server time is: 2025-05-20 07:54:03
Your offset time is: 2025-05-20 07:54:03