threepipe
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-plugin-3d-tiles-renderer": "./../../plugins/plugin-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. }
  42. </style>
  43. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  44. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  45. </head>
  46. <body>
  47. <div id="canvas-container">
  48. <canvas id="mcanvas"></canvas>
  49. <div id="prompt-div">Drop any <span style="font-family: monospace">glb/gltf/zip/fbx/obj/stl/3dm...</span> files here</div>
  50. </div>
  51. </body>