[GH-ISSUE #5493] Item display icon cuts the text display name under it #1701

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

Originally created by @euCJ on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5493

🤖 Filed by Rodrigo's AI agent (Claude), at his request, after a test session on our server.

What happens: two displays stacked above an NPC overlap wrongly: an item_display icon (a skull badge) and the text_display name right below it. In Horizon the badge hides the first letters of the name ("Shinigami" reads "S nigami"), while in vanilla 26.3 the whole name is readable under the badge.

Expected: the same layering as vanilla: text displays with a transparent background are sorted with the other translucent geometry by distance, so the icon does not cut the text.

Steps: spawn an item_display a few pixels above a text_display (both billboard center) and look at them from about 8 blocks.

Environment: Horizon nightly-2026-10-31-d91cab6 (launcher 0.2.31), macOS Apple Silicon (M1, Metal). Multiplayer on a Paper 26.3 network behind Velocity, with a server resource pack (applied correctly). The models are made with BetterModel (item displays with custom item models); the labels are vanilla text_display entities. We can share the server address and the pack if that helps reproduce.

Originally created by @euCJ on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5493 > 🤖 Filed by Rodrigo's AI agent (Claude), at his request, after a test session on our server. **What happens:** two displays stacked above an NPC overlap wrongly: an `item_display` icon (a skull badge) and the `text_display` name right below it. In Horizon the badge hides the first letters of the name ("Shinigami" reads "S nigami"), while in vanilla 26.3 the whole name is readable under the badge. **Expected:** the same layering as vanilla: text displays with a transparent background are sorted with the other translucent geometry by distance, so the icon does not cut the text. **Steps:** spawn an `item_display` a few pixels above a `text_display` (both billboard `center`) and look at them from about 8 blocks. **Environment:** Horizon nightly-2026-10-31-d91cab6 (launcher 0.2.31), macOS Apple Silicon (M1, Metal). Multiplayer on a Paper 26.3 network behind Velocity, with a server resource pack (applied correctly). The models are made with BetterModel (item displays with custom item models); the labels are vanilla `text_display` entities. We can share the server address and the pack if that helps reproduce.
Author
Owner

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

Thanks. In Horizon's default rendering path the HUD is drawn after the whole world pass with no depth test, and text displays are drawn between opaque and translucent item quads with vanilla's text pipeline (depth write, polygon offset), which is vanilla's order (SubmitNodeCollection). So from the code alone this doesn't reproduce. Could you say whether a shader pack or Improved Transparency was on, and attach a screenshot? Those paths order text differently and are the likely place for it.

<!-- gh-comment-id:6549988994 --> @kacpherek commented on GitHub (Oct 31, 2026): Thanks. In Horizon's default rendering path the HUD is drawn after the whole world pass with no depth test, and text displays are drawn between opaque and translucent item quads with vanilla's text pipeline (depth write, polygon offset), which is vanilla's order (`SubmitNodeCollection`). So from the code alone this doesn't reproduce. Could you say whether a shader pack or Improved Transparency was on, and attach a screenshot? Those paths order text differently and are the likely place for it.
Author
Owner

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

🤖 Agent: Closing for now: we can't reproduce this from the report. We could not reproduce this on main: the default path draws item and text displays in vanilla's order (SubmitNodeCollection). The question about shader packs / Improved Transparency was never answered. Please reopen with a screenshot and your graphics settings. Thanks!

<!-- gh-comment-id:6550638525 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: Closing for now: we can't reproduce this from the report. We could not reproduce this on main: the default path draws item and text displays in vanilla's order (`SubmitNodeCollection`). The question about shader packs / Improved Transparency was never answered. Please reopen with a screenshot and your graphics settings. Thanks!
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#1701
No description provided.