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

galaxy_2alex

Please read the moderator note on MC-121364

migrated

@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.

muzikbike

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]

muzikbike

Can confirm for 1.16.2 pre1

muzikbike

Can confirm for 1.16.2pre2

muzikbike

Affects pre3

muzikbike

Affects 20w45a

muzikbike

Affects 20w46a

muzikbike

Affects 21w03a

migrated

@Mods feel free to reassign this to Connor

migrated

Can confirm in 1.17 Pre-release 2

migrated

Can confirm 1.17 Pre-release 3

ampolive

Probably relates to MC-177725.

ampolive

Can confirm in 21w41a.

Jurta

can confirm for 23w07a

NeunEinser

This has gotten worse in more recent versions (somewhere after 1.16)

migrated

Has gotten MUCH worse in 1.20 and 1.20.1, now the corrupted and off-positioned sound is very apparent even within vanilla bounds especially past 16777216.

Jurta

can confirm this for 24w14a

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 

muzikbike

(Unassigned)

Confirmed

Platform

Low

Sound

precision-loss

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

Retrieved