RaananW

The new Babylon Viewer

Recommended Posts

Hi boys and girls,

I don't know if you noticed, but the repository has a new directory called "Viewer" : https://github.com/BabylonJS/Babylon.js/tree/master/Viewer

The viewer is a simple way of displaying a model without the need of JavaScript at all. It (obviously) uses babylon, and can be customized to your needs using HTML tags and HTML attributes.

The only two important lines in your page would be:

<babylon model="https://playground.babylonjs.com/scenes/Rabbit.babylon"></babylon>
<script src="https://viewer.babylonjs.com/viewer.min.js"></script>

Which will result in this:

https://viewer.babylonjs.com/basicexample

 You can read about how to use it and how to customize it here - http://doc.babylonjs.com/extensions/the_babylon_viewer

It is currently in a very early stage. The (public) project can be found here - https://github.com/BabylonJS/Babylon.js/projects/6 , including future plans. 

I am in the process of simplifying the development, build, and deploy process and it will soon be available on NPM as well, if anyone wishes to embed it using webpack/imports/require/whatever

Share this post


Link to post
Share on other sites

I was wondering, watching github notifications, what are these interesting "viewer" task & issues, so here it is!

This tool will be very useful, for example for easily doing a custom "sketchfab-like" 3d viewer on artists folio websites. Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.