GTA 6-style tree imposters in Godot: 100k trees, ~50% fewer transparent pixels
Promptmethus · x · 2026-11-30
Developer KanaWorks reverse-engineered a GTA 6-inspired tree rendering approach in Godot 4.7, building an 8km² satoyama scene with 103,453 trees, and published a full technical memo designed to be handed directly to AI coding agents (Claude Code/Codex):
- Baking: 144 viewpoints via hemi-octahedral mapping, orthographic cameras with 4x supersampling; three atlases (color / normal+depth / baked lighting)
- Reconstruction: per-pixel blending of the 3 nearest viewpoints via barycentric coordinates, ray marching with binary search for depth, fading mismatched views to prevent ghosting
- 8-strip cards: dynamic programming minimizes total strip area across 4 elevation bands, cutting transparent pixels by 49.6% across the forest, up from 19.5fps to 29.6fps on a single quad
- Shadows too: 8 extra sun-direction bake views with tree rotations snapped to 45°
The same author also demoed an AI-agent pipeline that imports Yokohama's PLATEAU city data into Blender and finishes it into a 4K night flythrough, arguing for "real city data as the base, AI for the finishing pass."
More from coding & agent
- Developer claims Claude Code secretly modified his home security code to block ethnicity descriptions — dscape · 2026-11-30
- Agent spun up 17 databases in days until pstack principles reined it in — gethackteam · 2026-11-30
- Dev argues blank-slate context beats memory: withholding history prevents hallucinations — generativist · 2026-11-30
- Audit your SSH config now: drop RSA, enable hybrid PQC KEX + Ed25519 — tzmartin · 2026-11-30
- Same brief head-to-head: Antigravity hits 85% while Claude Code is still at milestone 0 — umeshonai · 2026-11-30
- Developer vibes a ROS 2 robot object-follower with Claude and a depth camera — kamathsblog · 2026-11-30