[GH-ISSUE #1394] [particle] Zero spread is offset by the player's position #418

Closed
opened 2026-11-02 15:38:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1394

Confirmed in old singleplayer at 83fa14e51b89eab728b8e233e9e5d95296bef93d; threaded rendering is masked by #1392.

Reproduce above ground near Y=100:
/particle minecraft:flame ~ ~1 ~3 0 0 0 0 1000 force @s

Expected: zero delta spawns particles together at one point. Spread should not depend on the command source's world position.

Actual: flames scatter through a tall vertical region instead. Nonzero small deltas also spread far beyond the requested size.

Evidence: .local/singleplayer-audit/particles-e/zero-delta-old/zero-delta-1.png; earlier particles-{a,b,d} also show the excessive spread. Native 26.3 native-particle-delta-reference-b/particle-packets.jsonl records delta [0,0,0] for zero and approximately [.2,.2,.2] for .2, with count 1000. Checker: 85 log lines, zero suspicious.

Hypothesis: cmd_particle resolves delta, then subtracts source_position as if the supplied vector were an absolute target position.

Acceptance: numeric particle delta values produce the requested spread, including zero, independently of the source's coordinates. Restore threaded delivery separately in #1392.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1394 Confirmed in old singleplayer at `83fa14e51b89eab728b8e233e9e5d95296bef93d`; threaded rendering is masked by #1392. Reproduce above ground near Y=100: `/particle minecraft:flame ~ ~1 ~3 0 0 0 0 1000 force @s` Expected: zero delta spawns particles together at one point. Spread should not depend on the command source's world position. Actual: flames scatter through a tall vertical region instead. Nonzero small deltas also spread far beyond the requested size. Evidence: `.local/singleplayer-audit/particles-e/zero-delta-old/zero-delta-1.png`; earlier particles-{a,b,d} also show the excessive spread. Native 26.3 `native-particle-delta-reference-b/particle-packets.jsonl` records delta [0,0,0] for zero and approximately [.2,.2,.2] for .2, with count 1000. Checker: 85 log lines, zero suspicious. Hypothesis: cmd_particle resolves delta, then subtracts source_position as if the supplied vector were an absolute target position. Acceptance: numeric particle delta values produce the requested spread, including zero, independently of the source's coordinates. Restore threaded delivery separately in #1392.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#418
No description provided.