AI hand-crafts a 3D world of a few hundred KB—how HTML can become great again
The author broke down a 1.4M pure-HTML 3D game demo circulating in a group chat, finding that about 700KB of it is Three.js packed into the file, while the rest relies on procedural generation, using code rules to render containers, rain, and sound effects on the spot, without containing any image or model files. The article also provides a prompt template for using models such as Claude Fable 5.2 to generate a single-file Three.js 3D scene, as well as a multi-round iteration method in which a sub-Agent looks only at screenshots and picks out flaws from an art director's perspective.
Why read this
AI score 63
The article breaks down why a 1.4M HTML game can contain a complete 3D scene, and provides a directly reusable prompt template and a self-review iteration method.