1. Who is it for, and why would they use it?

Noctimals is for students, coastal residents, educators, and anyone curious about how everyday outdoor lighting changes the night sky and local wildlife. Most people know light pollution hides the stars, but it is hard to picture how specific fixture choices—color spectrum, full-cutoff shielding, aiming angle, brightness, and beach-facing windows—actually affect a real coastline. Noctimals turns Beach 97th Street in Rockaway Beach, Queens into an interactive 3D sandbox and management game where you can test lighting changes immediately, see modeled wildlife responses and star visibility update in real time, and run a real-world Night Light Report on your own neighborhood.

2. What I built and improved during this event

Noctimals began as an earlier 3D Rockaway Beach lighting sandbox built with NYC building footprints, USGS terrain, NOAA tide/buoy data, Astronomy Engine star catalogs, and Blender coastal models. During the Global AI Builder's Challenge, I transformed that sandbox into a complete, accessible interactive game and AI-assisted neighborhood audit tool:

  • Interactive Night-Shift Gameplay: Built a single header Play/Pause loop where players manage successive nights balancing modeled boardwalk earnings against wildlife disturbance, plus one-click lighting presets (Dark-sky, Shield all, Reset) and group editing scopes (One, Boardwalk, All).
  • Direct 3D Fixture Editing & Game Hotbar: Built a 4-fixture hotbar (Cobrahead, Globe pole, Solar pole, Floodlight) with modeled skyglow shares, direct click-to-move on any 3D lamp pole, rotation controls, and right-click / × / Esc cancel.
  • Wildlife Visibility & Close-Ups: Added Unaffected / total species counters with hover guidance, expanded back-face mesh silhouette outlines (including skinned meshes and strengthened bat silhouettes), building-clearance flight paths, and right-click View close-up inspection with an exit banner.
  • Real-World Night Light Report + Live Gemini Interpretation: Built a serverless /api/night-light pipeline combining December 2025 VIIRS satellite radiance, Open-Meteo elevation/relief, and expanded OpenStreetMap neighborhood feature counts (buildings, shops/commercial, parking areas, parks/beaches, lit roads, and mapped lamps with explanatory hover tooltip) with live Gemini explanation and bounded fallback handling.
  • Rendering & UI Polish: Stabilized aim-change rendering performance, baked outward glass clearance into rockaway-cityscape.glb to eliminate door/window Z-fighting, unified the burgundy-and-parchment interface across Lighting, Settings, and Night Light Report, and defaulted ambient ocean/wildlife sound on (toggleable in Settings).

3. AI in the finished app vs. AI during development

  • In the finished app: In the Night Light Report (crescent moon icon in the header), users can search any location or click Try Rockaway to fetch real VIIRS satellite radiance, terrain elevation/relief, and OpenStreetMap feature counts. Clicking Explain with Gemini sends only those numeric readings—never personal addresses or images—to a Vercel serverless route powered by the Gemini API (gemini-3.6-flash / gemini-3.8-flash / gemini-3.5-flash-lite with bounded fallback), which explains what the numbers mean in plain student-friendly language and suggests a concrete lighting change to test in Noctimals.
  • During development: AI coding assistants helped with Three.js lighting/shader debugging, UI refactoring, serverless API fallback handling, and QA checks. I directed the design, tested the live behavior in the browser, reviewed every visual and scientific claim, and requested corrections whenever a layout, metric, or model behavior was off.

4. How to access, use, and verify the results

  1. Open the live app at https://noctimals.vercel.app/ (no account or install required; WebGL 2 browser).
  2. Explore & Edit Lighting: Open Controls → Lighting to try the Dark-sky preset (switching to shielded 590 nm amber drops modeled uplight from 100% to 0% and increases visible stars from ~344 to ~431), edit a single lamp or the entire boardwalk at once, or click any lamp directly in the 3D scene to move it.
  3. Place Fixtures: Select a fixture from the bottom 1–4 hotbar (such as the unshielded Globe pole), press R to rotate, click dry sand or the boardwalk to place, and watch star visibility and hatchling navigation respond immediately.
  4. Play & Inspect Wildlife: Click ▶ Play in the header to run Day 1 (balancing boardwalk earnings vs. wildlife disturbance), pause anytime with Ⅱ Pause, and right-click any species row (e.g., Bats or Hatchlings) → View close-up.
  5. Run a Real-World Audit: Click the crescent moon icon in the header → Try Rockaway (or search any landmark/city) to view December 2025 VIIRS radiance (79.16 nW/cm²/sr), terrain elevation, and 6 OpenStreetMap feature cards, then click Explain with Gemini for a live explanation.

5. Limitations and failure handling

  • Illustrative ecology & economics: Wildlife routes, disturbance fractions (Unaffected / total), and boardwalk storefront earnings are educational game models—not measured mortality rates or real business sales. Species without a modeled disturbance rule (Plovers, Fireflies, Crabs) explicitly display —/total.
  • Dataset scope & incomplete map tags: Satellite radiance is a December 2025 VIIRS monthly composite (~500 m scale) and cannot measure street-level lux or attribute glow to individual lamps. OpenStreetMap counts cover a ~1.3 km window and depend on volunteer tagging (the UI explains via hover tooltip that 0 mapped lamps reflects untagged streetlights, not zero real lamps). NOAA tide and buoy waves use bundled reference samples rather than live telemetry.
  • AI provider failure handling: /api/night-light enforces a shared 24-second server deadline across primary and fallback Gemini models and excludes raw provider error text or keys from responses. If Gemini is unavailable or times out, the UI displays a clear status message while keeping all raw satellite, terrain, and OpenStreetMap readings fully visible.

Built With

Share this project:

Updates

Submission history