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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Extra Importer Plugins</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/plugin-extra-importers": "./../../plugins/extra-importers/dist/index.mjs"
  16. }
  17. }
  18. </script>
  19. <style id="example-style">
  20. html, body, #canvas-container, #mcanvas {
  21. width: 100%;
  22. height: 100%;
  23. margin: 0;
  24. overflow: hidden;
  25. }
  26. p{
  27. position: absolute;
  28. top: 5%;
  29. left: 50%;
  30. transform: translate(-50%, -50%);
  31. font-size: 1.25em;
  32. color: #8cd55b;
  33. font-family: sans-serif;
  34. pointer-events: none;
  35. }
  36. </style>
  37. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  38. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  39. </head>
  40. <body>
  41. <div id="canvas-container">
  42. <p>Drop .3ds .3mf .collada .amf .bvh .vox .gcode .mdd .pcd .tilt .wrl .mpd .vtk .xyz files here</p>
  43. <canvas id="mcanvas"></canvas>
  44. </div>
  45. </body>