Import a 3D Model and automatically assign and export animations
TypeScript
Hide skinning testing options for now. Make weight painted display default
Scott Petrovic8b7de5baacd5
diff --git a/src/index.html b/src/index.htmlindex 8a4b96a..b70b4e5 100644--- a/src/index.html+++ b/src/index.html@@ -183,14 +183,14 @@</select><!-- checkbox for enabling weight skin debug mode. -->- <div class="styled-checkbox">+ <!-- <div class="styled-checkbox"><input type="checkbox" id="debug-skinning-checkbox" ><label for="debug-skinning-checkbox">Visualize Weight Painting</label><div class="tooltip"><span class="material-symbols-outlined" style="font-size: 16px;">help</span><span class="tooltiptext">Preview weight painted mesh</span></div>- </div>+ </div> --><button id="action_bind_pose" >Bind pose</button>diff --git a/src/lib/Generators.ts b/src/lib/Generators.tsindex 0314ef9..4b90a14 100644--- a/src/lib/Generators.ts+++ b/src/lib/Generators.ts@@ -283,7 +283,7 @@ export class Generators {let b = 0.8// Darkening factor (0 < factor < 1)- const darken = 0.6 // lower value is darker+ const darken = 0.8 // lower value is darker// Generate a list of colors based on the countconst colors: Vector3[] = []diff --git a/src/script.ts b/src/script.tsindex b75dd13..ef38908 100644--- a/src/script.ts+++ b/src/script.ts@@ -49,7 +49,7 @@ export class Bootstrap {public debugging_visual_object: Group = new Group()// when editing the skeleton, what type of mesh will we see- public mesh_preview_display_type: ModelPreviewDisplay = ModelPreviewDisplay.Textured+ public mesh_preview_display_type: ModelPreviewDisplay = ModelPreviewDisplay.WeightPaintedprivate readonly clock = new THREE.Clock()@@ -179,6 +179,7 @@ export class Bootstrap {this.edit_skeleton_step.setup_scene(this.scene)this.transform_controls.enabled = truethis.transform_controls.setMode('translate') // 'translate', 'rotate', or 'scale'+ this.changed_model_preview_display(this.mesh_preview_display_type) // show weight painted mesh by defaultbreakcase ProcessStep.BindPose:this.process_step = ProcessStep.BindPose