1bytecharhaterxxx
New member
- Joined
- Jan 17, 2021
- Messages
- 8
Hi i don't know where to ask and the other time a guy helped me with another question so i try here again .
The problem i'm facing is that i want to simulate how ears perceive sounds in 3d space trought 2 channels(headphones):
What i've done so far:
imagine we have 3 vectors in 3d space one representing my center head,one my right ear and one the center of the sound source(you can think about the sound as a sphere or a circle projected);
1- first of all i calculated the distance from the head to the sound and i simply proportionally decreased and increased the volume of each channel based on that;
2- then i took my head and right points made them 2d,subtracted to the sound source(also made 2d),normalized the 2 points and from the triangle i got the alpha (with origin in the sound source) to get the angle of the ears: with that i can proportionally decreased and increase volume on each channel based on my orientation;
3-here i'm lost: in my mind i need to simulate up/down front/back sound but i didn't find any clear documentation about the argument,and i don't know if it's even possible to do such a thing properly but if for example i play a 3d game i feel like i can understand if a sound is behind me or in front,is this just an human hack or can be mathematically computed?
The problem i'm facing is that i want to simulate how ears perceive sounds in 3d space trought 2 channels(headphones):
What i've done so far:
imagine we have 3 vectors in 3d space one representing my center head,one my right ear and one the center of the sound source(you can think about the sound as a sphere or a circle projected);
1- first of all i calculated the distance from the head to the sound and i simply proportionally decreased and increased the volume of each channel based on that;
2- then i took my head and right points made them 2d,subtracted to the sound source(also made 2d),normalized the 2 points and from the triangle i got the alpha (with origin in the sound source) to get the angle of the ears: with that i can proportionally decreased and increase volume on each channel based on my orientation;
3-here i'm lost: in my mind i need to simulate up/down front/back sound but i didn't find any clear documentation about the argument,and i don't know if it's even possible to do such a thing properly but if for example i play a 3d game i feel like i can understand if a sound is behind me or in front,is this just an human hack or can be mathematically computed?