Urgent.News

What's breaking now, across thousands of outlets.

Tech

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

This progress report evaluates the current state of Three.js in comparison to AAA game engines regarding its quality. The pipeline from Part 2 is analyzed stage by stage, using terminology from Part 1 such as indirect diffuse and specular, source, coverage, SSR and SSGI, among others. The pipeline consists of two main parts: Setup, which initializes three caches - lightmaps for static meshes, a light probe grid for moving objects, and reflection probes for each room; and runtime, which reads these caches and adds screen-space work on top.

The report discusses the gaps in SSR, SSGI, and BRDF, highlighting the need for hi-z tracing and coverage in SSR and SSGI, as well as pluggable indirect lighting tying everything together. The author acknowledges the contributions of Three.js maintainers, such as Michael Herzog and mrdoob, in reviewing and refining the proposed changes.

The report walks through each frame stage, comparing what the games require, what Three.js already has, and what is missing. It covers aspects like SSR, G-buffers, lightmaps, light probes, and the overall memory budget required for the proposed cascade and simple filters. The reporter emphasizes the accuracy of normal encoding for SSR, suggesting the use of octahedral encoding to improve results with half floats.

Lastly, the report acknowledges the light baking pipeline now available in Three.js, which includes lightmaps for static meshes, a light probe grid for moving objects, and reflection probes for each room.

Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at ben3d.ca →

More in Tech

More from Monday 16 November →