The ruined temple at night in the rain, two braziers burning before the colonnade

Temple ofthe Storm

Ancient ruins in a night storm, built in Blender and brought to life in your browser. Boulders tumble from the hill, lightning splits the sky, and the temple takes the blows.

Two tools, one scene

What is slow to compute is prepared in Blender ahead of time. What has to react to you is computed live in the browser. The scene is the meeting point of the two.

Fluted columns of the temple, lit warm by fire, with darker joints between the stacked drums
Baked shadows settle into every joint between the drums.

Prepared in Blender

The valley, the temple and its 190 stones are generated by a script, then Blender bakes how light gets trapped in corners and joints. That work takes seconds there, and would cost far too much to redo sixty times a second in a browser.

A boulder bursting into fragments against a stone terrace wall in a cloud of dust
A boulder shatters on the terrace wall.

Alive in the browser

Every drum, block and beam is a physical object. Boulders roll down the gully, dig craters into the ground, and break apart on impact. Drop your own with a double-click, or call down lightning on the temple.

Embers rising from a brazier in front of the colonnade, rain falling across the scene
Embers drift on the wind as the rain falls.

Shaped by the storm

Rain, wind, mist, fire and thunder are what make the place feel inhabited. They are also where most of the upcoming work goes: real lightning, rain that catches the firelight, and stone that looks wet.

From script to storm

Each version is rebuilt the same way, so any step can be revisited.

  1. Describe

    A Python script lays out the terrain and every stone of the ruins.

  2. Build and bake

    Blender builds the scene and bakes its lighting into it.

  3. Package

    The scene is exported and sealed into a single web page.

  4. Play

    three.js renders it and Rapier runs the physics, live, in your browser.

One improvement at a time

The scene improves in nine steps. Each one is kept as its own version, so you can open any of them and compare it with the one before.

    Inside the scene

    Each version opens with a short flythrough, then hands you the camera. You need a recent desktop browser and an internet connection.

    Drag, scroll
    Orbit around the temple and zoom
    Double-click
    Drop a boulder from the sky
    B
    Release boulders from the hilltop
    L
    Call a lightning strike
    T
    Strike the temple
    R
    Restore the ruins
    Esc
    Skip the flythrough