Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, May 2, 2026. Learn more…

Leanpub Header

Skip to main content

Three.js Book: Building 3D Worlds, From Fundamentals to Interactivity

Learn to create interactive scenes with JavaScript and WebGL step by step

In this book, you won't just learn to display geometric shapes; you will learn to create immersive experiences. We will start with the foundations of WebGL and Three.js, move through the visual construction of scenes with advanced lights and materials, and finish by diving into the world of mathematical animations and interactivity. By the end, you will have built multiple functional 3D projects, you will understand how to control the camera, and you will know how to create dynamic universes in the browser. This is the solid foundation you need to become a 3D web experience developer.

Minimum price

$5.00

$10.00

You pay

$10.00

Author earns

$8.00
$
You can also buy this book with 1 book credit. Get book credits with a Reader Membership or an Organization Membership for your team.
PDF
EPUB
About

About

About the Book

Learning to program 3D graphics for the web is like acquiring a new superpower. 

In this book, you won't just learn to display geometric shapes; you will learn to create immersive experiences. We will start with the foundations of WebGL and Three.js, move through the visual construction of scenes with advanced lights and materials, and finish by diving into the world of mathematical animations and interactivity. By the end, you will have built multiple functional 3D projects, you will understand how to control the camera, and you will know how to create dynamic universes in the browser. This is the solid foundation you need to become a 3D web experience developer.

Three.js Fundamentals: Practical Guide for the 3D Web The practical and updated guide for 2026 covering everything you need to know to create real three-dimensional applications, from absolute basics to lighting, spatial mathematics, and the use of AI for practice.

Why learning Three.js is an indispensable skill today?

The web is no longer flat. 3D development in the browser is revolutionizing e-commerce, education, video games, and interactive portfolios. It doesn't matter if you want to create a product visualizer or an artistic experience: knowing how to create 3D environments sets you apart from other developers.

But starting with WebGL from scratch is extremely difficult. The mathematics are complex and the syntax is very tedious. Outdated tutorials teach you old practices and official documentation can be overwhelming for beginners.

What will you learn in this book?

Chapter 1 - Getting Started with Three.js: Learn the fundamentals of Three.js: set up your environment with Node.js and create your first 3D scene with cameras, geometries, materials, and rendering

Chapter 2 - Garden Project: Build a 3D garden step by step in Three.js. Master object grouping, spatial positioning, and basic shadow projection.

Chapter 3 - General Aspects: Discover how to animate objects in Three.js using requestAnimationFrame and integrate the dat.GUI library to control your scene in real time.

Chapter 4 - Interact with the Scene: Learn how to manipulate the scene graph in Three.js. Create and delete geometries dynamically and use scene.traverse() to apply global logic.

Chapter 5 - Add Geometric Shapes On Demand: Learn how to manipulate the scene graph in Three.js. Create and delete geometries dynamically and use scene.traverse() to apply global logic.

Chapter 6 - Dynamic Scene Variations - Chaotic and Sine/Cosine: Create organic and chaotic animations in Three.js by applying trigonometric functions (sine and cosine) to the animation loop without extra dependencies.

Chapter 7 - Project Lights: Complete guide to lighting in Three.js: differences and practical applications of AmbientLight, SpotLight, DirectionalLight and PointLight.

Chapter 8 - Materials, Chambers and Geometries: Master Perspective and Orthographic cameras in Three.js, blend textures with MeshDepthMaterial, and explore the catalog of predefined 3D geometries.

Author

About the Author

Andrés Cruz Yoris

Andrés Cruz Yoris, Licenciado en Computación, con más de 10 años de experiencia en el desarrollo de aplicaciones web en general; trabajo con PHP, Python y tecnologías del lado del cliente como HTML, JavaScript, CSS, Vue entre otras; y del lado del servidor como Laravel, Flask, Django y Codeigniter. También desarrollo con Android Studio, xCode y Flutter para la creación de aplicaciones nativas para Android e IOS.

Pongo a tú disposición parte de mi aprendizaje, reflejado en cada una de las palabras que componen mis libros sobre el desarrollo de aplicaciones en general.

Translations

Translations

Languages

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub