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

Summary


This quick chapter demonstrates that using sounds (2D and 3D) in a 3D engine can be easy when powerful tools are provided to the developer. The example files create a 2D sound that is played as a soundtrack and a 3D sound located at the box's position. Do not hesitate to play with the distance models and check the effects using your headphones.

In the next chapter, we'll try to automate some things using the ActionManager class of Babylon.js. This class is useful for executing actions on objects when a trigger is raised. For example, if the player left-clicks on the box, it plays the sound named my_sound.wav. It's also the time to introduce Actions Builder, which is a part of the Babylon.js 3ds Max exporter. Actions Builder allows artists (and developers) to create actions on their objects without any lines of code.