Buy New
$43.99$43.99
FREE delivery Monday, May 11
Advertisement
Advertisement
Ships from: Amazon.com Sold by: Amazon.com
Used - Like New
$29.95$29.95
$3.99 delivery Wednesday, May 13
Advertisement
Advertisement
Ships from: Broad-Street-Books Sold by: Broad-Street-Books
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Going the Distance with Babylon.js: Building extensible, maintainable, and attractive browser-based interactive applications using JavaScript
Purchase options and add-ons
Learn to effortlessly leverage the power of the GPU in a 3D game or application using Babylon.js v5.0 from start to finish
Key Features
- Explore browser-based, editable, interactive Playground samples
- Create GPU-based resources using the Node Material Editor – no shader code required
- Extended topics in each chapter as well as a dedicated chapter that helps you explore and contribute back to OSS projects
Book Description
Babylon.js allows anyone to effortlessly create and render 3D content in a web browser using the power of WebGL and JavaScript. 3D games and apps accessible via the web open numerous opportunities for both entertainment and profit. Developers working with Babylon.js will be able to put their knowledge to work with this guide to building a fully featured 3D game.
The book provides a hands-on approach to implementation and associated methodologies that will have you up and running, and productive in no time. Complete with step-by-step explanations of essential concepts, practical examples, and links to fully working self-contained code snippets, you'll start by learning about Babylon.js and the finished Space-Truckers game. You'll also explore the development workflows involved in making the game. Focusing on a wide range of features in Babylon.js, you'll iteratively add pieces of functionality and assets to the application being built. Once you've built out the basic game mechanics, you'll learn how to bring the Space-Truckers environment to life with cut scenes, particle systems, animations, shadows, PBR materials, and more.
By the end of this book, you'll have learned how to structure your code, organize your workflow processes, and continuously deploy to a static website/PWA a game limited only by bandwidth and your imagination.
What you will learn
- Use Babylon.js v5.0 to build an extensible open-source 3D game accessible with a web browser
- Design and integrate compelling and performant 3D interactive scenes with a web-based application
- Write WebGL/WebGPU shader code using the Node Material Editor
- Separate code concerns to make the best use of the available resources
- Use the Babylon.js Playground to tightly iterate application implementation
- Convert a web application into a Progressive Web Application (PWA)
- Create rich, native-ready graphical user interfaces (GUIs) using the GUI Editor
Who this book is for
This book on 3D programming in JavaScript is for those who have some familiarity with JavaScript programming and/or 3D game engine development and are looking to learn how to incorporate beautiful interactive 3D scenes into their work. Developers familiar with Unity, Unreal Engine, or three.js will also find this book to be a key resource for learning the ins and outs of Babylon.js.
Table of Contents
- The Space-Truckers Operation Manual
- Ramping up on Babylon.js
- Establishing the Development Workflow
- Creating the Application
- Adding a Cut Scene and Handling Input
- Implementing the Game Mechanics
- Processing Route Data
- Building the Driving Game
- Calculating and Displaying Scoring Results
- Improving the Environment with Lighting and Materials
- Scratching the Surface of Shaders
- Measuring and Optimizing Performance
- Converting the Application to a PWA
- Extended Topics, Extended
- ISBN-101801076588
- ISBN-13978-1801076586
- PublisherPackt Publishing
- Publication dateSeptember 16, 2022
- LanguageEnglish
- Dimensions7.5 x 0.96 x 9.25 inches
- Print length426 pages
4 stars and above
Editorial Reviews
Review
"The book that you have in your very hands right now is the culmination of a fantastic journey where people from around the globe joined and contributed to a common project without expecting anything more than a thank you. That fantastic community helped create hundreds of great projects and convince big names such as Microsoft and Adobe to bet on and contribute to a GitHub project for their 3D-based projects. I encourage you to use this book as a first step to joining the community and participating in our common effort to build a powerful and easy-to-use 3D engine freely available to all."
--David Catuhe, Creator and leader of the Babylon.js open source project, group engineering manager for the Microsoft Stream web client, technical expert on the WebGL/JavaScript/TypeScript web technologies
About the Author
Josh Elster spends most of his days working as a software engineering lead for a technology startup and his nights patrolling the BabylonJS forums and working on various side-projects. Unlike Bruce Wayne, however, he did not have a traumatic childhood incident involving bats.
From his home in the Windy City of Chicago, Josh likes to spend time outdoors, particularly working with wood in his woodshop when the weather indicates, and gaming or reading when it doesn’t. He has a website named liquidelectron and can also be found on LinkedIn and Twitter
Product details
- Publisher : Packt Publishing
- Publication date : September 16, 2022
- Language : English
- Print length : 426 pages
- ISBN-10 : 1801076588
- ISBN-13 : 978-1801076586
- Item Weight : 1.6 pounds
- Dimensions : 7.5 x 0.96 x 9.25 inches
- Best Sellers Rank: #3,970,473 in Books (See Top 100 in Books)
- #430 in 3D Graphic Design
- #1,164 in Game Programming
- #1,341 in Computer Graphics
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Products related to this item
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonReviews with images
Engaging & Comprehensive Dive into making 3D experiences with Babylon.Js
Top reviews from the United States
- 5 out of 5 stars
A must read
Reviewed in the United States on October 14, 2022Probably the best book around talking about Babylon.js
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Engaging & Comprehensive Dive into making 3D experiences with Babylon.Js
Reviewed in the United States on October 25, 2022Babylon Js has established itself as a premier library for creating 3D experiences, particularly well suited for web and mobile applications. If you are looking for a foundation you can use for augmented or virtual reality, this book will provide it, in entertaining fashion. You'll learn everything in the technical pipeline to create a Space Trucker simulation, from procedural asset generation to 2d UI elements, object interaction, and of course cameras and lighting. Everything a developer or technical artist could want to know is at least discussed, including advanced topics like Ray tracing.
If you are coming from a 3D art background from Blender, Adobe or Adobe Substance, but don't know how to craft a world or choose a game engine, start here. While entertaining and completely hands-on, the first mention of importing assets comes 200 pages in, focusing on the fundamentals you need to navigate the Babylon Js ecosystem and related documentation. By that point you'll have rendered a planetary system so going through the book excersize of creating a game will still deliver visual bang for your buck.
The concepts of Babylon can build to the limits of your imagination, and also give you a foundation to play in worlds like Godot O3DE Unity & Unreal. I'd argue if you want an experience to reach the most people possible, a Babylon Js deployment via web & native mobile is the way to go.

