What you'll get

The free open-source project behind the film: a golden-hour Japanese temple built entirely in code with three.js and rendered into a 70 second 1080p60 film. There are no 3D models, no textures and no image assets in the repository. About 31,000 lines of JavaScript generate everything when the page loads, 24.4 million triangles in total.

The project is free (MIT license): github.com/Leonxlnx/golden-temple

You can watch the finished film first: it is attached to the latest release of the repository.


What you need


Step 1: Get the project and start the preview

git clone https://github.com/Leonxlnx/golden-temple.git
cd golden-temple
npm install
npm run dev

Open http://localhost:5173/. The first load builds the whole world and compiles the shaders, which can take a few minutes on an integrated GPU. The status line in the top-left corner shows progress. Drag to orbit. Keys 1 to 9 and 0 play the 10 shots, space pauses.


Step 2: Render a still frame

Keep npm run dev running and open a second terminal:

node tools/snap.mjs "shot=0&t=5&w=1920&h=1080&spp=8" out/shot1.png

To see all 10 shots at three moments each on one contact sheet:

node tools/sheet.mjs --t 0.5,3.5,6.5 --tag review