threepipe
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.html 2.0KB

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