Import a 3D Model and automatically assign and export animations
TypeScript
Update kaiju with extra bone for nose. better bone classification names
Scott Petrovic7214bac2451e
diff --git a/src/lib/solvers/BoneClassifier.ts b/src/lib/solvers/BoneClassifier.tsindex 8256fad..23806a4 100644--- a/src/lib/solvers/BoneClassifier.ts+++ b/src/lib/solvers/BoneClassifier.ts@@ -76,8 +76,8 @@ export class BoneClassifier {// Extremity bones: hands, feet, fingers, toes, eyes, earsconst extremity_keywords = ['hand', 'foot', 'feet', 'toe', 'ball',- 'thumb', 'index', 'middle', 'ring', 'pinky', 'finger',- 'eye', 'tongue', 'wing', 'feather', 'leaf', 'ear'+ 'thumb', 'index', 'middle', 'ring', 'pinky', 'finger', 'teeth',+ 'eye', 'tongue', 'wing', 'feather', 'leaf', 'ear', 'horn']if (extremity_keywords.some(kw => name.includes(kw))) {return BoneCategory.Extremity@@ -85,9 +85,9 @@ export class BoneClassifier {// Limb bones: upper/lower arms, thighs, calves, shouldersconst limb_keywords = [- 'arm', 'upperarm', 'lowerarm', 'forearm', 'elbow', 'wrist',+ 'arm', 'upperarm', 'lowerarm', 'forearm', 'elbow', 'wrist', 'nose','shoulder', 'clavicle', 'ankle', 'fin', 'head', 'chin', 'jaw', 'mouth',- 'thigh', 'calf', 'shin', 'knee', 'leg', 'upleg', 'lowleg'+ 'thigh', 'calf', 'shin', 'knee', 'leg', 'upleg', 'lowleg', 'neck']if (limb_keywords.some(kw => name.includes(kw))) {return BoneCategory.Limb@@ -97,8 +97,8 @@ export class BoneClassifier {// tails and feathers aren't technically torso, but we want// to give them more smoothing since they aren't as rigidconst torso_keywords = [- 'spine', 'chest', 'hips', 'pelvis', 'neck', 'torso', 'abdomen', 'body',- 'tail', 'stomach'+ 'spine', 'chest', 'hips', 'pelvis', 'torso', 'abdomen', 'body',+ 'tail', 'stomach', 'collar']if (torso_keywords.some(kw => name.includes(kw))) {return BoneCategory.Torsodiff --git a/static/animations/kaiju-animations.glb b/static/animations/kaiju-animations.glbindex 13a6fc5..6cdb231 100644Binary files a/static/animations/kaiju-animations.glb and b/static/animations/kaiju-animations.glb differdiff --git a/static/models-variation/kaiju-base.glb b/static/models-variation/kaiju-base.glbindex 456b5a6..211174a 100644Binary files a/static/models-variation/kaiju-base.glb and b/static/models-variation/kaiju-base.glb differdiff --git a/static/rigs/rig-kaiju.glb b/static/rigs/rig-kaiju.glbindex 183716c..d458720 100644Binary files a/static/rigs/rig-kaiju.glb and b/static/rigs/rig-kaiju.glb differ