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.

DarkBASIC Discussion / o by the sound of it i need help :(

Author
Message
SpazDC
20
Years of Service
User Offline
Joined: 20th Oct 2004
Location: Hmm... Good question
Posted: 2nd May 2005 09:04
i have a problem with my sound. i need it to be a 3d sound so it will be attached to a car. but i can't get it to work. can someone help a bit.

give me what i want and i will go away!
SpazDC
20
Years of Service
User Offline
Joined: 20th Oct 2004
Location: Hmm... Good question
Posted: 2nd May 2005 09:39
ok basicly what i am asking is how do i put a sound by an object to make it seem the sound is coming from it. i've done everything the book has said no luck yet.

give me what i want and i will go away!
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 2nd May 2005 22:48 Edited at: 2nd May 2005 23:30
I see what you mean, when a car comes closer the noise that the car makes will increase instead of being at one tone.

I never worked with sound before

I still need 3d sound for my FPS so I might as well give it a try.

works for me


please reply
SpazDC
20
Years of Service
User Offline
Joined: 20th Oct 2004
Location: Hmm... Good question
Posted: 3rd May 2005 08:36 Edited at: 3rd May 2005 08:50
thanks i hope this hepls!

waaa still no work. Why won't iy work???

give me what i want and i will go away!
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 3rd May 2005 11:10
SpazDC,

Please post your code and upload your sound, that I can help you figure this out.


+NanoBrain+
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 3rd May 2005 20:27
Ther's a 3d sound example in the help section (nr.11 of sound; "3D Sound Placement"). check that one out.

please reply
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 4th May 2005 14:08 Edited at: 4th May 2005 14:11
ummmm,
look at where the listener is located ....

the sound should be positioned at the car object,
and updated whenever the car is moved.

the listener should be position where the
camera is located, and pointed as the camera is pointed...

also, you may need to manually adjust the sound volume
based upon distance, DB does a poor job at that,
but that only makes sense as DB does not understand scale
factors as far as sounds go.

If you place the sound and the listener at the same spot,
the sound will always be the same.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 5th May 2005 00:55
Do you mean the doppler effect?
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 5th May 2005 07:11
for people who don't know; the doppler effect:
http://archive.ncsa.uiuc.edu/Cyberia/Bima/doppler.html

please reply
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 5th May 2005 23:29
Hi there

Simply put, position the sound and the listeners and reduce the sound volume if your world dimensions are too small for there to be a realistic effect. If the sound is close, the volume should be loud and the other way around too. But, in your case, your distances are too small. So, even staying further away from the sound (in your game) may make it still seem too loud. Have a look at this code. You'll need the attached sound too.



Ask if you don't understand Hope this helps

HelloWorld Tommorrow

Login to post a reply

Server time is: 2025-05-23 00:04:27
Your offset time is: 2025-05-23 00:04:27