Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Remove a bunch of HTML from marketing intro that is all skipped

Scott Petrovic2f3a0bdef814
diff --git a/src/index.html b/src/index.html
index a1d9af7..bb6e408 100644
--- a/src/index.html
+++ b/src/index.html
@@ -296,7 +296,7 @@
<!-- checkbox option to show skeleton -->
<div class="styled-checkbox icon-toggle">
<input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
- <label for="show-skeleton-checkbox" title="Show skeleton" tabindex="0">
+ <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
<img src="images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
</label>
</div>
diff --git a/src/marketing/index.html b/src/marketing/index.html
index 2428244..3876864 100644
--- a/src/marketing/index.html
+++ b/src/marketing/index.html
@@ -48,8 +48,6 @@
</button>
</div>
-
-
<div class="model-selection-section">
<button id="load-human-model-button">Human</button>
<button id="load-fox-model-button">Fox</button>
@@ -63,33 +61,8 @@
<div id="tool-selection-group">
<div style="margin-bottom: 1rem; padding: 0;">
- <span id="current-step-index"></span>
- <span id="current-step-label"></span>
- </div>
-
- <div id="load-model-tools">
-
- <!-- <p class="step-instructions">Supports GLB, GLTF, FBX</p> -->
-
- <label for="model-upload" class="button" data-tippy-content="GLB and FBX preferred. ZIP is for GLTF+BIN and textures separately. DAE+textures is also supported in ZIP format." >
- <span class="button-icon-group">
- <span class="material-symbols-outlined" >upload</span>
- <span>Upload</span>
- <span class="material-symbols-outlined" >help</span>
- </span>
- </label>
- <input id="model-upload" type="file" name="file-upload" accept=".glb, .zip, .fbx" />
-
-
- <div class="styled-checkbox">
-
- <input type="checkbox" id="load-model-debug-checkbox" name="load-model-debug-checkbox">
- <label for="load-model-debug-checkbox">Debug</label>
-
- <span class="material-symbols-outlined" data-tippy-content="Replaces all materials with a 'normal' shader for debugging">help</span>
-
- </div>
+ <span id="current-step-label"></span>
</div>
<div id="load-skeleton-tools">
@@ -103,17 +76,6 @@
</div>
</span>
- <hr />
-
- <span style="max-width: 220px">
- <span>If model is below the ground floor</span>
- <div style="display: flex; flex-direction: row">
- <button class="secondary-button" id="move-model-to-floor-button">Move</button>
- </div>
- </span>
-
- <hr />
-
<div style="display: flex; flex-direction: column; gap: 1rem;">
<span>Skeleton template:</span>
@@ -126,109 +88,12 @@
</select>
</div>
-
- <!-- Hand skeleton options for human skeleton -->
- <div id="hand-skeleton-options" class="alternate-background-section" >
-
- <span>
- Hand Options:
- <span class="material-symbols-outlined" data-tippy-content="Variations on which finger bones you want to keep. Single Hand Bone removes all fingers and keeps only the hand bone.">help</span>
- </span>
-
- <select id="hand-skeleton-selection">
- <option value="all-fingers">All Fingers</option>
- <option value="thumb-and-index">Thumb + Main Finger</option>
- <option value="simplified-hand">All Fingers - Simplified</option>
- <option value="single-bone">Single Hand Bone</option>
- </select>
- </div>
-
-
- <!-- scale skeleton to get it close to the model size -->
- <div id="scale-skeleton-controls" style="display: none; flex-direction: column;">
- <div style="display: flex; flex-direction: row; align-items: center;">
- <label style="display:inline-flex">Scale skeleton</label>
- <span class="material-symbols-outlined" data-tippy-content="Adjust the overall scale of the skeleton">help</span>
- </div>
- <div style="display: flex; flex-direction: row; gap: 1rem; justify-content: flex-start; align-items: center;">
- <span id="scale-skeleton-percentage-display">100%</span>
- <input id="scale-skeleton-input" style="flex-grow: 1;" type="range" min=".20" max="1.80" value="1.0" step="0.01" />
- </div>
- </div>
-
-
- <div style="display: flex; gap: 0.5rem;">
- <button class="secondary-button" id="action_back_to_load_model" >&#x2039; Back</button>
- <button id="load-skeleton-button">Edit Skeleton &nbsp;&#x203a;</button>
- </div>
-
-
</div>
<span id="skeleton-step-actions">
- <!-- undo/redo system-->
- <fieldset style="position: fixed; right: 240px; top: 20px;">
- <div style="display: flex; gap: 2px;">
- <button id="undo-button" class="secondary-button" title="Undo (Ctrl+Z)" disabled>
- <img src="../images/icons/undo.png" alt="Undo" width="16" height="16" />
- </button>
- <button id="redo-button" class="secondary-button" title="Redo (Ctrl+Y)" disabled>
- <img src="../images/icons/redo.png" alt="Redo" width="16" height="16" />
- </button>
- </div>
- </fieldset>
-
- <!-- <p class="step-instructions">Move bones into position.</p> -->
-
- <p id="bone-selection-section">
- <span>Selected Bone: <span id="edit-selected-bone-label">None</span></span>
- </p>
-
- <!-- controls to change transfrom mode between transform and rotation -->
- <div style="display: flex; flex-direction: row;">
-
- <!-- View mode between textured mesh and weight painted mesh preview -->
- <fieldset>
- <span>Preview</span>
- <div id="mesh-preview-group" class="toggle">
- <input id="preview-painted" type="radio" name="mesh-preview-type" value="weight-painted" checked="checked" />
- <label for="preview-painted">
- <img src="../images/icons/display-weight-painted.svg" alt="Weights" width="20" height="20" title="Weight painted mesh" />
- </label>
- <input id="preview-textured" type="radio" name="mesh-preview-type" value="textured" />
- <label for="preview-textured">
- <img src="../images/icons/display-textured.svg" alt="Textured" width="20" height="20" title="Textured Mesh" />
- </label>
-
- </div>
- </fieldset>
-
- <fieldset>
- <span>Transform</span>
- <div id="transform-control-type-group" class="toggle">
- <input type="radio" name="transform-control-type" value="translate" id="transform-translate" checked="checked" />
- <label for="transform-translate">
- <img src="../images/icons/tool-move.svg" alt="Translate" width="20" height="20" title="Translation" />
- </label>
- <input type="radio" name="transform-control-type" value="rotation" id="transform-rotate" />
- <label for="transform-rotate">
- <img src="../images/icons/tool-rotate.svg" alt="Rotate" width="20" height="20" title="Rotation" />
- </label>
- </div>
- </fieldset>
- </div>
-
-
-
-
- <div class="styled-checkbox">
- <input type="checkbox" id="mirror-skeleton" name="mirror-skeleton" value="mirror" checked>
- <label for="mirror-skeleton">Mirror Left/Right Joints</label>
- </div>
- <hr />
<!-- option to change out skinning algorithm -->
<label style="display: none" for="skinning-algorithm-options">Skinning algorithm:</label>
@@ -281,7 +146,7 @@
<!-- checkbox option to show skeleton -->
<div class="styled-checkbox icon-toggle">
<input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
- <label for="show-skeleton-checkbox" title="Show skeleton" tabindex="0">
+ <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
<img src="../images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
</label>
</div>