日本語
Book examples
This index lists the runnable HTML examples from each chapter of the book, with a short description of what to inspect.
Each page runs one example from the book. Open it alongside the chapter to connect the code with its rendered output and UI.
Choose a starting point for your app
The development guide suggests starting points and a sequence for adding features to a first render, model viewer, SceneYAML scene, game, or editor. Choose an example for your goal before reading every chapter.
- 03_01.html: Try parent-child transforms and local coordinates with a solar system and an articulated arm
- 04_01.html: Minimal rendering with the low-level API
- 04_02.html: A standard minimal app built with
WebgApp
- 05_01.html: Render one cube with the low-level API
- 05_02.html: Try a concise app structure with
WebgApp
- 05_03.html: Try
fixedCanvasSize and layoutMode: "embedded"
- 06_01.html: Try the
EyeRig orbit camera
- 06_02.html: Inspect follow-camera tracking
- 07_01.html: Try material settings and fog
- 07_02.html: Compare four
SmoothShader rendering paths
- 08_01.html: Load a minimal
ModelAsset
- 10_01.html: A minimal example of
Action and AnimationState
- 12_01.html: Compare the roles of a HUD and a DOM overlay
- 12_02.html: Switch themes with
WebgApp.setUiTheme()
- 13_01.html: Choose between
Text and Message
- 14_01.html: Detect gestures with
Touch.attachSurface()
- 15_01.html: A minimal example of ray casting and collision queries
- 16_01.html: Play a single tone with the Web Audio API
- 16_02.html: Play a sound effect with
GameAudioSynth.playSe()
- 16_03.html: Register custom background music with
registerMelody()
- 16_04.html: Layer custom sound effects with
playGameTone()
- 16_05.html: Load and play audio with
AudioSynth.loadAudioBuffer() and playAudioBuffer()
- 17_01.html: A minimal diagnostics setup and the information it can share
- 18_01.html: Compare
flat_shading with SmoothShader
- 19_01.html: Overlay
Wireframe on SmoothShader
- 19_02.html: A textured torus with
Phong.js
- 19_03.html: A torus with a normal map using
NormPhong.js
- 19_04.html: Visualize cylinder weights with
BonePhong.js
- 20_01.html: Image processing with
ComputePass
- 21_01.html: One-dimensional Storage Buffer computation and readback
- 23_01.html: Combine emitted light with
BloomPass
- 26_01.html: A minimal
ParticleEmitter setup
- 27_01.html: A minimal physics-engine setup
- 27_02.html: Copy Compute Physics results to ordinary Nodes for rendering
- 27_03.html: Simulate a floor and boxes on the GPU with Compute Physics
- 29_01.html: Try procedural materials and real-world-scale UV mapping
- 30_01.html: Compare metallic and roughness values
- 30_02.html: Try an HDR environment and IBL
- 31_01.html: Display a reference scene in standard
WebgApp
- 32_01.html: Try a PBR integration pipeline
- 33_01.html: Inspect the PBR rendering pipeline
- 34_01.html: Follow the rendering flow from G-buffer to SSAO
- 37_01.html: Inspect the connections in the low-level API
- 38_01.html: Generate geometry through the high-level
Shape path
- 38_02.html: Build a low-level quad with
addVertexUV() and addTriangle()
- 38_03.html: A minimal example using
addPlane()
- 39_01.html: Generate an icosphere procedurally
- 39_02.html: Generate a Möbius strip and handle its seam
- 39_03.html: Generate a Sierpinski tetrahedron
- 39_04.html: Generate fractal terrain
- 40_01.html: Verify skinning calculations with bones and markers
- 40_02.html: Display a two-bone skinned cylinder mesh