basicExample.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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 configuration="config.json" 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"
  20. templates.nav-bar.params.disable-on-fullscreen="true"></babylon>
  21. <script src="viewer.js"></script>
  22. <script>
  23. // The following lines are redundant.
  24. // They are only here to show how you could achive the tag initialization on your own.
  25. // a simple way of disabling auto init
  26. BabylonViewer.disableInit = true;
  27. // Initializing the viewer on specific HTML tags.
  28. BabylonViewer.InitTags('babylon');
  29. </script>
  30. </body>
  31. </html>