Is it possible to hear a positioned sound correctly depending on the angle of the 3D camera ?
Example : object is in front of me, if I move my camera on the right side I should hear my sound from the left side
Thank you !
Playing sounds at the 3D cameras position and setting the listener Z height to the camera's Z position should give correct results.
The issue is that the 3D camera rotating on itself (like in a FPS) doesn't impact the direction the sound is comming from.
Did anyone managed to solve this ?
Develop games in your browser. Powerful, performant & highly capable.
there was this thread a few days ago https://www.construct.net/en/forum/construct-3/how-do-i-8/rotate-audio-relative-166583
but I don't think they fully solved that problem.
No, unfortunately its not fully solved and i have given up for now, i might look later into this again, but i dont think there is a straight forward solution. Maybe the approach to rotate the layer after spawning the sound sources there might be correct, but that makes for a lot of extra uneccesary objects...
I came back on this issue.
The example uses layer rotation and LayerToCanvas expressions to position listener and audio source objects. No need to translate and rotate world coordinates on instance level.
Awesome ! I will give 3D another try now that this is possible.
Thanks for the file :)
Luckily the solution comes with R318 and the possibility to set the listener angle and play sounds at XYZ.