Skip to content

Instantly share code, notes, and snippets.

@andreasplesch
Last active December 18, 2025 21:22
Show Gist options
  • Select an option

  • Save andreasplesch/e650783d0ffe6ca489ccaa9f217610b9 to your computer and use it in GitHub Desktop.

Select an option

Save andreasplesch/e650783d0ffe6ca489ccaa9f217610b9 to your computer and use it in GitHub Desktop.
x3dom-dev.html
<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