Import a 3D Model and automatically assign and export animations
TypeScript
testing out using a root reference for including in styles
Scott Petrovic833c24b5ceab
diff --git a/src/Mesh2MotionEngine.ts b/src/Mesh2MotionEngine.tsindex 29aa341..024cca5 100644--- a/src/Mesh2MotionEngine.ts+++ b/src/Mesh2MotionEngine.ts@@ -22,10 +22,8 @@ import { StepWeightSkin } from './lib/processes/weight-skin/StepWeightSkin.ts'import { ProcessStep } from './lib/enums/ProcessStep.ts'import { type Bone, Group, Scene, type Skeleton, type Vector3 } from 'three'-import type BoneTesterData from './lib/interfaces/BoneTesterData.ts'import { SkeletonType } from './lib/enums/SkeletonType.ts'-import { RigConfig } from './lib/RigConfig.ts'import { CustomSkeletonHelper } from './lib/CustomSkeletonHelper.ts'import { EventListeners } from './lib/EventListeners.ts'diff --git a/src/create.html b/src/create.htmlindex 5b30613..bb1698f 100644--- a/src/create.html+++ b/src/create.html@@ -26,7 +26,7 @@<nav><div style="display: inline-flex; align-items: center">- <a href="https://mesh2motion.org"+ <a id="logo-branding" href="https://mesh2motion.org"><img src="./images/mesh2motion.svg" width="200"/></a><a href="/">Explore</a>diff --git a/src/desktop.css b/src/desktop.cssindex 8911924..b1a2558 100644--- a/src/desktop.css+++ b/src/desktop.css@@ -3,4 +3,10 @@#nav-github{display: none;+}++/* this makes links not clickable */+a#logo-branding {+ pointer-events: none;+ text-decoration: none;}\ No newline at end of filediff --git a/src/index.html b/src/index.htmlindex 3e43a7c..9a3b99b 100644--- a/src/index.html+++ b/src/index.html@@ -21,7 +21,7 @@<nav><div style="display: inline-flex; align-items: center;">- <a href="https://mesh2motion.org"><img src="./images/mesh2motion.svg" width="200" /></a>+ <a id="logo-branding" href="https://mesh2motion.org"><img src="./images/mesh2motion.svg" width="200" /></a><span class="active-nav-item">Explore</span><a href="/create.html">Use Your Model</a><a href="/retarget/index.html">Use Your Rigged Model</a>diff --git a/src/lib/DOMUtilities.ts b/src/lib/DOMUtilities.tsindex 2a9a990..ded9cfb 100644--- a/src/lib/DOMUtilities.ts+++ b/src/lib/DOMUtilities.ts@@ -136,7 +136,7 @@ export class DOMUtilities {<div id="settings-dropdown-container" class="nav-dropdown"><button id="settings-toggle" class="nav-icon-button" aria-expanded="false" aria-controls="settings-dropdown-content" aria-haspopup="true" aria-label="Open settings">- <img src="images/icons/settings.svg" alt="Settings" width="30" height="30" />+ <img src="/images/icons/settings.svg" alt="Settings" width="30" height="30" /></button>diff --git a/src/lib/PlatformManager.ts b/src/lib/PlatformManager.tsindex 066682a..84dee2f 100644--- a/src/lib/PlatformManager.ts+++ b/src/lib/PlatformManager.ts@@ -29,7 +29,7 @@ export class PlatformManager {if (this.platform === Platform.Desktop) {const link = document.createElement('link');link.rel = 'stylesheet';- link.href = './desktop.css';+ link.href = '/desktop.css';document.head.appendChild(link);}diff --git a/src/retarget/index.html b/src/retarget/index.htmlindex ebd2425..b380d6d 100644--- a/src/retarget/index.html+++ b/src/retarget/index.html@@ -20,7 +20,8 @@<nav><div style="display: inline-flex; align-items: center;">- <a href="https://mesh2motion.org"><img src="../images/mesh2motion.svg" width="200" /></a>+ <a id="logo-branding" href="https://mesh2motion.org">+ <img src="../images/mesh2motion.svg" width="200" /></a><a href="/">Explore</a><a href="/create.html" >Use Your Model</a><span class="active-nav-item">Use Your Rigged Model</span>