Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

GLB and GLTF can be uploaded. Just use one human example for model

Scott Petrovic7323ce755f3f
diff --git a/src/index.html b/src/index.html
index 772c472..5901d55 100644
--- a/src/index.html
+++ b/src/index.html
@@ -38,12 +38,12 @@
<div id="load-model-tools">
- <p class="step-instructions">Only GLTF files can be loaded. Models with multiple objects won't be rigged correct.</p>
+ <p class="step-instructions">Supports GLTF or GLB files. Models with multiple objects currently aren't supported.</p>
<label for="model-upload" class="button" >
<span class="button-icon-group">
<span class="material-symbols-outlined" >upload</span>
- <span>Upload GLTF</span>
+ <span>Upload GLTF/GLB</span>
</span>
</label>
<input id="model-upload" type="file" name="file-upload" accept=".glb, .gltf" />
@@ -53,9 +53,8 @@
<div style="display: flex; flex-direction: column; gap: 1rem; background-color: #0f2f3d; padding: 1rem;">
<p style="margin: 0">Upload sample model:</p>
<select id="model-selection">
- <option value="models/human-simple.glb">Human Cartoon</option>
+ <option value="models/human-mannequin.glb">Human Mannequin</option>
<option value="models/fox.glb">Fox</option>
- <option value="models/mesh-x-bot.glb">X Bot</option>
</select>
<button id="load-model-button">Load</button>
</div>
diff --git a/static/models/character.glb b/static/models/character.glb
deleted file mode 100644
index ad9f1c5..0000000
Binary files a/static/models/character.glb and /dev/null differ
diff --git a/static/models/character.png b/static/models/character.png
deleted file mode 100644
index d58986e..0000000
Binary files a/static/models/character.png and /dev/null differ
diff --git a/static/models/human-mannequin.glb b/static/models/human-mannequin.glb
new file mode 100644
index 0000000..cae9cc5
Binary files /dev/null and b/static/models/human-mannequin.glb differ
diff --git a/static/models/human-simple.glb b/static/models/human-simple.glb
deleted file mode 100644
index e44b560..0000000
Binary files a/static/models/human-simple.glb and /dev/null differ
diff --git a/static/models/mesh-x-bot.glb b/static/models/mesh-x-bot.glb
deleted file mode 100644
index 2adc38b..0000000
Binary files a/static/models/mesh-x-bot.glb and /dev/null differ
diff --git a/static/models/multi-mesh-man.glb b/static/models/reference-multi-mesh-man.glb
similarity index 100%
rename from static/models/multi-mesh-man.glb
rename to static/models/reference-multi-mesh-man.glb
diff --git a/static/models/sample-multi-mesh-skin.glb b/static/models/reference-multi-mesh-skin-example.glb
similarity index 100%
rename from static/models/sample-multi-mesh-skin.glb
rename to static/models/reference-multi-mesh-skin-example.glb