Courses / Specialisations & media / Interactive 3D with Three.js

₹399Self-paced

Interactive 3D with Three.js

Build an interactive Three.js scene with responsive controls, measured performance, resource cleanup and a fallback.

  • Who it's for. JavaScript developers comfortable with the DOM and basic vectors who want to add 3D scenes to web pages.
  • Before you start. Prerequisite courses: JavaScript DOM & Browser APIs, Mathematics for Programmers: Discrete and Applied Foundations.
  • 30 to 50 hours of study with practice
  • 8 modules, 51 lessons
  • 3 guided projects and a final project

What you'll learn

  • Pin and import three.js reproducibly and choose between WebGLRenderer and WebGPURenderer from documented status.
  • Create and measure geometry, select and configure materials, lights, shadows and textures with correct colour spaces.
  • Implement raycast picking, orbit controls, keyboard operation and plane dragging with tested pure logic.
  • Load glTF models with error handling, framing, progress, decoder planning and embedded animation playback.
  • Ship an accessible, testable, production-built interactive scene with DOM controls, announcements, reduced motion and a fallback.

Skills you'll gain

  • Scene camera
  • renderer
  • Geometry
  • materials
  • Lights
  • textures
  • Transforms
  • animation
  • Interaction
  • picking
  • Asset loading
  • Performance
  • disposal

Tools you'll use

  • three.js
  • WebGL 2
  • Vite
  • Node.js
  • Vitest or equivalent
  • glTF models

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Scene camera and renderer to Geometry and materials

    Assemble the minimum three.js pipeline (pinned install, scene graph, renderer, camera, resize, timed loop) and choose a renderer deliberately.

    You build: Guided project “Measured geometry and materials gallery”: A pinned Vite project that renders a named scene tree on a responsive canvas with a time-based loop and a renderer decision record.

  2. 02

    Modules 3 to 4

    Lights and textures to Transforms and animation

    Light a scene with the right light types and shadows, load colour and data textures with correct colour spaces, and control output colour and tone mapping.

    You build: Guided project “Lit, textured and animated stage”: A lit scene with shadows, correct colour-space textures, tone mapping comparison and asserted colour values.

  3. 03

    Modules 5 to 6

    Interaction and picking to Asset loading

    Turn pointer and keyboard input into scene actions: normalised coordinates, raycasting, selection state, orbit controls and plane dragging, with keyboard parity.

    You build: Guided project “Interactive model viewer with loading states”: Pointer and keyboard selection, orbit controls and plane dragging sharing one state store.

  4. 04

    Modules 7 to 8

    Performance and disposal to Accessible scene integration

    Measure with renderer.info, free GPU resources deliberately, prove teardown leaves no leaks, render on demand, cut draw calls and handle pixel ratio and context loss.

    You build: Final project build and trainer-reviewed demonstration (see project).

Full curriculum

8 modules and 51 lessons, 30 to 50 hours of study

01Scene camera and renderer7 lessons, 3 to 5 hours

Lessons

  • Pinning three.js and importing it in a Vite project
  • Modelling a scene as a tree of Object3D nodes
  • Rendering one frame with WebGLRenderer on a chosen canvas
  • Shaping the view with PerspectiveCamera parameters
  • Keeping the canvas sharp and undistorted on resize
  • Driving frames with setAnimationLoop and elapsed time
  • Choosing between WebGLRenderer and WebGPURenderer and checking support

After this module you can

  • Install `three` at one exact version with npm and Vite, import it as `three` and addons from `three/addons/`, and fail a script when the version is a range.
  • Build a scene graph with `Scene`, `Group` and `Object3D`, then count nodes, find one by name and detach a subtree using only graph operations.
  • Decide between `WebGLRenderer` and `WebGPURenderer` from the manual's stated status, and write a guarded start-up that shows a message when WebGL 2 is unavailable.
02Geometry and materials6 lessons, 3 to 4 hours

