Product configurators, interactive hero sections, data visualisations and small games all run in the browser today, and most of them are built on Three.js. It wraps the low-level graphics APIs, WebGL and now WebGPU, in a scene graph you can reason about. This course takes you from your first rotating cube to polished, interactive 3D scenes that load quickly and run smoothly on phones as well as desktops.

What you'll learn

  • Core concepts: scene, camera, renderer, meshes, geometry and materials
  • Coordinates, transforms and the animation loop
  • Lighting, shadows and physically based materials
  • Textures, environment maps and colour management
  • Loading and optimising GLTF models made in Blender or other tools
  • Interaction: orbit controls, raycasting, pointer events and scroll-linked scenes
  • Custom shaders with GLSL, and an introduction to the WebGPU renderer and the Three.js Shading Language (TSL)
  • Post-processing effects such as bloom and depth of field
  • React Three Fiber and Drei for building 3D scenes as React components
  • Performance: draw calls, instancing, texture compression, level of detail and profiling

Who it's for

  • Frontend developers who want to add 3D to websites and products
  • Creative developers and agency teams building immersive campaign sites
  • 3D artists who want to bring their models to the web

Prerequisites

  • Comfortable with modern JavaScript (see Modern JavaScript Essentials)
  • Basic high-school maths: coordinates, angles and simple vectors; we explain the rest
  • React is needed only for the React Three Fiber modules

Outcomes

By the end of this course you will be able to:

  1. Build and light a 3D scene with models, materials and camera controls.
  2. Make scenes interactive with raycasting, animation and scroll.
  3. Write simple custom shaders and apply post-processing.
  4. Profile and optimise a scene so it runs well on mid-range mobile devices.

Projects you'll build

  • Interactive product viewer: Load a compressed GLTF model, light it with an environment map and let users rotate it and switch colours or materials. Practises loading, physically based materials and controls.
  • Scroll-driven 3D hero: A landing section where the camera and objects move as the user scrolls, with a lighter fallback for low-powered devices. Practises the animation loop, scroll linking and performance budgets.
  • Shader background: An animated gradient or noise effect written in GLSL and then rebuilt in TSL. Practises shaders, uniforms and the differences between the two renderers.

Tools you'll use

  • Three.js with WebGLRenderer and WebGPURenderer
  • Vite
  • Blender for exporting GLTF
  • glTF Transform with Draco or Meshopt compression and KTX2 textures
  • React Three Fiber and Drei
  • lil-gui for tweaking values
  • Spector.js and browser performance tools
  • GSAP for scroll-linked motion

Course outline

ModuleTopic
1How 3D graphics work in the browser
2Scene, camera, renderer and the animation loop
3Geometry, materials and transforms
4Lights, shadows and physically based rendering
5Textures, environment maps and colour
6Importing and optimising GLTF models
7Controls, raycasting and interaction
8Shaders with GLSL and TSL
9Post-processing and visual effects
10React Three Fiber and Drei
11Performance, loading and mobile devices
12Project: an interactive 3D product viewer

FAQ

Do I need to know 3D modelling?

No. We use free models and simple built-in shapes. If you do model in Blender, we show how to export assets that work well on the web.

Should I learn WebGL or WebGPU?

Learn Three.js first. Its WebGPU renderer can fall back to WebGL, so most of what you build carries across. We explain where the newer renderer helps and where WebGL is still the safer default.

Is 3D bad for SEO and page speed?

It can be heavy if added carelessly. We cover lazy loading, compressed assets and fallbacks so the rest of the page stays fast and indexable.

What slows down most beginner scenes?

Too many separate meshes and draw calls, uncompressed 4K textures, real-time shadows on everything and rendering at the full device pixel ratio on phones. The performance module measures each one and shows the fix.

How does this relate to the animation course?

Web Animation with GSAP and Motion covers interface motion in 2D; this course is about real 3D scenes. The two combine well on scroll-driven sites.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.