5 out of 5 starsEngaging & Comprehensive Dive into making 3D experiences with Babylon.Js
Reviewed in the United States on October 25, 2022Babylon Js has established itself as a premier library for creating 3D experiences, particularly well suited for web and mobile applications. If you are looking for a foundation you can use for augmented or virtual reality, this book will provide it, in entertaining fashion. You'll learn everything in the technical pipeline to create a Space Trucker simulation, from procedural asset generation to 2d UI elements, object interaction, and of course cameras and lighting. Everything a developer or technical artist could want to know is at least discussed, including advanced topics like Ray tracing.
If you are coming from a 3D art background from Blender, Adobe or Adobe Substance, but don't know how to craft a world or choose a game engine, start here. While entertaining and completely hands-on, the first mention of importing assets comes 200 pages in, focusing on the fundamentals you need to navigate the Babylon Js ecosystem and related documentation. By that point you'll have rendered a planetary system so going through the book excersize of creating a game will still deliver visual bang for your buck.
The concepts of Babylon can build to the limits of your imagination, and also give you a foundation to play in worlds like Godot O3DE Unity & Unreal. I'd argue if you want an experience to reach the most people possible, a Babylon Js deployment via web & native mobile is the way to go.
4 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 2 out of 5 stars
Typos make it hard to use
Reviewed in the United States on January 28, 2023It's a decent book, but there are typos like
entry: «./src/index.js")
in the code on the Kindle edition.
Errors with guillemets instead of straight quotes and missing parentheses make this book hard to use.

It's a decent book, but there are typos like
entry: «./src/index.js")
in the code on the Kindle edition.
Errors with guillemets instead of straight quotes and missing parentheses make this book hard to use.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Excellent book that strives to entertain while educating!
Reviewed in the United States on October 1, 2022When I was brought this book to look at I had no experience with what Babylon.js. As a Software Engineer that has worked with Web and Game Technologies for a significant amount of my career, I was intrigued when I was told it was a framework for 3D games and applications using JavaScript. Having experienced the book now, I found that it does an excellent job of both entertaining the reader and explaining concepts like extending the physics available in the game engine. The book is an easy read, given the subject matter, which is that of building a 3D Game that runs in a WebGL enabled browser window. The book steps you through Design and implementation of the game from the earliest planning documents through to publishing on a major App store and even throws in some best practices on how to structure code to keep it maintainable.
All together, I thoroughly enjoyed this book and I recommend it for anyone that has at least a little JavaScript knowledge, the desire to build games, and the interest to do it using web technologies.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Fantastic game dev resource!
Reviewed in the United States on December 16, 2022As someone who has been interested in building browser-based games for some time, I was excited to dive into this book and see what it had to offer.
From the very first chapter, I was blown away by the level of detail and clarity of the explanations. Josh does an excellent job of breaking down complex concepts and presenting them in an easy-to-understand manner. Whether you are a beginner or an experienced developer, you will find value in this book.
I really appreciate how comprehensive this guide is. Josh covers everything from setting up your development environment to deploying your game to the web. Additionally, the book includes numerous examples and code snippets that help to illustrate the concepts being discussed.
Overall, this book is great for anyone interested in building browser-based games. Whether you are just starting out or looking to take your skills to the next level, this book is an invaluable resource=)
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
The book we all needed to help learn this awesome tech!
Reviewed in the United States on September 22, 2022I am currently reading and writing a review for Going the Distance with Babylon.js: Building extensible, maintainable, and attractive browser-based interactive applications using JavaScript by Josh Elster.
Key Highlights of the book:
- Has fun browser interactive Playground samples!
- Goes over the Node Material Editor – no shader code required
- Super detail oriented and helping me get up and running with Babylon.js!
- Uses modern Javascript practices.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Reading it feels like getting at an internship at a real game studio (with a pretty fun manager)
Reviewed in the United States on November 28, 2022I think beginners (to both game dev & BabylonJS) will get the most out of this book. If you're primarily interested in just learning about BabylonJS as an engine, there's a lot of sections you might want to skip (such as how state machines are used in games, or how to build & maintain your UI etc). But I think the book is still great as a reference if you're familiar with other engines and want a deep, well informed and well written dive into BabylonJS and its tooling & ecosystem. The chapters are all written in a way that makes it easy to jump into one without having done all the previous ones.
What I love most about this book is how complete it tries to be in terms of both (1) teaching you the technical parts you want to know (2) as well as the workflows that professionals rely on to prototype quickly and actually get stuff shipped. I believe both are equally valuable, and that going through this book sets you up surprisingly well to working in a game studio/with other professionals.
The author covers a lot of things that are usually left out in online tutorials, like how to architect your game so that it's easy to change, extend, & fix. Or for example, not just how to get physics working, but how to optimize it for large scenes & manage its lifecycle, and most importantly, when it's worth the time/effort to make these optimizations. These are the kinds of things you usually only learn by working on lots of different game projects, and the author did a great job picking a fully featured game project that he guides you through that covers sufficient complexity that's pretty close to a real game.
I think the book does a great job towing the line between teaching you fundamental theory & practical tips. There's a quote in there that I think sums it up pretty well: "Our objective will be to provide a solid basis of the principles, grounded in a practical usage scenario."
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Fun and Interactive
Reviewed in the United States on October 30, 2022I have been enjoying my time with Going the Distance with Babylon.js: Building extensible, maintainable, and attractive browser-based interactive applications using JavaScript by Josh Elster. Whether you are a new or experienced software engineer this book offers many fun and interactive playground samples. With in-depth explanations throughout the book, I never felt lost or confused. I am excited to continue my journey and complete the rest of the book.
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
RWeb5 out of 5 starsGreat read!
Reviewed in Germany on October 14, 2022A great journey through Babylon.js' ecosystem.
The book is wonderful for people getting started with 3D on the web or people looking to expand their toolset. Highly recommended :-)
Full disclosure - I have reviewed this book before published and am in the book's credits. And I stand behind the 5 stars!
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
wnm1 out of 5 starsquality of print is pathetic
Reviewed in Germany on December 12, 2023No wonder more and more people refuse to buy tech books and try to download them illegally as pdfs.
The print quality of the book is so poor, it would have been better to buy the pdf from the publisher and print it myself in a printshop.
Don't bother buying the printed piece ...
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again






