Book Image

Babylon.js Essentials

By : Julien Moreau-Mathis
Book Image

Babylon.js Essentials

By: Julien Moreau-Mathis

Overview of this book

Are you familiar with HTML5? Do you want to build exciting games and Web applications? Then explore the exciting world of game and Web development with one of the best frameworks out there: Babylon.JS. Starting from the beginning, the book introduces the required basics for 3D development and the knowledge you need to use the Babylon.js framework. It focuses on the simplicity provided by Babylon.js and uses a combination of theory and practice. All the chapters are provided with example files ready to run; each example file provides the previously learned features of the framework. Finally, developers will be ready to easily understand new features added to the framework in the future.
Table of Contents (15 chapters)
Babylon.js Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

The Babylon.js structure and graphs


First, let's create and explain the necessary tools to draw things on the screen, such as an engine that will handle a scene to draw a 3D object and use a camera and light.

The engine and a scene

The engine is the core of Babylon.js and a scene allows you to create and manage entities that you'll draw on the screen (objects, lights, cameras, and so on), thanks to an engine. You can see the engine like a gateway to communicate with the video card (GPU) while a scene is a high-level interface that handles the following multiple entities:

  • 3D objects (more on this in Chapter 3Create, Load, and Draw 3D Objects on the Screen)
  • Cameras
  • Lights
  • Particle systems (smoke, rain, and others)
  • Textures
  • Skeletons (animated 3D objects)
  • Post-processes (effects)
  • Materials (more on this in Chapter 4, Using Materials to Customize 3D Objects Appearance)
  • Sprites

In other words, a scene handles multiple entities and will call the engine to draw these entities on the screen.

To draw on the...