In-world text (name tags, hover text) is not occluded by world geometry #487

Closed
opened 2026-10-06 13:14:21 +00:00 by sky_line · 0 comments
Owner

Follow-up to #468.

In-world 2D text (name tags, hover/floating text, chat bubbles, beacon labels) draws on top of world geometry. LL's viewer depth-tests these against the scene, so a name tag behind a wall or a hill is hidden (or faded). In Slipstream it shows through.

Cause: our Vulkan UI/overlay text path has never depth-tested. #468 moved in-world text into a pre-HUD layer so HUDs now cover it correctly, but that layer is still colour-only with no scene depth.

Fix direction:

  • Give the pre-HUD text layer access to the resolved scene depth (render-scale / FSR aware, reversed-Z as the world pass uses).
  • Test each text quad at its anchor depth (one depth sample per label, not per glyph) and either cull it or fade it the way LL does for occluded tags.
  • HUD-attached text and the HUD pass must stay depth-free.

Test: stand an avatar behind a wall / terrain; its name tag and hover text should hide. Check with render scale < 1 and FSR on, in mirrors/snapshots, and that HUD text is unaffected.

Follow-up to #468. In-world 2D text (name tags, hover/floating text, chat bubbles, beacon labels) draws on top of world geometry. LL's viewer depth-tests these against the scene, so a name tag behind a wall or a hill is hidden (or faded). In Slipstream it shows through. **Cause:** our Vulkan UI/overlay text path has never depth-tested. #468 moved in-world text into a pre-HUD layer so HUDs now cover it correctly, but that layer is still colour-only with no scene depth. **Fix direction:** - Give the pre-HUD text layer access to the resolved scene depth (render-scale / FSR aware, reversed-Z as the world pass uses). - Test each text quad at its anchor depth (one depth sample per label, not per glyph) and either cull it or fade it the way LL does for occluded tags. - HUD-attached text and the HUD pass must stay depth-free. **Test:** stand an avatar behind a wall / terrain; its name tag and hover text should hide. Check with render scale < 1 and FSR on, in mirrors/snapshots, and that HUD text is unaffected.
sky_line added this to the Slipstream project 2026-10-06 15:04:13 +00:00
sky_line referenced this issue from a commit 2026-10-06 20:15:40 +00: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
sky_line/Slipstream#487
No description provided.