Babylon.js Viewer Examples

This section holds a list of the current demos of the viewer

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 on 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 on how to load the viewer and use its observers using 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
The viewer is the simplest way to display 3D content on a web page.
Babylon.js Viewer
Configuring the Babylon.js Viewer
How to configure the Babylon.js viewer.
Configuring the Babylon.js Viewer
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
Babylon.js Viewer Templating System
Using and extending the viewer's simple integrated templating system.
Babylon.js Viewer Templating System