Web • 3D
Cube
Cube is a block of 216 small cubes that flies apart and comes back together as you scroll. Inside it lives a cloud of smoke that glows through the gaps while the block is whole and spreads out with the pieces once it opens. You can turn the cloud with the mouse, push it with the cursor and pick it up in your hand.
I built it in Three.js. The smoke is up to 147,000 particles moved by the graphics card itself: their positions live in a texture, and every frame a shader carries each one along a field of curling noise. The particles feel the cubes and slide off their flat sides, motion blur is drawn only on the smoke, and every colour is live: the same cloud can be ink and red, coral, sea blue or indigo, on a light ground or a dark one.
Services
- Interactive 3D
- Three.js
- GPU particles
- Shaders
- Blender