You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The camera position and orientation seems to be the basis for the local calculation of positional sound (your audio space origin if you will - or target/ears) while the avatar positions are the sources of the sound (mouth).
I have noticed that you are using the camera position as the avatar position.
This can cause a glitch when the user is using a 3rd person view as the camera position is offset to the avatar.
The glitch would present itself as the source of the sound being some ghost location namely the camera position while one would expect the avatar to be the source of the sound.
I am not sure if player.getCameraPosVec will actually return the camera position or the avatar position. But the name suggest camera.
I have decided this because this case only matters in 3rd person view. And it was still intuitive when I see another avatar right side of my avatar that I would hear the sounds coming in on my right ear - even if from camera perspective it should be front.
I would like to hear your reasoning behind doing it the other way around.
Regards,
Z
The text was updated successfully, but these errors were encountered:
Hi,
The camera position and orientation seems to be the basis for the local calculation of positional sound (your audio space origin if you will - or target/ears) while the avatar positions are the sources of the sound (mouth).
I have noticed that you are using the camera position as the avatar position.
fabric-mumblelink-mod/src/main/kotlin/com/skaggsm/mumblelinkmod/client/ClientMumbleLinkMod.kt
Line 150 in 7f5bf9d
This can cause a glitch when the user is using a 3rd person view as the camera position is offset to the avatar.
The glitch would present itself as the source of the sound being some ghost location namely the camera position while one would expect the avatar to be the source of the sound.
I am not sure if
player.getCameraPosVec
will actually return the camera position or the avatar position. But the name suggest camera.I am accutally doing the exact opposite in the forge mod: avatar position as camera position
https://github.com/zsawyer/MumbleLink/blob/7f0873ac16579fd37f1adb356ddf37ab56afbc31/mod/src/main/java/zsawyer/mods/mumblelink/mumble/UpdateData.java#L149
I have decided this because this case only matters in 3rd person view. And it was still intuitive when I see another avatar right side of my avatar that I would hear the sounds coming in on my right ear - even if from camera perspective it should be front.
I would like to hear your reasoning behind doing it the other way around.
Regards,
Z
The text was updated successfully, but these errors were encountered: