[PR #3060] [MERGED] Name tags read the right way in the front third-person view #4776

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3060
Author: @kacpherek
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: fix/name-tags-face-front-camera


📝 Commits (1)

  • c665541 Turn name tags to the camera in third-person front view

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/names.rs (+9 -1)

📄 Description

What and why

  • Reported on Discord with screenshots: in the front view (F5 pressed twice) player names and server holograms (armor stand names) show mirrored.
  • name_tag_quads oriented the text from the player's own look (view_vector(self.yaw, self.pitch)). In the front view the camera looks the other way, so the quads faced away from it and the text read backwards.
  • Vanilla turns name tags with the camera's own rotation (Camera.rotation(), set with yaw + 180 and -pitch in front view). Name tags now use those camera angles, the same way camera_orientation and the text displays already do.

Vanilla reference

EntityRenderer.submitNameTag / SubmitNodeCollection.submitNameTag (cameraOrientation), Camera.setup (front view turns the camera round).

Self-check

fmt passes. Built and tested by this pull request's checks. Not run in game.


🔄 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/3060 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/name-tags-face-front-camera` --- ### 📝 Commits (1) - [`c665541`](https://github.com/horizon-rust/horizon/commit/c66554126db5f76745b17a7df3b69a4284b058a2) Turn name tags to the camera in third-person front view ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/names.rs` (+9 -1) </details> ### 📄 Description ## What and why - Reported on Discord with screenshots: in the front view (F5 pressed twice) player names and server holograms (armor stand names) show mirrored. - `name_tag_quads` oriented the text from the player's own look (`view_vector(self.yaw, self.pitch)`). In the front view the camera looks the other way, so the quads faced away from it and the text read backwards. - Vanilla turns name tags with the camera's own rotation (`Camera.rotation()`, set with yaw + 180 and -pitch in front view). Name tags now use those camera angles, the same way `camera_orientation` and the text displays already do. ## Vanilla reference `EntityRenderer.submitNameTag` / `SubmitNodeCollection.submitNameTag` (`cameraOrientation`), `Camera.setup` (front view turns the camera round). ## Self-check fmt passes. Built and tested by this pull request's checks. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:51 +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#4776
No description provided.