[GH-ISSUE #4248] Enchantment icons are rendered incorrectly #1248

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

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

  1. Only half of advancement icons are draw when scrolling at very top/bottom of the advancement menu (hard to explain, see screenshots)

  2. Enchanted books do not render their texture. Hovering over the enchanted book temporarily renders the texture correctly until mouse is no longer hovering

Image Image
Originally created by @ScrapDrawer22 on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4248 1. Only half of advancement icons are draw when scrolling at very top/bottom of the advancement menu (hard to explain, see screenshots) 2. Enchanted books do not render their texture. Hovering over the enchanted book temporarily renders the texture correctly until mouse is no longer hovering <img width="518" height="336" alt="Image" src="https://github.com/user-attachments/assets/680cc51a-e61d-4391-9ed6-6d8b0f7316b4" /> <img width="520" height="349" alt="Image" src="https://github.com/user-attachments/assets/4698bdb9-5613-413e-870e-bc64fdfc8a49" />
bsakaguchi 2026-11-02 15:45:23 +07:00
Author
Owner

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

/claim

🤖 Agent: claiming this issue.

<!-- gh-comment-id:6517491503 --> @DUzzL commented on GitHub (Oct 30, 2026): /claim 🤖 Agent: claiming this issue.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You hold 5 open issues: finish or /unclaim one first. (asked by @DUzzL)

<!-- gh-comment-id:6517494055 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You hold 5 open issues: finish or `/unclaim` one first. (asked by @DUzzL)
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 30, 2026):

Also reported on Discord by CrisL: Discord thread

What I did: Open the advancements menu and navigate/scroll to the left on the "Minecraft" tab
What happened: A glitch effect occurred while scrolling, causing the "Minecraft" tab icon to visually distort
What I expected: I expected the advancements menu and tab icons to scroll smoothly without any visual glitches.
Horizon version: as the game shows it (Nightly <2026-10-30> · <1da354b>)
OS, CPU, GPU: Linux mint xfce, AMD Ryzen 5 3400G (8) @ 3.700GH, AMD ATI Radeon Vega Series / Ra

<!-- gh-comment-id:6530353288 --> @kira-horizon[bot] commented on GitHub (Oct 30, 2026): Also reported on Discord by **CrisL**: [Discord thread](https://discord.com/channels/1559227979002028052/1565791183949533305) > What I did: Open the advancements menu and navigate/scroll to the left on the "Minecraft" tab > What happened: A glitch effect occurred while scrolling, causing the "Minecraft" tab icon to visually distort > What I expected: I expected the advancements menu and tab icons to scroll smoothly without any visual glitches. > Horizon version: as the game shows it (Nightly &lt;2026-10-30&gt; · &lt;1da354b&gt;) > OS, CPU, GPU: Linux mint xfce, AMD Ryzen 5 3400G (8) @ 3.700GH, AMD ATI Radeon Vega Series / Ra - [2026-10-30_12-10-51.mp4](https://cdn.discordapp.com/attachments/1565791183949533305/1565791185472200764/2026-10-30_12-10-51.mp4?ex=6ae6302d&is=6ae4dead&hm=131564481319049ab547c2878cd23542228512c26a99a44e8618f4e6ae360f86&) <!-- kira -->
Author
Owner

@mariuslozo-boop commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

Claimed by mariuslozo-boop's AI agent (Claude Code, Claude Opus 5.5), not by mariuslozo-boop personally. Both points: enchanted books that only render while hovered, and the advancement icons cut at the top and bottom edges of the scrolled tab. If they turn out to be unrelated causes, they go in separate PRs.

<!-- gh-comment-id:6548408429 --> @mariuslozo-boop commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Claimed by mariuslozo-boop's AI agent (Claude Code, Claude Opus 5.5), not by mariuslozo-boop personally. Both points: enchanted books that only render while hovered, and the advancement icons cut at the top and bottom edges of the scrolled tab. If they turn out to be unrelated causes, they go in separate PRs.
Author
Owner

@mariuslozo-boop commented on GitHub (Oct 31, 2026):

🤖 Agent: Both points are fixed on main by #4258 (merged 2026-10-30). Reproduced them by building main with #4258's clip_since change reverted: the Enchanter icon (enchanted book) draws as an opaque dark purple square until hovered, the Minecraft tab icon gets a white diagonal after dragging the tree, and icons at the top/bottom edges are cut into half-triangles. On current main (0720d6de7) the book draws with its glint, the tab icon is correct, and edge icons are clipped cleanly. The cause was HudBatch::clip_since dropping whole triangles and leaving the additive-blend ranges on stale vertex indices, so the glint was drawn alpha-blended; #4258 clips triangles as polygons and moves the blend ranges with their vertices, and adds tests for both. Suggest closing as fixed by #4258. Releasing my claim.

<!-- gh-comment-id:6549554285 --> @mariuslozo-boop commented on GitHub (Oct 31, 2026): 🤖 Agent: Both points are fixed on main by #4258 (merged 2026-10-30). Reproduced them by building main with #4258's `clip_since` change reverted: the Enchanter icon (enchanted book) draws as an opaque dark purple square until hovered, the Minecraft tab icon gets a white diagonal after dragging the tree, and icons at the top/bottom edges are cut into half-triangles. On current main (`0720d6de7`) the book draws with its glint, the tab icon is correct, and edge icons are clipped cleanly. The cause was `HudBatch::clip_since` dropping whole triangles and leaving the additive-blend ranges on stale vertex indices, so the glint was drawn alpha-blended; #4258 clips triangles as polygons and moves the blend ranges with their vertices, and adds tests for both. Suggest closing as fixed by #4258. Releasing my claim.
Author
Owner

@mariuslozo-boop commented on GitHub (Oct 31, 2026):

🤖 Agent: /unclaim

<!-- gh-comment-id:6549554460 --> @mariuslozo-boop commented on GitHub (Oct 31, 2026): 🤖 Agent: /unclaim
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

🤖 Agent: Fixed on main by #4258 (f69bf3deb, bf103fc38): HudBatch::clip_since now clips GUI item triangles at the scissor as polygons and keeps the blend ranges aligned, which was the cause of the broken enchanted book and advancement icons. It was confirmed gone on main with the change reverted and reapplied. Please reopen if a current Nightly still shows it.

<!-- gh-comment-id:6550607219 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: Fixed on main by #4258 (`f69bf3deb`, `bf103fc38`): `HudBatch::clip_since` now clips GUI item triangles at the scissor as polygons and keeps the blend ranges aligned, which was the cause of the broken enchanted book and advancement icons. It was confirmed gone on main with the change reverted and reapplied. Please reopen if a current Nightly still shows 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#1248
No description provided.