Put labels in map mode #36
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elsie/liuverse#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
Moverview is pure geometry and a crosshair.hud::paint_labelsreturns immediately when
hud.in_mapis set (hud.rs:598), so there is no textanywhere in the map view -- no building names, no POI signs, no room labels.
All of the machinery to do this already exists and already runs every frame in
first person:
liuverse_world::locate(lib.rs:105) resolves building + floor + room from apoint
hud::poi_labels(hud.rs:668) walks every marker and returns borrowed&strwith a range filter
WorldLabel+project_to_uv(frame.rs:448) project a world position toscreen
The ortho map camera has a height and a scale, so labels need a scale-dependent
range and de-duplication by building rather than by proximity -- at campus scale
you want "A-huset" once, not once per floor.
Cheapest visible improvement in the codebase, and it touches no bake data at
all.
Related