hn.today

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

ben3d.ca160 points77 comments
Screenshot of My Quest to push native Three.js quality match AAA Game Engines

The piece lays out a plan to bring Three.js’s WebGPU renderer closer to the lighting quality of AAA game engines. Its central argument is that high-end indoor lighting depends on a coordinated pipeline, not one effect: static lightmaps, a probe grid for moving objects, and room-scale reflection probes are prepared as caches, then combined each frame with a G-buffer, screen-space reflections (SSR), screen-space global illumination (SSGI), occlusion, denoising, and temporal anti-aliasing or upscaling. The proposed design uses a forward beauty pass, so its G-buffer can stay lean and contain only data needed by screen-space effects.

Many pieces already exist in Three.js or are under review, including lightmap tools, probe-grid baking, GTAO, SSR and SSGI nodes, and temporal resolve nodes. The largest gaps are hierarchical depth tracing and coverage data for SSR, coverage for SSGI, and a flexible way to combine indirect diffuse and specular light in the material BRDF. A key technical improvement is octahedral normal encoding: at the same four bytes per pixel, it substantially reduces normal error compared with today’s RGB8 representation, helping prevent visible reflection banding. The proposed full-effects memory budget is about 76 bytes per pixel - roughly 157 MB at 1080p and 626 MB at 4K. The work is presented as a coherent, staged proposal whose individual components can be assessed and integrated into Three.js.

Read on ben3d.ca77 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Solid 2.0

Solid 2.0

Solid 2.0 is now stable, five years after version 1.0, with a smaller API and diagnostics designed for AI agents. Its reactive graph now handles asynchronous computations, while built-in server functions support RPC calls and persistent Server-Sent Events connections. (solidjs.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.