threepipe
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.html 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Model Viewer Sample</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- Import maps polyfill -->
  8. <!-- Remove this when import maps will be widely supported -->
  9. <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
  10. <script type="importmap">
  11. {
  12. "imports": {
  13. "three": "./../../dist/index.mjs",
  14. "threepipe": "./../../dist/index.mjs",
  15. "@threepipe/plugins-extra-importers": "./../../plugins/extra-importers/dist/index.js",
  16. "@threepipe/plugin-blend-importer": "./../../plugins/blend-importer/dist/index.mjs",
  17. "@threepipe/plugin-configurator": "./../../plugins/configurator/dist/index.mjs",
  18. "@threepipe/plugin-network": "./../../plugins/network/dist/index.mjs",
  19. "@threepipe/plugin-gaussian-splatting": "./../../plugins/gaussian-splatting/dist/index.mjs",
  20. "@threepipe/plugin-3d-tiles-renderer": "./../../plugins/3d-tiles-renderer/dist/index.mjs",
  21. "@threepipe/webgi-plugins": "https://unpkg.com/@threepipe/webgi-plugins@0.4.1/dist/index.mjs"
  22. }
  23. }
  24. </script>
  25. <style id="example-style">
  26. html, body, #canvas-container, #mcanvas {
  27. width: 100%;
  28. height: 100%;
  29. margin: 0;
  30. overflow: hidden;
  31. }
  32. #prompt-div{
  33. position: absolute;
  34. top: 50%;
  35. left: 50%;
  36. transform: translate(-50%, -50%);
  37. color: #333;
  38. font-size: 2em;
  39. font-family: sans-serif;
  40. pointer-events: none;
  41. z-index: 50;
  42. }
  43. </style>
  44. <script type="module" src="../examples-utils/global-loading.mjs"></script>
  45. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  46. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  47. </head>
  48. <body>
  49. <div id="canvas-container">
  50. <canvas id="mcanvas"></canvas>
  51. <div id="prompt-div">Drop any <span style="font-family: monospace">glb/gltf/zip/fbx/obj/stl/3dm...</span> files here</div>
  52. </div>
  53. </body>