RC RANDOM CHAOS

Three.js Pursues AAA-Quality Rendering

· via Hacker News

Original source

My Quest to push native Three.js quality match AAA Game Engines

Hacker News →

The article describes a rendering pipeline designed to match AAA game engine lighting quality in Three.js. The system uses two stages: an offline phase that pre-computes lightmaps for static geometry, probe grids for moving objects, and reflection captures; a per-frame phase that adds screen-space effects like reflections, global illumination, and occlusion to these baked caches.

Three.js has implemented several key pieces. The WebGPURenderer generates geometry buffers containing depth, normals, and material properties. Light probe grids using spherical harmonics now bake 8x faster through batched rendering. Screen-space ambient occlusion works, as does lightmap baking in the browser.

The remaining work involves precision and advanced techniques. Normal encoding requires switching from RGB8 to octahedral format to eliminate banding artifacts in long-distance reflections. Light probes leak through walls—visible as bright leakage into dark rooms—requiring visibility-aware probe selection. Screen-space reflections need hierarchical depth sampling and coverage computation. Three.js maintainers have actively refined submissions to fit the library’s architecture, though the full pipeline awaits formal integration.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.