Label buildings and signs on the top-down map #53
No reviewers
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!53
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-36-map-labels"
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?
Closes #36.
The
Moverview now carries text: one name per named building at its footprintcentroid, plus named POIs once the view is zoomed in far enough to read them.
Map labels go through the same
WorldLabelpipe as first-person labels, so nobake text is copied.
How
HudInfo.in_mapbecameHudInfo.map: Option<MapView>.MapViewcarries theortho focus and world-unit height, and
FrameView::Mapuses it too, so theHUD projects through exactly the camera that
rts_pickreads.liuverse_world::rts_projectis the inverse ofrts_pick, with a roundtriptest, so map labels and map clicks share one camera contract.
hud::map_labelsculls to the visible ENU rectangle derived from the mapheight and viewport, which makes the label set follow the zoom.
campus scale however many floors it has.
SIGN_LABEL_HEIGHT; two signswith the same text within a couple of metres are deduped, so a café repeated
on every floor becomes one label.
Room labels
The issue mentions room labels, which I left out deliberately. The bake has
6319 room markers with a median spacing around 1.2 m; from above they collapse
into a wall of text even at close zoom. First-person signage already shows the
room you are in. Stairs and elevators are left out for the same reason. Happy to
revisit if you want a zoom threshold where room codes appear.
Checks
just checkpasses fmt, clippy and deny.cargo test --workspaceneededCARGO_BUILD_RUSTDOC=/usr/bin/rustdocbecause.cargo/config.tomlpointsbuild.rustdocat a kache shim that is not installed here; that is anenvironment issue, unrelated to this change.
bea105c7a2to2116f66421