[Openal] 3d VR setup
Brandon Thomas
bct2 at calvin.edu
Sat Oct 27 16:22:02 PDT 2007
hello,
Im looking for a way to use openal to really simulate 3d sound.
So far from the documentation and other tutorials I have read, I
haven't been able to simulate sound front to back very well.
I have been able to move the source of the sound from left to right of
the listener by changing the source position of sourcePos[0] . That
does a pretty good job of fading the sound from left to right
depending if I add or subtract.
But when I try to move front to back. I change sourcePos[2] and all
it really does is get louder or softer in both speakers at the same
time.
Does anyone have any recommendations?
Here is my setup, I run Linux (gentoo)
LF C RF
L
LB RB
LF = left front
RF = right front
LB = left back
RB = right back
C = center/sub
L = listener
Ignore the center speaker for now, i'm not sure if that will
complicate things or not
And what think should have happen (and want to happen) is that if my
listener is centered at 0,0,0 and is facing forward( which I think is
+z axis) that if the source is directly in front of me, most of the
sound is from the front two speakers and almost none from the back
two, unless the source is very close to the listener, like within 1.0.
If the source is to the left and front of me, the main sound should
come from front left speaker.
does that make sense? if so, how can I achieve this?
thanks
-Brandon
More information about the Openal
mailing list