Blog

How I built Monet 100: walking on water through Monet's paintings with Blender and Three.js

Claude Monet died at Giverny on 5 December 1926. For the centenary I made Monet 100: a 3D gallery where you step through the door of the house at Giverny, walk on the water through seven of his paintings and end up in the room of Water Lilies. It got an Awwwards Site of the Day.

I did the concept, 3D, design and front-end myself. Here's how it's built, and the decisions that mattered most.

Two halves: a Blender pipeline and a Three.js app

The project is two separate parts:

  1. A Python pipeline that drives Blender. It builds the gallery, bakes the lighting and exports one compressed glTF file.
  2. A Three.js app that loads that file and turns page scroll into a walk.

Keeping them apart meant I could change the space without touching the web code, and change the web code without reopening Blender.

The scene is generated, not modelled

I never modelled the gallery by hand. A chain of scripts does it:

This paid off every time the plans changed. Instead of remodelling, I edited the plan and rebuilt the whole scene in one run. The validator step caught broken exports before they reached the site.

Baked light is what makes it run on a phone

Real-time global illumination in a browser is too expensive for most phones. So the walls carry lightmaps: the lighting is computed once, offline, and the browser only displays it. That's how the space looks photoreal and still runs on a phone.

Loading is plain Three.js with the Meshopt decoder:

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';

const loader = new GLTFLoader(manager); // a LoadingManager drives the "n / total" preloader
loader.setMeshoptDecoder(MeshoptDecoder);

Two renderer settings matter more than they look:

renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));

Capping the pixel ratio at 2 is the cheapest performance win in the project. Above that you pay a lot of GPU for no visible difference.

Scroll is the walk

The page has a very tall scroll container. GSAP ScrollTrigger turns scroll progress into a number from 0 to 1, and that number picks a point on a CatmullRomCurve3 that passes by every painting:

const path = new THREE.CatmullRomCurve3(points); // one point near each painting
let target = 0, current = 0;

ScrollTrigger.create({
  trigger: '#journey',
  start: 'top top',
  end: 'bottom bottom',
  onUpdate: (self) => { target = self.progress; },
});

function tick() {
  current += (target - current) * 0.08; // ease towards the goal instead of jumping
  camera.position.copy(path.getPointAt(current));
  // ...look-at logic, render
}

The easing line is small but important. Without it, trackpad scroll makes the camera stutter. With it, the walk feels like a walk.

Clicking a painting

A Raycaster finds the painting under the cursor, highlights it and shows a caption. A click flies the camera up to it with a blurred background, and Escape goes back.

One detail that saved a lot of frustration: a click only counts if the pointer moved less than 6 px between down and up. Otherwise every drag to look around would open a painting.

Water you can touch

You walk on water, so the water had to be good. It's a Reflector (a real reflection of the scene) with a custom shader on top:

Post-processing and sound

EffectComposer adds ambient occlusion (N8AO) for soft contact shadows, bloom, a bokeh depth of field on close-ups, and a bit of grain and vignette.

Sound uses the Web Audio API with HRTF panning, so each painting gets louder as you walk up to it. It starts on the first interaction, since browsers block autoplay with sound.

A lighter path for phones

Phones get a separate render path: no AO, no depth of field, no bloom, and the reflection renders once instead of every frame. prefers-reduced-motion is respected.

The UI (preloader, captions, controls) is a separate layer that only reads the scene's state and never reaches into it. That let me change the interface late in the project without breaking the 3D.

What I'd do next

KTX2 textures. They're compressed for the GPU, so they'd cut memory use and load time, especially on phones.


Open it with sound on: 100yearsmonet.com

I'm Egor Galiy, a design engineer working with WebGL, Three.js and Next.js. More work at egor.digital.

Case study: Monet 100 →WebGL 3D gallery: role, stack and how it was built
Three.jsWebGLBlenderglTF