[PR #1725] [MERGED] Client: render server text displays and lobby labels #3719

Closed
opened 2026-11-03 04:11:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1725
Author: @RVZO6
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: feature/text-display-rendering


📝 Commits (5)

  • dc1e16f Model every text-display metadata field against the Java wire codec
  • 792ac58 Render server text displays with billboard transforms and styled glyphs
  • 76408b7 Text displays: an Align enum, and the text shared rather than copied
  • 659bfad Merge the text-display model fixups (#1718) into the renderer
  • 504cb4f Text displays: lines split once per render state, as vanilla caches them

📊 Changes

12 files changed (+767 additions, -1 deletions)

View changed files

📝 crates/horizon-client/examples/probe/main.rs (+2 -0)
➕ crates/horizon-client/examples/probe/text_display_fixture.rs (+37 -0)
📝 crates/horizon-client/src/game.rs (+6 -0)
📝 crates/horizon-client/src/game/remote.rs (+7 -0)
📝 crates/horizon-client/src/game/remote_objects.rs (+12 -1)
➕ crates/horizon-client/src/game/text_displays.rs (+302 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)
➕ crates/horizon-client/src/text_display.rs (+169 -0)
➕ mods/horizon/src/test/java/dev/horizonlab/parity/VanillaTextDisplayOracle.java (+76 -0)
➕ mods/horizon/src/test/java/dev/horizonlab/parity/VanillaTextDisplayTransformOracle.java (+44 -0)
➕ tools/test_text_display_parity.py (+56 -0)
➕ tools/test_text_display_transform_parity.py (+55 -0)

📄 Description

🤖 Opened by RVZO6's AI agent (OpenAI Codex, gpt-6.1-sol), not by RVZO6.

What and why

Render the text-display entities a real server sends for lobby/NPC labels. Depends on #1718 (first commit); the renderer commit is separately reviewable.

  • Spawn/update/move/remove/dimension cleanup, separate position and metadata interpolation clocks.
  • Native billboard transforms (all four modes), TLS*R transforms, styled/Unicode glyphs, wrapping/alignment, text background, opacity, text shadow, light override and see-through text.
  • Upload dynamic glyph patches and expose emitted text-display vertex count in the control status, so an accepted spawn alone cannot pass the end-to-end check.

Verification

  • 513 metadata cases against vanilla's actual accessors and packet codec.
  • 108 matrices against the real Java client DisplayRenderer.calculateOrientation plus Transformation matrices, with absolute float tolerance 0.00002 for JOML/glam operation ordering.
  • Metadata/position interpolation clock regression test passed; client build check and targeted Clippy passed (the existing boxed_local warning in untouched streaming.rs remains allowed locally).
  • A real offline-mode Java 26.3 server sent styled text to an optimized Rust client with fresh data directories. It rendered the gold label, emitted 124 text vertices and reported zero decode errors; screenshot inspected locally.

Scope: text displays only. Block/item displays, entity glow outlines and nonzero entity ground-shadow settings are not implemented here. Raw game artifacts and private captures stay local.

🤖 Generated with OpenAI Codex.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1725 **Author:** [@RVZO6](https://github.com/RVZO6) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feature/text-display-rendering` --- ### 📝 Commits (5) - [`dc1e16f`](https://github.com/horizon-rust/horizon/commit/dc1e16f4729f7439527c70eee211ab413e6cf150) Model every text-display metadata field against the Java wire codec - [`792ac58`](https://github.com/horizon-rust/horizon/commit/792ac58f462d285f7b61656a151e43d3d8d74bb8) Render server text displays with billboard transforms and styled glyphs - [`76408b7`](https://github.com/horizon-rust/horizon/commit/76408b734e082ee149e558e1e2ee8a1114cef742) Text displays: an Align enum, and the text shared rather than copied - [`659bfad`](https://github.com/horizon-rust/horizon/commit/659bfad86c4a70a85af64b47a46be2e62a98ab78) Merge the text-display model fixups (#1718) into the renderer - [`504cb4f`](https://github.com/horizon-rust/horizon/commit/504cb4f74c97e810be76552d1a521aceb0ae2133) Text displays: lines split once per render state, as vanilla caches them ### 📊 Changes **12 files changed** (+767 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/main.rs` (+2 -0) ➕ `crates/horizon-client/examples/probe/text_display_fixture.rs` (+37 -0) 📝 `crates/horizon-client/src/game.rs` (+6 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+7 -0) 📝 `crates/horizon-client/src/game/remote_objects.rs` (+12 -1) ➕ `crates/horizon-client/src/game/text_displays.rs` (+302 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) ➕ `crates/horizon-client/src/text_display.rs` (+169 -0) ➕ `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaTextDisplayOracle.java` (+76 -0) ➕ `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaTextDisplayTransformOracle.java` (+44 -0) ➕ `tools/test_text_display_parity.py` (+56 -0) ➕ `tools/test_text_display_transform_parity.py` (+55 -0) </details> ### 📄 Description > 🤖 Opened by RVZO6's AI agent (OpenAI Codex, gpt-6.1-sol), not by RVZO6. ## What and why Render the text-display entities a real server sends for lobby/NPC labels. Depends on #1718 (first commit); the renderer commit is separately reviewable. - Spawn/update/move/remove/dimension cleanup, separate position and metadata interpolation clocks. - Native billboard transforms (all four modes), T*L*S*R transforms, styled/Unicode glyphs, wrapping/alignment, text background, opacity, text shadow, light override and see-through text. - Upload dynamic glyph patches and expose emitted text-display vertex count in the control status, so an accepted spawn alone cannot pass the end-to-end check. ## Verification - 513 metadata cases against vanilla's actual accessors and packet codec. - 108 matrices against the real Java client DisplayRenderer.calculateOrientation plus Transformation matrices, with absolute float tolerance 0.00002 for JOML/glam operation ordering. - Metadata/position interpolation clock regression test passed; client build check and targeted Clippy passed (the existing boxed_local warning in untouched streaming.rs remains allowed locally). - A real offline-mode Java 26.3 server sent styled text to an optimized Rust client with fresh data directories. It rendered the gold label, emitted 124 text vertices and reported zero decode errors; screenshot inspected locally. Scope: text displays only. Block/item displays, entity glow outlines and nonzero entity ground-shadow settings are not implemented here. Raw game artifacts and private captures stay local. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:11:41 +07:00
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#3719
No description provided.