Last active
December 18, 2025 21:22
-
-
Save andreasplesch/e650783d0ffe6ca489ccaa9f217610b9 to your computer and use it in GitHub Desktop.
x3dom-dev.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" /> | |
| <meta name="theme-color" content="#86c540"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <title>X3DOM // GLTF 2.0</title> | |
| <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/x3dom/x3dom-dev/dist/x3dom-full.js"></script> | |
| <link href="https://cdn.jsdelivr.net/gh/x3dom/x3dom-dev/dist/x3dom.css" rel="stylesheet"> | |
| </head> | |
| <script> | |
| function onDownloadsFinished() | |
| { | |
| g_runtime.showAll(g_direction, true); | |
| }; | |
| function onload() | |
| { | |
| x3d = document.getElementById("x3d"); | |
| x3d.addEventListener( "downloadsfinished", onDownloadsFinished ); | |
| g_runtime = x3d.runtime; | |
| g_direction = "posZ"; | |
| }; | |
| </script> | |
| <body onload='onload();'> | |
| <X3D id="x3d" showLog="true" width="800px" height="600px"> | |
| <Scene> | |
| <Inline url='"https://raw.githubusercontent.com/andreasplesch/Library/20782db654ce04a3014a519bfd8a180278bbe9d3/Examples/gltf2/Crusader%20Shield%20Damara.glb"'> | |
| </Inline> | |
| </Scene> | |
| </X3D> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment