Gaussian-Splat-Viewer / index.html
Kyle Pearson
Add file type support for and in HTML input, enforce stricter validation in with supported formats list, warn on unsupported files, restrict processing to validated files.
78cdaef
raw
history blame contribute delete
938 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Spark • Editor</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="progress-bar">
<div id="progress-fill"></div>
</div>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.170.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.170.0/examples/jsm/",
"@sparkjsdev/spark": "https://sparkjs.dev/releases/spark/0.1.10/spark.module.js",
"lil-gui": "https://unpkg.com/lil-gui@0.19.2/dist/lil-gui.esm.min.js"
}
}
</script>
<canvas id="canvas" tabindex="0"></canvas>
<div id="main-gui"></div>
<div id="second-gui"></div>
<input id="file-input" type="file" accept=".ply,.spz,.splat,.ksplat,.zip,.sog,application/octet-stream" multiple="true" style="display: none;" />
<script type="module" src="js/app.js"></script>
</body>
</html>