mojira.dev
MC-191170

Casting issue: Positional audio can come from the wrong location at high coordinates

In the attached world, if you open the chest (without moving around or turning the camera), it sounds like it's coming from your right, despite the chest being almost directly in front of you. Move the camera slightly and it sounds normal again.

This seems to be related to distance. Walking around and destroying the trees and grass around you in the attached world (almost 30 million blocks out), you can hear similar things happening.

Reproduction steps which do not require a world download are forthcoming.

Linked issues

Attachments

Comments 23

Please read the moderator note on MC-121364

@unknown: This is a distinct problem. It’s a floating-point precision issue. Note that the chest is mostly centered in view, nowhere near the 30 degrees indicated there for a hard pan. Note that the save puts you out at 30 million blocks. This problem does not occur near the origin. 32-bit floats have a precision of 2 blocks at 30 million, which seems about right given the way it sounds and changes in distinct steps as you move around. With all the recent changes in this regard like particles getting proper precision, it’s only natural for audio to follow suit.

Can reproduce in 20w30a using a setup with a double chest at 20 million blocks out - minor movements to the left and right cause greatly exaggerated differences in sound origin position, which does not happen close to spawn. The chest must be setup in the right position though, such that the origins of the sounds are separate.

[media]

Can confirm for 1.16.2 pre1

Can confirm for 1.16.2pre2

13 more comments
Minecraft386882

Can confirm for 1.21.3. 

Minecraft386882

Mojang, please add a gamerule to remove the world border. Literally nothing is stopping you from doing that, as you can see in this reference video.

https://youtube.com/shorts/oEiFPUB9ScY?si=jH8vB134rGoGuFZU

Minecraft386882

Can confirm in 1.21.4 prerelease 1. 

Minecraft386882

Can confirm in 1.21.4 release candidate 3. 

Minecraft386882

Confirmed in 1.21.4 

HalfOfAKebab

muzikbike

(Unassigned)

Confirmed

Platform

Low

Sound

precision-loss

1.15 Pre-release 1, 20w14a, 20w17a, 20w18a, 20w19a, ..., 24w14a, 1.21.3, 1.21.4 Release Candidate 3, 1.21.5, 1.21.6

Retrieved