basicExample.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>BabylonJS Viewer - Basic usage</title>
  8. <style>
  9. babylon {
  10. max-width: 800px;
  11. max-height: 500px;
  12. width: 100%;
  13. height: 600px;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <babylon model.title="Damaged Helmet" model.subtitle="BabylonJS" model.thumbnail="https://www.babylonjs.com/img/favicon/apple-icon-144x144.png"
  19. model.url="https://www.babylonjs.com/Assets/DamagedHelmet/glTF/DamagedHelmet.gltf" camera.behaviors.auto-rotate="0" templates.nav-bar.params.disable-on-fullscreen="true"></babylon>
  20. <script src="viewer.js"></script>
  21. <script>
  22. // The following lines are redundant.
  23. // They are only here to show how you could achive the tag initialization on your own.
  24. // a simple way of disabling auto init
  25. BabylonViewer.disableInit = true;
  26. // Initializing the viewer on specific HTML tags.
  27. BabylonViewer.InitTags('babylon');
  28. </script>
  29. </body>
  30. </html>