Ventura Bus 3d
repo: ~/Projects/ventura-bus-3d · 12 commits · 0 in last 24h, 0 in last 7d ·
Skills used
- /route2
- /night2
- /streetview1
- /models-preview1
- /brand1
- /theme1
- /off1
- /tile1
- /highlight1
- /colour1
- /rayleigh1
- /ventura-bus-routes1
- /noon1
- /dusk1
- /light1
- /moon1
Creative ideas + design notes
Commits with substantial prose (≥120 chars) — the rationale behind each move.
8f3bd9e · 2026-05-10 · fix(streetview): PlacesService got StreetViewPanorama (must be HTMLDivElement|Map)
The PlacesService constructor threw InvalidValueError on init, killing the
rest of the async IIFE — toolbar buttons, route chips, position_changed
listener, and auto-drive timer never wired up. Page rendered the panorama
but nothing else worked.
Fix: add hidden #places-attr div, pass that to PlacesService.
Also: surface init errors into the overlay so future failures are visible
instead of silently disappearing.
b2ea9d2 · 2026-05-10 · integrate multi-route data + new top header (search/brand/theme) + per-route toggle legend
- /api/route returns ROUTES array (metro-150, metro-750) with stops + lane offsets
- index.html: fixed top header with search input, brand, theme button; route legend now per-route with swatches and on/off toggles; added muted/tile/highlight CSS vars; page padding offset to --header-h
Captured by yolo-loop tick 5 — files were idle 3h22m with server serving 200, work was complete but uncommitted.
b343de6 · 2026-05-10 · task #3: base Three.js scene — curved corridor, mountains, day/night
scene.js now builds a CatmullRomCurve3-driven road ribbon (~12 mi stub bezier
through Woodland Hills → Tarzana → Encino → Sherman Oaks → Studio City) with
canvas asphalt + dashed lane stripes; flanking concrete sidewalks share the
same curve. Adds three layered low-poly Hollywood Hills ridges on the north
side, a textured ground plane, atmospheric Sky dome, hemisphere + ambient +
shadow-casting directional lights, and OrbitControls defaulted to (0, 100,
173) — exactly 100 m up at 30° pitch — looking at the road centreline.
setTimeOfDay(minutes) lerps between 10 anchors (deep-night → dawn → midday →
golden hour → dusk) and drives sun position, dirLight intensity/colour,
hemisphere tint, ambient, sky turbidity/rayleigh, and tone-mapping exposure.
setRouteWaypoints(points) swaps the stub bezier for the real corridor when
/tmp/ventura-bus-routes.json lands.
scene-demo.html upgraded with TOD slider + dawn/noon/dusk/night presets,
auto-cycle toggle, /api/route loader, and live FPS readout. Headless smoke
test confirms 8 draw calls, ~5k triangles, OrbitControls attached at the
spec'd camera pose, and TOD anchor interpolation (night 0.08 → noon 1.65 →
dusk 0.95 dirLight intensity).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
File tree
22 files tracked. Click any to browse the source at HEAD.
rendered in 0ms