API

Babylon.js Viewer Examples

This section contains a list of the current viewer demos.

Basic usage

https://github.com/BabylonJS/Babylon.js/tree/master/packages/tools/viewer/public/basicExample.html

A basic example of loading a .babylon model with the default configuration.

Live demo

DOM configuration

https://github.com/BabylonJS/Babylon.js/tree/master/packages/tools/viewer/public/domExample.html

An example of how to use the DOM to configure the viewer.

Live demo

Events example

https://github.com/BabylonJS/Babylon.js/tree/master/packages/tools/viewer/public/eventsExample.html

An example of how to load the viewer and use its observers with promises, observables, and callbacks.

Live demo

Animations example

https://github.com/BabylonJS/Babylon.js/tree/master/packages/tools/viewer/public/ufoExample.html

An example of the animation system of the default viewer.

Live demo

Further reading

Babylon.js Viewer (V1)
The viewer is the simplest way to display 3D content on a web page.
Babylon.js Viewer (V1)
Configuring the Babylon.js Viewer
How to configure the Babylon.js viewer.
Configuring the Babylon.js Viewer
Babylon.js Viewer Templating System
Using and extending the viewer's simple integrated templating system.
Babylon.js Viewer Templating System
Modify the Babylon.js Viewer
Modifying the Babylon.js viewer using HTML.
Modify the Babylon.js Viewer
Babylon.js Viewer - Advanced usage
Advanced uses of the viewer.
Babylon.js Viewer - Advanced usage