Babylon Viewer (v2)

Hey folks, just wanted to provide an update on some recent progress on the Viewer:

  • Camera auto orbit speed and delay can now be specified through attributes/properties.
  • There is now a default progress bar, which can be styled or entirely replaced.
  • Inspector now works with the Viewer, though it is not yet included in the distribution or in the Viewer API. You can however consume both @babylonjs/viewer and @babylonjs/inspector and show the inspector within the viewer. Having an API in the viewer itself to show the inspector is still on the table but has some complexities and will come later.
  • The viewer HTML element now pauses the render loop when it is not visible within the browser viewport (thanks @brianzinn for the tips on this one!).
  • Static world space hotspots are now supported, there is default UI to focus on a hotspot, and there is a new custom element for creating 2D html annotations that track hotspots. (Note that hotspots are difficult to use right now until we finish the tooling to make it simple to configure them).

Very soon we will be working on more complete documentation as well!

7 Likes