
Embark on 100 hands-on three.js exercises from fundamentals to advanced techniques, mastering scenes, textures, materials, shaders, physics with CanonJS, and WebXR interactivity in a zero-setup workflow.
Current exercise environment: StackBlitz. If this video shows CodeSandbox, use the following two lectures, "How to use StackBlitz" and "Exercise link (Stackblitz)", for the current setup and course links.
All 100 exercises now include written instructions, requirements, hints, starter code, and model answers. Select an exercise in the StackBlitz preview and read the Instructions panel, then edit its matching src/exNN.js file. You can also read the Markdown lessons in the instructions folder or through the GitHub exercise list linked in the Exercise link lecture.
Master the initial setup of scene, camera, and renderer in three.js to display a completely black 3d space that fills the browser window, the starting point for all 3.js projects.
Master the three.js basics by wiring the scene, camera, and renderer; configure a perspective camera with fov, aspect, near and far planes, position it, and render the first black canvas.
Display a green cube in the 3d scene by combining box geometry with a mesh basic material, then add it to the scene and adjust the camera.
Discover how to display a 3d object in Three.js by creating box geometry, a green mesh basic material, forming a mesh, adding it to the scene, and adjusting the camera.
Create a blue sphere using sphere geometry with radius 1, horizontal 32, vertical 16, and enable wireframe to reveal the sphere's mesh structure, then add the mesh to the scene.
Create a blue wireframe sphere with Three.js SphereGeometry, radius 1, 32 horizontal divisions, and 16 vertical divisions to visualize the polygon mesh.
Change a cube color dynamically in 3.js using the 3.Color class and Color.Set, switching from green to red before Renderer.Render for interactive features.
Ex4 review shows changing a cube’s color in three.js via cube.material.color.set(0xFF0000) before rendering, illustrating that the 3.color object’s set method updates color prior to render.
Move green cube in three.js to the upper right by adjusting its position with Vector3, setting x to 2 and y to 1.5, z at 0 in a right-handed coordinate system.
Learn to manipulate a cube in three.js by adjusting x, y, z coordinates or using cube.position.set within the coordinate system, where x is right, y is up, z toward you.
Tilt a cube in 3.js to reveal its three-dimensional corners by applying rotations in radians using cube.rotation.x and cube.rotation.y, specifically math.pi/4 for each axis.
practice rotates a cube in three.js using radians, applying 45-degree rotations on the x and y axes to reveal top and side faces, with scene, camera, and renderer rendering.
Manipulate the scale property to stretch the cube along the x-axis to two, compress the y-axis to 0.5, and keep z at 1, forming a horizontal board-like shape.
Practice scaling in 3js by widening the cube's x scale to 2 and shrinking its y scale to 0.5, or use the set method to apply all axes, then render.
Master three.js introduces animation loops using requestAnimationFrame to render at about 60 frames per second, placing renderer.render inside an animate loop and starting with a single call.
The lecture demonstrates a recursive animate function using requestAnimationFrame to render the scene and camera, establishing the standard 3.js animation loop.
Learn to update state within the animation loop to rotate a cube automatically by incrementing cube.rotation.x and cube.rotation.y by 0.01 each frame, before rendering.
Review how a simple animation loop updates cube rotation by 0.01 radians on x and y, then renders each frame to create smooth, diagonal movement and depth in Three.js.
Move the camera freely using orbit controls, an add-on imported from 3/.examples/.jsm/.controls/.OrbitControls, enabling mouse rotation, zoom, and panning with damping and updates in the animation loop.
Explore orbit controls add-on for smooth inertial camera movement in a 3D scene. Learn to import, create, and update the controls in the animation loop.
Place two objects side by side in a three.js scene: a green cube and a blue wireframe sphere, position them at -2 and +2, and rotate them.
Place two distinct objects side by side as independent meshes, a green cube on the left and a blue wireframe sphere on the right, and animate them with opposite rotations.
Switch to mesh standard material to enable lighting, add a white directional light at (5,5,5), and attach it to the scene to illuminate the cube.
See how a mesh standard material with directional and ambient lighting brings a green cube to life, creating realistic shading through physically based rendering.
Learn to create a cone-shaped spotlight in three.js, with intensity of 10 or more, angle 30 degrees and penumbra 0.2, using a spotlight helper to visualize light on a floor.
use a spotlight from above to create a dramatic circular floor light, and visualize its range with a spotlight helper. adjust position, angle, penumbra, and intensity, and update the helper.
Enable shadow mapping in the renderer, enable a directional light to cast shadows, and configure the cube to cast while the floor receives shadows to show a realistic shadow.
Enable the renderer's shadow map, cast shadows with a directional light, and configure castShadow and receiveShadow on objects for real-time shadow display.
Learn how to apply textures to 3D objects using texture mapping, load an image with a texture loader, and map it onto plain geometry with a MeshBasicMaterial.
Master three.js texture mapping by loading an image with a texture loader, applying it to a meshBasicMaterial map, and displaying it on a plane geometry with an asynchronous placeholder.
Apply a wood grain texture to a rotating cube using uv mapping and the three.js texture loader, assigning the image to the box geometry so all six faces share texture.
Texture a spinning box geometry in 3.js with a texture map, using TextureLoader and default UV coordinates to verify the image covers all faces.
Learn to display a clean line-drawing cube using wireframe geometry and line segments, extracting edges from the original geometry, with LineBasicMaterial in white or cyan, avoiding diagonal lines.
Display clean line drawings by converting box geometry into wireframe geometry that extracts only contour edges, then render with cyan line basic material and line segments.
Build a torus in three.js by configuring radius, tube, radial segments, and tubular segments, use a wireframe material, and rotate the donut in the animation loop to reveal its hole.
Explore torus geometry by configuring four parameters: radius, tube thickness, radial segments, and tubular segments, using a wireframe mesh to visualize a smooth donut and rotate it.
Create cylinder geometry in three.js by setting top radius, bottom radius, height, and radial segments to form cup-like shapes, then rotate it in animate to reveal 3D form.
Explore cylinder geometry in three.js by setting top and bottom radii to create cylinders, cones, and truncated cones, render a wireframe mesh, and rotate on the x and z axes.
Discover how to group multiple objects in three.js to move them together, enabling sun and earth revolution by rotating the group around the y-axis.
Master three.js grouping to animate celestial motion: place Earth as a child of a central group, rotate the group for revolution, and rotate the Earth for axial rotation.
Click a cube to change its color randomly using a raycaster. Learn how to convert mouse coordinates to normalized coordinates and cast a ray from the camera to intersect objects.
Master three.js click detection by using a raycaster and normalization to convert mouse coordinates, set the ray from the camera, and change the closest object's color on click.
Master Three.js hover interactions by using a raycaster in the animation loop to detect mouse over the cube, turning it red on hover and resetting to green when not hovering.
Implement a hover interaction in three.js by using a raycaster with mousemove to detect intersections. Scale the cube to 1.2 on hover and revert to 1.0 when not intersecting.
Learn to move a 3D cube with keyboard arrows by using a keydown event listener and event.code to update x and y coordinates, with a configurable speed.
Explore how keyboard input controls a Three.js scene by using addEventListener for keydown, updating the cube’s x and y coordinates with speed 0.1, and rendering changes in the animation loop.
Master three.js teaches selecting a single cube with a raycaster among ten randomly placed cubes, using an array to reset all to green, then turning the clicked cube red.
Master the single selection pattern in three.js by using a dedicated cubes array, resetting all to green, then highlighting the clicked one in red with a raycaster.
Master smooth cube movement in three.js by applying linear interpolation (lerp) with a 0.05 factor to ease toward the clicked position, using a raycaster and an invisible floor.
Use an invisible floor with a plane geometry and raycaster to capture clicks, then move the cube with lerp at 0.05 toward targetPosition, producing natural deceleration.
Learn particle system basics in three.js by drawing thousands of points with buffer geometry and float32 arrays, creating fast snow or starlit sky effects.
Expand the camera far clip plane to 2000 and adjust star scattering and material size to keep distant stars visible; rotate the star field slowly to convey immense scale.
Extend the camera's far plane to 2000, generate 5,000+ stars with buffer geometry scattered between -1000 and 1000, enlarge point size to 2–3, rotate the starry sky around the camera.
Create thousands of particles with buffer geometry and typed arrays, generate random coordinates, rotate the point cloud for a cosmic starfield rendered as white points via the points class.
Learn to animate the camera in a three.js scene by orbiting around a central cube using sine and cosine, with a look-at target and a grid helper.
Explore orthographic camera and parallel projection, where left/right/top/bottom with aspect ratio yields a non-perspective isometric view, keeping all objects same size, useful for CAD, stylized games, and UI.
Master orthographic camera and parallel projection to render a no-perspective scene where objects stay the same size, using left, right, top, bottom ranges and a quarter view.
Master camera-only motion in three.js by circling a central green wireframe cube with a radius of 5, driven by angle and sine and cosine, using lookAt for stable framing.
Add fog in a Three.js scene to create atmospheric perspective and hide clipping by matching background color and configuring scene.fog with start and end distances, placing cubes toward the back.
Use fog to create depth by blending objects with the background color through aerial perspective, matching fog color to the background, and animate 30 cubes as the camera advances.
Explore environment mapping with a cubemap loader to create a mirror-like sphere, using images in right, left, top, bottom, front, back order, and meshStandardMaterial with metalness 1.0 and roughness 0.0.
Load six images with the cube texture loader in order, set as scene background, and apply envMap with roughness 0 and metalness 1 on a sphere to create mirror-like reflections.
Load a bump map image and apply it to meshStandardMaterial.bumpMap, adjust bumpScale to control depth, and position directional light to reveal pseudo-unevenness on a flat surface.
Load a brick bump map with a texture loader and apply it to a box geometry with mesh standard material, adjusting bump scale for directional light shading without extra geometry.
Explore applying normal maps in three.js by loading the water surface texture from the official 3.js sample, assigning it to meshStandardMaterial's normalMap, and adjusting normalScale for realistic, detailed lighting.
Load a purple normal map on a 4x4 plane to convert rgb values into per-pixel normals, producing dynamic water-like highlights with a moving light and adjustable normal scale and roughness.
Master three.js by applying a materials array to a box geometry, painting each face with a different color, and animating a dice-like cube to verify six distinct faces.
Create a colored cube by applying six materials to a box geometry and mapping colors to right, left, top, bottom, front, and back; animate rotation to verify all faces.
Learn to load external full-scale GLTF models in Three.js with the GLTFLoader, perform asynchronous loading, add gltf.scene to the scene, and adjust scale, position, and lighting.
Use Three.js GLTFLoader to asynchronously load external models in the background, apply ambient and directional lighting, scale the model, and add it to the scene.
Load a robot model with animation data, create an animation mixer on load, take the first glTF animation, and drive it with clock delta in the animation loop.
Create an animation mixer, generate a ClipAction from the first GLTF clip, and use a clock delta to update the mixer each frame for smooth playback.
Create a vast ground in three.js by tiling grass.jpg on a large 100 by 100 plane, using wrap s and wrap t, repeat.set(10,10), and a -pi/2 rotation of the plane.
Repeat the grass texture across a ground plane using wrap S, wrap T, repeatWrapping, and texture.repeat.set(10,10). Rotate the plane to lay flat and position the camera to view the ground.
Create a 360-degree skybox in 3.js with a 500 by 500 by 500 cube, six textures on the inside walls, and side 3.backside so the camera is inside.
Explore building a skybox inside a large cube by applying six textures to its six faces using backside, with a non-shadowed mesh basic material, and animate the camera.
Create a dynamic texture by drawing on an HTML5 canvas, convert it to a three.js CanvasTexture, and apply it to a 3D cube to render dynamic text.
Create a 512x512 in-memory canvas, draw centered black text on white with a red border, convert to a 3.canvas texture, and apply it to a cube in Three.js.
Learn to animate a dynamic canvas texture in three.js by updating the canvas in real time and setting texture.needsUpdate. Build a cube with a digital clock showing current time.
Update a canvas texture in three.js by clearing and redrawing each frame, drawing time in red, and set needsUpdate to true after drawing to reflect changes on the rotating cube.
Create a custom geometry in three.js by building a red triangle from scratch with BufferGeometry, a float32 vertex array, and a position attribute, then render it with a double-sided material.
Create a triangle from a BufferGeometry and a Float32Array of three vertices (x, y, z), register them with setAttribute, and render a double‑sided mesh in the scene.
Learn to apply per-vertex colors in three.js by assigning a color array to each vertex, registering a color attribute, and enabling vertexColors on the material to produce a smooth gradient.
Learn to draw a gradient triangle by assigning per-vertex rgb colors, registering them as a color attribute, and enabling vertex colors in the material to interpolate colors.
Master drawing thousands of points with buffer geometry in Three.js, creating a single Points object and using a PointsMaterial with random coordinates for a starry sky effect.
Create a starry sky particle system in three.js using buffer geometry to store 1000 points. Render with a points material and rotate the system to reveal size attenuation and perspective.
Master the instancing technique in three.js by using instanced mesh to draw thousands of identical objects with a single draw call, leveraging a dummy object and matrices.
Review shows how to render 1000 cubes efficiently with three.js instancedMesh, using a dummy object to compute per-instance matrices and setMatrixAt for GPU-friendly rendering.
Implement a Three.js level of detail (LOD) system by creating an LOD container, three icosahedron meshes with varying detail, and registering levels at 0, 10, and 20 for automatic switching.
Master Three.js ex45 review demonstrates implementing LOD to switch between high, medium, and low detail models by camera distance, using a wireframe Icosahedron to visualize density and boost performance.
Create a sprite billboard in three.js that always faces the camera, using a sprite material with a texture, then scale and add it to the scene.
Load a sprite texture with a texture loader and create a sprite material to display the image, preserving its original color, while the sprite remains a billboard facing the camera.
Implement a billboard effect in three.js by using a plane mesh, making it double-sided, and updating its orientation each frame with lookAt(camera.position) so it always faces the camera.
Demonstrate making a plane billboard face the camera with one line of code: plane.lookAt(camera.position), using a texture on a double-sided plane in an animated scene.
Explore moving along a 3D path with CatMoleRoamCurve3, display the curve via GetPoints, and animate a sphere using Curve.GetPoint in a looping 0–1 progression.
Create and visualize a smooth Catmull-Rom curve as a looping course, then animate a red sphere along it using curve.getPoint with a progress parameter, including optional lookAt direction.
Master camera path animation by moving the camera along a Catmull-Rom curve, looking at a point slightly ahead to maintain a jet coaster viewpoint.
Master camera control in Three.js by following a closed Catmull-Rom curve. Position the camera on the path and look slightly ahead to create a roller-coaster feel.
Learn to apply post-processing in three.js using the EffectComposer, render passes, and shader passes to output screen-wide effects like a dot-screen style.
Master post-processing in three.js using an effect composer with render pass and shader pass, applying the dot screen shader to create a dot-based image, finishing the 50th exercise.
Explore shader programming in three.js by writing a simple GLSL vertex and fragment shader as JavaScript strings, then create a ShaderMaterial and render a red box on screen.
Learn to write GLSL vertex and fragment shaders, integrate them with three.js shader material, and render a rotating red cube while mastering projection, model-view matrices, and color declarations.
Master Three.js demonstrates animating a wavy plane with a vertex shader and a uniform time variable, passing time from JavaScript to the shader to create a sine-wave undulation.
Pass time data from JavaScript to the vertex shader with uniform variables to animate a waving plane, using sine-based vertex movement on a finely subdivided geometry.
Create smooth color gradients in Three.js by mastering fragment shader concepts with varying variables, uv coordinates, and the mix function, blending two colors to produce vertical or horizontal gradients.
Explore shader gradients by using varying variables to pass UV from the vertex shader to the fragment shader, then blend colors with mix for a red-to-blue gradient on a plane.
Define a function named random inside the fragment shader to generate 0–1 noise using fract and sine of a dot product, display a sandstorm texture, and animate it with UTime.
Explore how to create a moving sandstorm by generating pseudo random noise with a GLSL function tied to time. Learn how uniforms, vertex and fragment shaders drive the animation.
Learn to build a time-varying shader that makes a cube's color cycle through red, green, and blue using sine waves with phase shifts, via a time uniform.
Master three.js teaches sending uTime from JavaScript to the shader, using a sine wave to create smooth color changes and phase-shifted red, green, and blue components.
Learn to implement the Fresnel effect to create a sci-fi glowing contour that brightens from center to edge using view and normal vectors, dot product, and GLSL in three.js.
Explore how to create a glowing edge sphere in three.js using shader material with additive blending, fresnel-based edge glow, and vertex/fragment shader techniques.
Apply rim lighting with a backlight shader, combining a dark base color with a bright rim color using a Fresnel-inspired strength and clamp to highlight a torus knot silhouette.
Apply a rim lighting effect in the fragment shader by computing the view-normal dot product with a fourth-power ramp, and blend a dark base color with a gold rim color.
Master the hologram effect in Three.js by building an animated, semi-transparent pale blue glow with scrolling horizontal scanlines, additive blending, and noise to mimic a sci-fi projection.
Explore a hologram-like shader in Three.js by combining Fresnel lighting, additive blending, and a time-animated scan line, controlled via vertex and fragment shaders.
Apply a dissolve shader to extinction effects using a noise texture and brightness as hit points, with a progress value erasing pixels via discard and revealing a burning edge glow.
Review a three.js fragment shader that uses a black-and-white noise map to drive pixel disappearance, with orange edge glow and a blue base, animated by a sine-based progress loop.
Learn a simplified water shader that uses vertex wave height (v elevation) and fragment color blending with mix to render dark blue deep areas, bright surface areas, and semi-transparent water.
Learn to create a realistic water surface in three.js by using two sine waves to sculpt the mesh and pass elevation to the fragment shader for deep blue color variation.
Explore implementing a fire effect with a 3JS sprite-based particle system, creating 100 sprites with additive blending, velocity and life data, updating each frame, and recycling particles for continuous flames.
Master a fire-like effect with 100 particles in three.js, using additive blending, texture loading, and particle pooling to recycle lifespan, velocity, and opacity.
Create a spherical explosion effect in Three.js by scattering 200 pooled particles from the center in all directions, using vector normalization, friction, and a click-triggered one-shot.
Explore implementing a reusable particle explosion with an object pool, spherical arrangement by vector, and deceleration by friction to create natural, scalable effects.
Learn to create a glowing bloom in Three.js with the Unreal Bloom Pass, adjusting threshold, intensity, and radius within a post-processing effects composer to simulate neon-like light bleed.
Review the bloom post-processing pipeline in three.js, using effect composer, render pass, and unreal bloom pass to produce glow. Explore strength, radius, and threshold to control light bleed.
Master Three.js glitch effects by implementing the glitch pass to generate digital noise, color inversion, and block noise, with an optional go wild setting for violent, perpetual disorder.
Master Three.js with a hands-on glitch post-processing tutorial that uses EffectComposer, RenderPass, and GlitchPass to create digital signal errors, block noise, screen shifts, and a cyberpunk mood.
Learn how to implement rgb shift chromatic aberration in three.js using a shader pass and rgb shift shader, control the intensity via uniforms, and animate for retro VHS screen shake.
Explore a chromatic aberration rgb shift post-processing effect in three.js using effect composer, shader pass, and rgb shift shader to create a retro, psychedelic look.
Apply the Bokeh Pass for post-processing depth of field, tune focus, aperture, and max blur to separate a scene of cubes from z 20 to -50.
Build a scene with 100 cubes to test depth of field. Use an effect composer and the bokeh pass to create focus-based blur by tuning focus, aperture, and max blur.
Master motion blur with the afterimage pass in three.js by setting damp to 0.96, adding the pass to the effect composer after render, and applying it to fast-moving objects.
Explore the After Image post-processing technique in Three.js by using After Image Pass, adjusting damp to control the decay of previous frames, and rendering via an Effect Composer.
Learn to implement the outline pass in three.js to highlight a selected object with a contour. Set screen resolution, pass the selected objects array, and adjust edge strength and color.
Highlight a targeted cube using the outline pass with an effect composer, render pass, and selected objects array. Tune edge strength, edge glow, and colors for a real-time outline.
Learn toon shading with a mesh tune material by creating a gradient map texture, applying nearest filters, and lighting a torus knot to achieve anime-style cell shading.
Apply toon shading with a gradient map on a MeshToon material, using directional light, a 4-pixel canvas gradation, and nearest filtering to produce crisp, discrete color steps.
Master flat shading to achieve a bold low-poly look using icosahedron geometry and a mesh standard material set to flat shading, with directional lighting to reveal crisp faces.
Apply flat shading to a low-polygon icosahedron, illuminated by directional and ambient light, to emphasize hard edges, creating rugged low-polygon art suitable for mobile scenes.
Explore physically based rendering in three.js by adjusting metalness and roughness on mesh standard materials, using an environment map for realistic reflections, and visualizing results with a grid of spheres.
Explore physically based rendering to express realistic textures by tuning metalness and roughness, applying ACESFilmicToneMapping, and using an environment map with EqualRectangularReflectionMapping on 36 spheres.
Use a cube camera to generate a dynamic environment map and render target for a real-time mirror sphere, updated in the update loop.
Create a dynamic sphere reflection by using a WebGL cube camera and WebGLCubeRenderTarget as an env map for a rotating box, capturing six directions.
Learn planar reflections in three.js by using the Reflector class to render real-time mirror-like surfaces, with guidance on clip bias, texture resolution, and setting a gray tone.
Create a flat mirror in three.js using the Reflector class, configure a floor with plane geometry, tweak clip bias and texture resolution, and animate a cube to show reflections.
Explore equirectangular refraction mapping with an environment map to distort the background through a glass sphere, and adjust the refraction ratio to simulate transparent glass.
Explore rendering a glass ball with refraction in three.js by loading an environment map, using equal rectangular refraction mapping, and tuning the refraction ratio for natural distortion.
Learn to create glass with Three.js mesh physical material, enabling transmission and refraction through thickness. Build a glass sphere that uses an environment map and an IOR setting.
Master Three.js by reviewing a realistic glass scene: use mesh physical material with transmission, thickness, and IOR, plus environment maps and aces filmic tone mapping for photorealistic refraction and reflection.
Master three.js demonstrates glass-like effects by applying equirectangular refraction mapping to an environment map, distorting the background through a sphere with a refraction ratio around 0.98 for lightweight visuals.
Explore Three.js by demonstrating car paint look using a mesh physical material with clear coat, environment mapping, and ACES filmic tone mapping, plus equirectangular reflection mapping for reflections and background.
Explore subsurface scattering (SSS) in Three.js using Mesh Physical Material to craft glowing textures via transmission, thickness, attenuation color, and attenuation distance, achieving jelly or jade-like translucency with backlit lighting.
Apply subsurface scattering with a physically based rendering workflow, featuring ACES filmic tone mapping, environment maps, and transmission with attenuation in a backlit mesh material.
Learn to create pseudo-volumetric light (god rays) in three.js by rendering a translucent cone from a spotlight, driven by a shader material with additive blending and proper depth settings.
Create a lightweight volumetric light effect using a semi-transparent cone and shader to produce god rays, aligned to a spotlight and animated to sway with a sine wave.
Explore lens flare in three.js with the LensFlare class, building a sun-like point light, adding main and ghost elements, and testing depth occlusion against a dark background.
Implement a realistic lens flare in three.js using LensFlare and LensFlareElement, load textures with TextureLoader, and understand additive synthesis with a black background and automatic occlusion testing.
Learn particle morphing with three.js by animating about 3000 particles from a box shape to a sphere on click, using lerp with current and target coordinates and two precomputed shapes.
Explore morphing techniques by animating 2000 particles between a box and a sphere using buffer geometry, a Fibonacci sphere arrangement, and linear interpolation in the animation loop.
Learn to implement drag controls in three.js for mouse and touch drag-and-drop, including dragStart and dragEnd handlers to toggle orbit controls and highlight grabbed objects.
Learn to drag five 3D boxes with drag controls in three.js, coordinating orbit controls, raycasting, and lighting to enable intuitive, shadowed interactivity in room layouts or board games.
Develop a 3d product viewer configurator where HTML buttons change colors and smoothly move the camera toward a target via lerp inside the animation loop, using a grouped chair model.
Develop a product configurator that changes chair colors with buttons, using anti-alias rendering, bright background, directional and ambient lighting, and smooth camera movement via lerp and a color array.
Master three.js by building a solar system with hierarchical structure, using parent-child relationships to establish Sun, EarthOrbit, Earth, MoonOrbit, and Moon, enabling automatic revolutions and rotations.
Explore a solar system simulation in three.js by using a hierarchy of parent-child objects, Sun, Earth, and Moon, with EarthOrbit and MoonOrbit to drive revolution and rotation via local coordinates.
Build a mini racing game foundation in three.js by making a car that accelerates with keyboard input, then slows gradually via inertia and friction, updating position with velocity and direction.
Learn to implement smooth car movement with velocity and inertia in a Three.js scene, using keyboard input, acceleration, friction, steering, and a third-person camera.
Master gravity-driven jump mechanics in three.js by using vertical velocity, gravity, and ground collision to create a natural parabolic jump triggered by the space key.
Implement a simple Three.js jump by applying gravity and vertical velocity to a player box on a ground plane, triggered by the space key when on the ground.
Master a 3x3 lights-out puzzle in Three.js by using Raycaster to click tiles, toggle clicked tile and its top, bottom, left, and right neighbors, and verify all tiles turn blue.
Explore a 3x3 color-toggling puzzle built with Three.js. Clicks flip a tile and its neighbors, using raycasting and stored tile indices to manage state.
Learn object management and collision detection in a shooting game with 3JS, manage bullets and enemies in arrays, spawn enemies every second, and remove objects and dispose geometry and materials.
Manage bullets and enemies with separate arrays, spawn enemies every second at random x with z -20, and use key-state tracking and reverse loops for safe collision detection and deletion.
Learn to implement a smooth rotation system that makes a character turn toward the movement direction with WASD controls using math.atan2 and quaternion SLURP, stopping when idle.
Master three.js by building a group-based player with a grid floor, and control movement with arrow keys or WASD, using quaternion SLERP for smooth rotation toward the direction.
Implement a third-person camera that chases a character from behind using a spherical coordinate system with radius, theta, and phi. Rotate via mouse and keep the player centered.
Implement a free-rotating third-person camera in Three.js using spherical coordinates (theta, phi, radius), controlled by mouse drag, with constrained vertical angle and a look-at target on the player.
Link 3D space and HTML UI to create an inventory and hud; use raycaster to pick items, hide them, and add bottom icons to return items to the scene.
Link 3D item pickups to a web inventory by overlaying an HTML UI on the page, using raycasting, item.userData, and an items array to manage visible and stored items.
This course contains the use of artificial intelligence.
Course Overview
"I want to learn Three.js, but I can't figure out how to build things just by reading the documentation..."
"I want to implement the kind of stunning 3D visuals I see on award-winning websites!"
This Hands-On Three.js Master Course is designed exactly for you.
Through a total of 100 practical exercises, you will thoroughly learn Three.js from the fundamentals to advanced applications by getting your hands dirty.
We aim to develop the "intuition for graphics programming" and "implementation skills" that cannot be acquired simply by reading textbooks, achieving this through an overwhelming amount of practice.
What You Will Learn
By completing this course, you will be able to perform the following:
Three.js Fundamentals: Complete understanding of the Scene, Camera, and Renderer mechanics.
Materials & Lights: Realistic textures (PBR), shadow control, and lighting techniques.
Geometry Manipulation: From basic shapes to custom meshes and waving animations via vertex manipulation.
Texture Techniques: Image mapping, environment maps, video textures, and skybox creation.
Particle Systems: Creating rain, snow, starry skies, explosion effects, and magic circles.
Shaders (GLSL): Original visual effects (glow, noise, distortion) using shader language.
Physics: Collision detection, gravity, domino effects, and driving games using Cannon.js.
Performance Optimization: Reducing draw calls, memory management, and instancing.
Modern Integration: Integration with HTML/CSS and Augmented Reality (AR) experiences via WebXR.
Creative Expression: Generative art and galaxy simulations.
Curriculum Structure (10 Progressive Sections)
The course proceeds in 10 steps (10 exercises each), organized by order of difficulty.
Step 1: Welcome to the 3D World (01-10)
Start by rendering a simple box. Solidify the basics of rotation, movement, scaling, and the animation loop.
Step 2: Lighting and Shadow Play (11-20)
Master various light sources like PointLights and SpotLights. Learn how to cast shadows (Shadow Maps) to add depth to your scenes.
Step 3: Geometry and the Shape of Thought (21-30)
Explore the creation of complex 3D models—polyhedrons, torus knots, and extruded shapes—while exploring their mathematical beauty.
Step 4: Texture and Realism (31-40)
Metal, glass, plastic. Master PBR (Physically Based Rendering) materials to express photorealistic textures.
Step 5: Vertices and Polygons (41-50)
Manipulate the "vertices" that act as the DNA of 3D models. Challenge yourself with Instancing (drawing tens of thousands of objects at once) and custom geometry.
Step 6: Introduction to Shader Programming (51-60)
Unlock the power of the GPU using GLSL. Create waving water surfaces, holograms, and dissolve (disintegration) effects from scratch.
Step 7: Post-Production (61-70)
Learn screen-wide effects—Bloom, Glitch, Depth of Field, and RGB Shift—to create cinematic visual beauty.
Step 8: Environmental Expressions & Special Effects (71-80)
Reflections, refractions, and mirror worlds. Polish pro-level techniques like realistic car paint and divine "God Rays."
Step 9: Interaction and Game Logic (81-90)
Implement essential game development features such as mouse dragging, click detection (Raycaster), TPS cameras, and character control.
Step 10: Integrated Projects (91-100)
Bring it all together with Physics engines (Cannon.js), HTML label integration, and WebXR (AR) app development. Finally, build a massive "Galaxy Simulation" featuring tens of thousands of shining stars.
Target Audience
Those with basic knowledge of HTML/CSS/JavaScript.
Front-end engineers who want to incorporate rich 3D expressions into websites.
Those interested in Creative Coding or Generative Art.
Those wanting to learn the basics of game development using web technologies.
Practical learners who prefer to learn by doing rather than reading.
Would you like me to create a catchy "Short Summary" or a "Prerequisites" section to go along with this translation?