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

LayerToolWhy
App shell / routing / UIReact + ViteAlready known; small gap
3D engineThree.jsThe graphics engine; 80% of the learning
React bindingReact Three Fiber (R3F)Write 3D scenes as React components instead of raw Three.js
Helper librarydreiReady-made abstractions: camera controls, loaders, effects
The “beauty” layerShaders (GLSL)Glow, distortion, painterly motion; the real craft
AnimationGSAP or R3F loopSmooth camera moves and transitions
HostingVercel (start) or FirebaseVercel 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)

  1. Skim the R3F docs (~1 day). Since React is familiar, see how 3D maps to components first. → r3f.docs.pmnd.rs
  2. 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
  3. Watch 3Blue1Brown in parallel when the course uses vectors/matrices and you feel lost. → Essence of Linear Algebra (link below)
  4. Build one tiny scene: a lit object you can orbit with the mouse. That’s “hello world.”
  5. Add one interaction (click an object → it reacts). Now you understand the render/interaction loop.
  6. Hit The Book of Shaders once the object rotates and is lit. Shaders are where “nice” becomes “stunning.” → thebookofshaders.com
  7. 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.


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

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.