A personal learning path for building interactive, animation-rich 3D web experiences (the kind of site where paintings float in a ring you can orbit, objects glow, and everything moves smoothly). Built after reverse-engineering samspratt.com, which runs on exactly this stack.
Starting point this path assumes: comfortable with React / JavaScript, near-zero Three.js, animation, or 3D math. Goal is to grab the fundamentals well enough to direct an AI agent competently, not to become a graphics engineer from scratch.
The one mental model to hold
Objects look beautiful because of materials + lighting + shaders, not geometry. A plain sphere with the right shader and light beats a complex model with flat defaults. Spend your learning time there, not on modelling.
The Core Stack
| Layer | Tool | Why |
|---|---|---|
| App shell / routing / UI | React + Vite | Already known; small gap |
| 3D engine | Three.js | The graphics engine; 80% of the learning |
| React binding | React Three Fiber (R3F) | Write 3D scenes as React components instead of raw Three.js |
| Helper library | drei | Ready-made abstractions: camera controls, loaders, effects |
| The “beauty” layer | Shaders (GLSL) | Glow, distortion, painterly motion; the real craft |
| Animation | GSAP or R3F loop | Smooth camera moves and transitions |
| Hosting | Vercel (start) or Firebase | Vercel to deploy fast; Firebase if you also need storage/auth/db |
Don’t write raw Three.js inside React. Use R3F + drei. Sam’s site uses plain Three.js, but for someone starting today R3F is far more productive.
The Path (in order — don’t skip ahead)
- Skim the R3F docs (~1 day). Since React is familiar, see how 3D maps to components first. → r3f.docs.pmnd.rs
- Take Three.js Journey, hands-on. The one course to buy. When it reaches materials and lighting, slow down — that’s the beauty engine. → threejs-journey.com
- Watch 3Blue1Brown in parallel when the course uses vectors/matrices and you feel lost. → Essence of Linear Algebra (link below)
- Build one tiny scene: a lit object you can orbit with the mouse. That’s “hello world.”
- Add one interaction (click an object → it reacts). Now you understand the render/interaction loop.
- Hit The Book of Shaders once the object rotates and is lit. Shaders are where “nice” becomes “stunning.” → thebookofshaders.com
- Only then attempt a gallery-ring experience like Sam’s.
Reality check
A polished piece like samspratt.com is months of work, made by a professional artist likely with a dev collaborator. Your first version should be dramatically smaller: one 3D object, one interaction, deployed. Ship that, then grow it. The mistake is building the finished cathedral on day one.
Resources (verified links)
The one course
- Three.js Journey — Bruno Simon — threejs-journey.com
Zero → Three.js → R3F → custom shaders. ~$95. The standard everyone starts with. Buy this if you buy one thing.
The 3D engine
- Three.js official manual — threejs.org/manual — free reference to keep open.
- React Three Fiber docs — r3f.docs.pmnd.rs — how you’ll actually write scenes.
- drei (R3F helpers) — github.com/pmndrs/drei · docs: drei.docs.pmnd.rs
Shaders (the beauty layer)
- The Book of Shaders — Patricio Gonzalez Vivo — thebookofshaders.com — free classic intro to GLSL/fragment shaders. Slow, visual, start here.
- Maxime Heckel’s blog — blog.maximeheckel.com — the best R3F + shader write-ups anywhere. Read after Book of Shaders clicks.
3D math (only what you need)
- 3Blue1Brown — Essence of Linear Algebra — YouTube playlist — vectors, matrices, transformations, explained visually. The intuition layer.
- Freya Holmér — Math for Game Devs — YouTube — vectors and how they’re used in graphics. Practical, not academic.
Free video supplements
- SimonDev — youtube.com/@simondev758 — Three.js concepts and why things look good (lighting, shading).
- Bruno Simon’s portfolio — bruno-simon.com — see the ceiling of what’s possible.
Working With an AI Agent
The fundamentals above are what let you direct the agent well. Once you know the vocabulary you can say “use a fresnel shader for the rim glow” instead of “make it prettier.” That precision is the whole payoff, and it’s the learn-while-building posture applied to graphics: let the agent write the boilerplate, but own the concepts that decide whether the result looks good.
See Learning With Claude for the tutoring discipline (active recall, Feynman loop) to run on yourself while you go through Three.js Journey, so the concepts actually stick instead of being agent-vended.
Related
- Sam Spratt Story Site Teardown — the reference site this path is modelled on; the exact stack in the wild
- Learning With Claude — how to use an AI tutor to learn this without outsourcing the understanding
- Don’t Outsource Learning — ship vs. learn as two metrics; the posture that keeps the fundamentals sticking
- Learning and Self-Education — the broader learning-method cluster