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

Chapter 3. Create, Load, and Draw 3D Objects on the Screen

In the last chapter, you learned that 3D objects, called meshes, are composed of a list of 3D points (vertex buffer) and indices (index buffer) that creates the triangles that are drawn on the screen. To create complex meshes such as characters or buildings, 3D artists use modeling software that is capable of handling the vertex buffers and index buffers for us, including a lot of powerful tools for an easy creation.

The Babylon.js solution comes with plugins for Blender (https://www.blender.org/) and 3ds Max (http://www.autodesk.fr/products/3ds-max/overview), two famous modelers known by artists. These plugins are intended for 3D artists and are used to export the scenes built in these modelers to a format that Babylon.js is capable of loading. The exported files are JSON files with the .babylon extension. More information about the format can be found at http://doc.babylonjs.com/generals/File_Format_Map_(.babylon...