Lessons

  • Reading BufferGeometry attributes and counting vertices and triangles
  • Budgeting triangles when choosing primitives and segment counts
  • Pairing a Mesh with geometry and a material that suits the lighting plan
  • Tuning MeshStandardMaterial colour, roughness and metalness
  • Controlling opacity, face sides and depth with transparent materials
  • Building a custom BufferGeometry from typed arrays and normals

After this module you can

  • Read the `position` attribute and index of a built-in geometry and compute its vertex and triangle counts by formula and by reading the buffers.
  • Choose a primitive and segment counts that meet a triangle budget and measure the result from the geometry.
  • Create a `BufferGeometry` from a Float32Array of positions, compute normals and bounds, and assert the results for a triangle and a quad.
03Lights and textures6 lessons, 3 to 4 hours

Lessons

  • Choosing ambient, hemisphere, directional, point and spot lights
  • Casting and receiving shadows with a bounded shadow camera
  • Loading a colour texture with the correct colour space
  • Predicting colour values through the sRGB to linear conversion
  • Repeating textures with UVs, wrap modes and mipmap memory
  • Setting output colour space, tone mapping and exposure on the renderer

After this module you can

  • Pick light types for a stated scene and assert from constructed lights which ones are directional, positional or global.
  • Enable shadows end to end (renderer flag, light, caster, receiver) and size a directional light's shadow camera to cover a stated area.
  • Configure `renderer.outputColorSpace`, `toneMapping` and `toneMappingExposure` and compare the same scene under two settings.
04Transforms and animation6 lessons, 3 to 4 hours

Lessons

  • Setting position, rotation and scale as local transforms
  • Composing parent and child transforms with matrixWorld
  • Rotating smoothly with quaternions instead of Euler angles
  • Orbiting with a pivot group and preserving world pose with attach
  • Easing and damping motion without frame-rate dependence
  • Playing keyframe clips with AnimationMixer

After this module you can

  • Set local `position`, `rotation` (radians) and `scale` on an Object3D and predict the resulting world axes for simple cases.
  • Compute a child's world position from the parent's transform by hand and confirm with `updateMatrixWorld` and `getWorldPosition`.
  • Build an `AnimationClip` from a `VectorKeyframeTrack`, play it through an `AnimationMixer`, and assert the animated position after a known time.
05Interaction and picking6 lessons, 3 to 4 hours

Lessons

  • Converting pointer positions to normalised device coordinates
  • Picking meshes with Raycaster and reading intersection results
  • Mapping hits on nested meshes to selectable entities with recursive picking
  • Adding OrbitControls with damping, change events and cleanup
  • Operating the scene by keyboard with focus and a selection order
  • Dragging an object across a plane with Ray.intersectPlane

After this module you can

  • Write a pure function that maps a pointer event position and the canvas rectangle to NDC in [-1, 1] with y up, and use pointer events so mouse and touch share one path.
  • Cast a ray from the camera through an NDC point with `Raycaster.setFromCamera`, intersect it with objects, and read `distance`, `point` and `object` from the nearest hit.
  • Convert pointer movement into world movement on a plane by intersecting the camera ray with a `Plane` and clamping the result to a boundary.
06Asset loading6 lessons, 3 to 4 hours

Lessons

  • Reading the GLB container header and glTF JSON without a GPU
  • Loading a model with GLTFLoader and handling failure
  • Inspecting a loaded model: bounds, scale and camera framing
  • Reporting load progress and aggregate failures with LoadingManager
  • Planning Draco, KTX2 and Meshopt decoders and an asset budget
  • Playing a model's embedded animation clips with a mixer

After this module you can

  • Parse the 12-byte GLB header and the JSON chunk of a fixture with plain Node and report version, total length, mesh count and animation count.
  • Load a .glb with `GLTFLoader.load` or `loadAsync`, add `gltf.scene` to the scene, and show a visible error state when loading fails.
  • Create an `AnimationMixer` on `gltf.scene`, list `gltf.animations` by name, play one clip and crossfade to another.
