Three.js: 3D Graphics for the Web

Shriira Press

Preface

A comprehensive, self-contained guide to Three.js, the library that brings real-time 3D graphics to the browser — the engine behind interactive pro…

Welcome to Three.js: 3D Graphics for the Web.

A comprehensive, self-contained guide to Three.js, the library that brings real-time 3D graphics to the browser — the engine behind interactive product viewers, data visualizations, games, art, and immersive web experiences. Three.js wraps the low-level WebGL API in an approachable scene-graph model, so you build 3D worlds out of meshes, materials, lights, and cameras instead of writing raw GPU code. This book teaches it from first principles: the Scene/Camera/Renderer trio, 3D transformations, geometry and materials, lights and shadows, the animation loop, loading models, interaction, shaders, performance, and shipping. It blends intuition (how 3D rendering works), concepts (the API and the math behind it), and runnable code.

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — What Is Three.js?
  2. Chapter 2 — The Three Pillars: Scene, Camera, Renderer
  3. Chapter 3 — 3D Space: Coordinates, Transforms, and the Scene Graph
  4. Chapter 4 — Geometry: Meshes, Primitives, and Custom Geometry
  5. Chapter 5 — Materials and Textures
  6. Chapter 6 — Lights and Shadows
  7. Chapter 7 — Cameras and Controls
  8. Chapter 8 — The Animation Loop and Motion
  9. Chapter 9 — Loading Models and Assets
  10. Chapter 10 — Interaction: Raycasting and Events
  11. Chapter 11 — Shaders and Custom Materials
  12. Chapter 12 — Post-Processing, Performance, and Optimization
  13. Chapter 13 — The Ecosystem, React Three Fiber, and Shipping
  14. Appendix A — Glossary and API Quick Reference
  15. Appendix B — Further Reading and Resources
0%
1/1