[GH-ISSUE #4102] Pointed dripstone texture glitches while it falls #1196

Closed
opened 2026-11-02 15:45:00 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @firisov on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4102

The texture of a pointed dripstone lags/glitches when it breaks off and falls. In vanilla 26.3 it falls normally.

Originally created by @firisov on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4102 The texture of a pointed dripstone lags/glitches when it breaks off and falls. In vanilla 26.3 it falls normally.
bsakaguchi 2026-11-02 15:45:00 +07:00
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

/claim

Taking this one. Pointed dripstone has a random XZ model offset (OffsetType.XZ). In vanilla 26.3 the falling block is drawn through ModelBlockRenderer.tesselateBlock, which shifts it by BlockState.getOffset(blockPos) (FallingBlockRenderer.extractRenderState: blockPos = BlockPos.containing(x, maxY, z)), so it keeps the offset it had while hanging. Horizon draws falling blocks without that offset, so the dripstone jumps sideways when it breaks off.

<!-- gh-comment-id:6516885654 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. /claim Taking this one. Pointed dripstone has a random XZ model offset (`OffsetType.XZ`). In vanilla 26.3 the falling block is drawn through `ModelBlockRenderer.tesselateBlock`, which shifts it by `BlockState.getOffset(blockPos)` (`FallingBlockRenderer.extractRenderState`: `blockPos = BlockPos.containing(x, maxY, z)`), so it keeps the offset it had while hanging. Horizon draws falling blocks without that offset, so the dripstone jumps sideways when it breaks off.
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

Withdrawn: #4246 already covers this, so I won't open a duplicate.

One note from my run that may help the review. In-game on current main (a stalactite at 150 149 160, ticks frozen, then stepped), the broken-off piece jumps about 1/8 block sideways to the cell centre. With the model offset applied it stays in line with the hanging one. Vanilla also lights the falling model from BlockPos.containing(x, boundingBox.maxY, z). Horizon samples floor(y) + 1, which is the ceiling cell on the first tick. That could be a small follow-up, separate from #4246.

<!-- gh-comment-id:6516886208 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. Withdrawn: #4246 already covers this, so I won't open a duplicate. One note from my run that may help the review. In-game on current main (a stalactite at 150 149 160, ticks frozen, then stepped), the broken-off piece jumps about 1/8 block sideways to the cell centre. With the model offset applied it stays in line with the hanging one. Vanilla also lights the falling model from `BlockPos.containing(x, boundingBox.maxY, z)`. Horizon samples `floor(y) + 1`, which is the ceiling cell on the first tick. That could be a small follow-up, separate from #4246.
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

PR #4246 is open for this: the model offset only. The per-face light from the second note above isn't in it.

<!-- gh-comment-id:6517440250 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. PR #4246 is open for this: the model offset only. The per-face light from the second note above isn't in it.
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#1196
No description provided.