16 Commits
Author SHA1 Message Date
Cursor Agentand西风逍遥游 587ba56758 Polish interchange: filleted ground cross and example key 5
Rebuild makeInterchange so the ground hub reuses the makeCross fillet
sizing and axis arms, smooth the elevated ring/ramps, wire scene key 5
in the example, and cover bake with an interchange scene test.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:53:36 +00:00
Cursor Agentand西风逍遥游 57087faa2d Seal curb-return skirts with double-sided walls
Emit both windings for asphalt curb, curb riser, and outer sidewalk
skirts so overhead views cannot cull them, overlap curb/sidewalk tops
at r1, and densify the arc. Tip disk to (±jr,±jr) stays removed.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:51:06 +00:00
Cursor Agentand西风逍遥游 e812657827 Face curb-return skirts toward the hub camera
Overhead views were backface-culling property-facing skirt normals into
a thin silhouette; flip curb riser and outer gray skirts toward the hub.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:51:06 +00:00
Cursor Agentand西风逍遥游 c83da07ee4 Trim cross corner sidewalk tip and fix outer arc skirt
Drop the sidewalk fan to (±jr,±jr) that made a sharp property-corner
spike, and emit a walk-height sidewalk vertical on the outer gray arc
so the skirt faces render instead of showing through.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:51:06 +00:00
Cursor Agentand西风逍遥游 3bebb8704c Restore outward-center curb returns at cross junctions
Revert convex (ah,ah) arcs that flipped the curb returns again.
Keep concave corners with centers at (±jr,±jr), sidewalk disks toward
the property corner, plus exact trim tips, seal strips, and U-cap skip.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:51:06 +00:00
Cursor Agentand西风逍遥游 d36e3dbf9d Restore convex curb arcs and keep exact arm/apron tips
Outward-center (concave) returns left salmon seams at the corners.
Put circle centers back at asphaltHalf so the apron bulges convexly,
keep snapped trim endpoints plus tip seal strips, and retarget the
corner sidewalk test.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:51:06 +00:00
Cursor Agentand西风逍遥游 0fa7fb0764 Fix junction face winding to match mesh3D normals
Orient apron and curb-return quads so geometric winding agrees with
the stored normal (object-space CCW). Drop the dual-winding hack that
left dark/flipped corner faces under lit shading.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:37 +00:00
Cursor Agentand西风逍遥游 8a207d4dac Flip curb returns so circle centers sit outward
Use corner centers at (asphaltHalf+R) so the asphalt edge is concave
and sidewalks wrap toward the property corner instead of bulging out.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:37 +00:00
Cursor Agentand西风逍遥游 6c02983a90 Fillet cross junction: push arms out and add curb arcs
Trim the four arms past asphalt half-width so sidewalks no longer
stack at the hub, fill a filleted asphalt apron, and rebuild the
corners as quarter-circle curb/sidewalk returns.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:37 +00:00
Cursor Agentand西风逍遥游 d6c220be90 Rebuild cross junction: asphaltHalf apron, corner pads, end caps
Size the hub trim to driving-lane width so arms meet a square asphalt
apron without a gap. Add raised curb corner platforms and profile end
caps so jersey-barrier U-channels are not see-through at the hub.
Paint zebra stripes on every arm approach.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00
Cursor Agentand西风逍遥游 18f042fc9b Fix upright bridge piers and fill the cross junction apron
Piers now use a world-up orthonormal basis so columns stay vertical.
Axis-aligned crosses get a hub-fan square asphalt apron plus sidewalk
corner pads (single large strip-quads were dropping out under Lavapipe).

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00
Cursor Agentand西风逍遥游 96c1fabc05 Add four simple road debug scenes before complex interchange
Replace the all-in-one interchange demo with straight/curve/bridge/cross
scenes, fix junction baking to a degree-gated asphalt disc (no unsorted
fan), and let the example switch scenes with keys 1-4.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00
Cursor Agentand西风逍遥游 c788cf0943 Match procedural road rendering to reference materials
Raise jersey-barrier profile defaults, add yellow center markings and
vertex colors, thicken nav overlays, and render each mesh group with
its own tint plus red ground/water and a high-angle camera.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00
Cursor Agentand西风逍遥游 d1b43e18a0 Harden procedural road navigation bake and example
Clamp nav arrow placement against non-finite/huge frame steps (seed 7 hang),
prefer same-lane turn links, fix the procedural-road example mesh upload path,
and cover seed-7 navigation termination in unit tests.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00
Cursor Agentand西风逍遥游 80ce3bce34 Include ImageData.h in procgen.road texture recipe tests
Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00
Cursor Agentand西风逍遥游 a118a4876a Add procedural road network system under procgen
Introduce math-only road baking (profile loft, piers, markings,
navigation overlays) with mesh.roadNetwork / tex.roadMarkings recipes,
design docs, unit tests, and a procedural-road example.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-09-18 13:50:36 +00:00