Colour paths by their surface, not their highway class #16
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#16
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?
Path ribbon colour is currently fixed by class: bike paths green, walking
paths brown, roads grey, chosen by the lift constants in
mesh.rs:38-40and thealbedos in
liuverse/src/config.rs.1419 ways carry
surface:A university plaza is
paving_stonesand reads as brown dirt; a gravel trackthrough the woods reads as tarmac.
BakedPathwould carry the surface classalongside its width, and the ribbon albedo would come from it -- the same
AREA_HEIGHTSladder already keeps overlapping ribbons from z-fighting, so thelift stays put and only the albedo moves.
Scope is the ribbons.
highway=crossingpaint is #17.Related
surfacetooThe ribbons are textured now. The albedo is still by highway class.
The path ribbons carry generated surface textures (
a42169a): bike paths and roads get asphalt, walking paths get gravel, and the lit fragment takes its normals from the tile's height field. A path is no longer a flat polygon.The colour is still fixed by class, though: bike green, walking brown, road grey. The
surfacetag is not read for paths at all, and the extract has 1419 of them: 815 asphalt, 170 paving_stones, 141 ground, 79 compacted, 58 fine_gravel, 39 grass, 24 gravel, 22 dirt, 19 concrete, 9 woodchips, 6 sett. So a plaza that ispaving_stonesstill reads as brown dirt and acompactedtrack through the woods still reads as tarmac.Reading
surfaceand taking both the albedo and the tile from it is the same shape of change as the sports-surface work, and the area kinds already carry their surfaces.