07Performance and disposal6 lessons, 3 to 4 hours

Lessons

  • Reading renderer.info and enforcing a frame budget
  • Disposing geometry, material, texture and render targets explicitly
  • Proving a clean teardown with repeated mount and unmount cycles
  • Rendering on demand instead of every frame
  • Reducing draw calls with merged geometry and InstancedMesh
  • Capping pixel ratio, adapting resolution and surviving context loss

After this module you can

  • Read draw calls, triangles, geometries and textures from `renderer.info` and write a pure budget check over a snapshot object.
  • Write a traversal helper that disposes the geometry, materials and textures of a subtree exactly once each and verify with dispose events.
  • Implement a resolution controller that lowers the pixel ratio when frame times exceed a threshold and handle `webglcontextlost` and `webglcontextrestored` on the canvas.
08Accessible scene integration8 lessons, 4 to 6 hours

Lessons

  • Giving the canvas a text alternative and a described purpose
  • Mirroring every pointer action with real DOM controls
  • Announcing meaningful state changes through a live region
  • Honouring reduced-motion preferences and offering a pause control
  • Providing a non-WebGL fallback and a failed-start path
  • Designing responsive controls for touch, pointer and keyboard
  • Structuring code so scenes are testable without a renderer
  • Building for production and running the release checklist

After this module you can

  • Add an accessible name, fallback content and a linked text description to a canvas, and assert them in a DOM test.
  • Create a list of buttons that selects, focuses and activates the same entities as pointer picking, bound to one shared state store.
  • Run a production build, check bundle contents, pinned versions and the accessibility and resource checklists, and record evidence for the capstone.

What you'll build

3 guided projects along the way, then a final project.

  • Measured geometry and materials gallery

    after module 2
  • Lit, textured and animated stage

    after module 4
  • Interactive model viewer with loading states

    after module 6

Final project

Interactive Three.js scene with responsive controls resource cleanup and fallback. Choose one option: Product configurator; Building or gallery explorer; Data visualisation scene.

What you submit

Source submission: repository or archive with package.json pinning one exact three version, lockfile, build script and tests. Artifact submission: built dist output and screenshots or recordings at desktop, tablet and phone widths with alt text.

How it's reviewed

Trainer review against the rubric: Scene correctness and framing; Interaction and keyboard parity; Resource management; Accessibility and fallback; Testing and build.

Where you'll use it

  • Build a product viewer that lets customers rotate a model and pick colours on the web.
  • Profile a 3D page with renderer readouts and free unused resources so it stays responsive.

Roles that use these skills

  • Creative developer
  • Front-end developer
  • WebGL developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before I start?

Prerequisite courses: JavaScript DOM & Browser APIs, Mathematics for Programmers: Discrete and Applied Foundations. Comfortable with HTML, CSS and modern JavaScript modules and the DOM (the earlier course: query and update elements, handle events) and basic vectors, matrices and angles (the earlier course: vector addition, dot product, matrix-times-vector, radians). Diagnostic check before module 1: (1) write a function that returns the sum of two arrays of three numbers; (2) convert 90 degrees to radians; (3) add a click listener that toggles a CSS class; (4) explain what the result of multiplying a 2D point by a 2x2 rotation matrix means. Learners who miss two or more should take the named prerequisite material first. Accepted equivalence: equivalent web and maths experience demonstrated by the diagnostic. A GPU-capable desktop browser is needed for the browser labs.

Do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.

Where do the labs run?

Headless (H): Node.js LTS, pinned `three`, Vitest or equivalent; math, scene-graph, geometry and pure-function assertions only. No GPU, no WebGL context. Whether three's core imports run in Node without a DOM is marked confirm until the first run.

Be first in when Interactive 3D with Three.js opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹399Opens soon
Notify me