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 1.9KB

1 ano atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  21. }
  22. </script>
  23. <style id="example-style">
  24. html, body, #canvas-container, #mcanvas {
  25. width: 100%;
  26. height: 100%;
  27. margin: 0;
  28. overflow: hidden;
  29. }
  30. #prompt-div{
  31. position: absolute;
  32. top: 50%;
  33. left: 50%;
  34. transform: translate(-50%, -50%);
  35. color: #333;
  36. font-size: 2em;
  37. font-family: sans-serif;
  38. pointer-events: none;
  39. }
  40. </style>
  41. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  42. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  43. </head>
  44. <body>
  45. <div id="canvas-container">
  46. <canvas id="mcanvas"></canvas>
  47. <div id="prompt-div">Drop any <span style="font-family: monospace">glb/gltf/zip/fbx/obj/stl/3dm...</span> files here</div>
  48. </div>
  49. </body>