Five wireframe shapes spinning in WebGL: a cube, a sphere, a circle, a cone, and a plane. Pick one from the menu and it spins in 3D. This was my first time using plain Three.js, with no React wrapper, so I could learn the raw pieces a 3D scene is built from before handing any of it off to a library.
requestAnimationFrame. Every shape gets its own speed, because a spinning cube and a spinning sphere don't feel the same at the same rate.Swap the wireframes for real models, and it's a product viewer: spin a sneaker, a chair, or a helmet before you buy it. Swap them for a team's trophy, a stadium, or a mascot, and it's a 3D centerpiece for a feature story. A menu that changes what's in a 3D scene is the core of every configurator and showroom out there. This version has one camera, one shape, and one dropdown, and it's still the same idea.