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

Configuring in Blender and 3ds Max


Going back to the 3D software such as Blender and 3ds Max that are used by the artists, it's also possible to configure collisions and physics simulations.

Collisions in Blender

Starting from this scene, the collisions are easy to configure, as shown in the following screenshot:

For Chapter 3, Create, Load, and Draw 3D Objects on the Screen, let's zoom on the Babylon.js properties, as shown in the following image:

First, click on the options button (at the top) and for the selected object, which is the cube here, enable the collisions by checking the Check Collisions check box. For every mesh, check the checkbox to enable the collisions.

Now, let's configure the camera in Blender. Select the camera in the scene, click on the camera's options (at the top), and check the Enable Collisions and Apply Gravity check boxes if you want to apply gravity on your camera, as shown in the following image:

To configure the camera's ellipsoid, a BABYLON.Vector3 dialog...