Skip to content

Add realistic landscape textures and richer lake interactions - #55

Merged
loeck merged 5 commits into
mainfrom
t3/terrain-textures-ball-grab-water-reflection
Nov 7, 2026
Merged

loeck merged 5 commits into
mainfrom
t3/terrain-textures-ball-grab-water-reflection

Conversation

@loeck

@loeck loeck commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

The landscape lacked surface detail, visible shoreline foam and responsive reflections. This adds scanned terrain and bark materials, a buoy visitors can pick up and drop, live waterfall reflections and occasional falling leaves. Trees now sit more naturally in the ground, retain rain moisture and shed leaves that can collect along sheltered banks.

Changes

  • Blend local CC0 Poly Haven grass, forest-floor, rock and bark scans into the landscape, with roughness, shallow relief, source credits and independent procedural fallbacks for missing scans. Keep grass green, subdue bright litter and project stone detail across cliffs and boulders without stretching.
  • Unwrap bark continuously along trunks and branches. Combine the scan with seam-periodic plates, longitudinal creases, weathered scars and lichen that remain readable at normal lake distance. Keep deeper oak/conifer furrows, shallower beech relief and horizontal birch patches, plus fine lenticels, a rougher foot and root patina. Make dry bark matte and fade unresolved detail; retain wind anchoring and missing-scan fallback. Vary leaf sheen using atlas relief.
  • Add shallow lobes and swellings to wood, wider trunk feet, rounded branch collars and occasional closed stubs with lighter exposed heartwood. Preserve outward winding and continuous bark coordinates.
  • Add terrain-following roots, small tufts, folded fallen leaves and twigs near trees and stones. Reject water, steep or rocky ground and boulder footprints; limit detail to 30 m on desktop and 18 m on phones. Reuse the existing three merged vegetation meshes.
  • Share retained rain moisture with wood and foliage. Bark darkens and becomes less rough; leaves gain a restrained damp sheen. Soaking takes seconds and drying takes minutes, with patches attached through wind deformation.
  • Add filtered sand relief, folded leaf shading and veins, and separate buoy and leaf roughness. Share surface-gradient code and fade fine detail with distance.
  • Let mouse, touch and pen grab the buoy, lift it and release it with bounded momentum, splashes and waves. Release safely on cancellation, lost capture, blur and disposal.
  • Reflect the waterfall's live particles and deflections without repeating fluid capture passes, and make shoreline foam visible between waves without a uniform white outline.
  • Shed leaves from rendered crowns above water. Nearby sheltered pockets slow their drift along clear water paths; a local current keeps them off solid banks. Keep splash responses and reduced motion. Use four leaves on phones and seven on desktop, within the existing water-contact slots, and recycle shed leaves after 100–130 seconds.

Validation

  • pnpm check: passed strict types, lint, formatting, 524 tests across 71 files, production build and bundle-size budget. Commit hooks also passed.
  • Latest native Chromium suite: 13/13 passed, including desktop/mobile interactions, night and rain, reduced motion, navigation and explicit WebGPU/WebGL scene restoration.
  • Latest bark follow-up: 11 actual-material renders passed without page or console errors. Oak, beech and birch were compared at 22 m and inspected near 4 m; additional cases covered wet mobile beech, missing bark scan, 55 m oak, and dry/wet birch on actual WebGPU. Near, normal-distance and fallback images were inspected. These visual checks do not benchmark GPU cost or certify physical-phone performance.
  • Latest full-scene captures passed for clear noon and rainy mobile night, with all eight texture files returning HTTP 200 and no page or console errors. Native driver performance warnings remain, and hardware timing/backend parity were not benchmarked.
  • New real-Rapier inlet regression verifies that fallen leaves remain afloat in a sheltered pocket, avoid crossing banks and retain a visible water gap. It fails on the former behavior at shoreline clearance and passes with the new current. Existing geometry winding, UV seam, determinism, triangle-budget, rain timing and buoy interaction tests pass.
  • Earlier extended weather/cursor suite: 10/10 passed. Earlier missing-rock visual check retained the other six texture files and rendered successfully. Existing reflection and bark-seam regressions retain their demonstrated negative controls.
  • Bark follow-up review verified tube-seam periodicity, screen-space fading, species attributes, rain composition and scan fallback; no further simplification was warranted. Earlier review checked geometry, shoreline boundaries, asynchronous material attachment, resource cleanup, worker/cache handling and draw budgets. Fixed physical water checks to use the finer shoreline rather than the conservative picking mask, and checked both sides of root paths near obstacles. A separate simplification pass found no further changes warranted. Earlier review also repaired partial-scan fallback handling and removed unused triplanar parameters.

@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dotme Ready Ready Preview Nov 7, 2026 12:22pm UTC

@loeck loeck changed the title Add realistic terrain textures and richer lake interactions Add realistic landscape textures and richer lake interactions Nov 7, 2026
@loeck
loeck merged commit 700cfe5 into main Nov 7, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 98a03730 Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant