Skip to content

Commit

Permalink
cleanup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 11, 2023
1 parent 0450bd0 commit 1d65601
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
6 changes: 1 addition & 5 deletions src/components/Selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ export default function Selector({confirmDialog, templateInfo, animationManager,
//create a gltf loader for the 3d models
const gltfLoader = new GLTFLoader(loadingManager)
gltfLoader.crossOrigin = 'anonymous';
console.log(vrmHelperRoot);
gltfLoader.register((parser) => {
//return new VRMLoaderPlugin(parser, {autoUpdateHumanBones: true, helperRoot:vrmHelperRoot})
return new VRMLoaderPlugin(parser, {autoUpdateHumanBones: true})
})

Expand All @@ -331,9 +331,6 @@ export default function Selector({confirmDialog, templateInfo, animationManager,
loadingManager.onError = function (url){
console.log(resultData);
console.warn("error loading " + url)
// setLoadPercentage(0)
// resolve(resultData);
// setIsLoading(false)
}
loadingManager.onProgress = function(url, loaded, total){
setLoadPercentage(Math.round(loaded/total * 100 ))
Expand Down Expand Up @@ -656,7 +653,6 @@ export default function Selector({confirmDialog, templateInfo, animationManager,

if(vrm) {
const m = vrm.scene;
console.log(vrm);
m.visible = false;
// add the now model to the current scene
model.add(m)
Expand Down
8 changes: 0 additions & 8 deletions src/library/animationManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class AnimationControl {
this.vrm = vrm;
this.animationManager = null;
this.animationManager = animationManager;
console.log("animations", animations);
animations[0].tracks.map((track, index) => {
if(track.name === "neck.quaternion" || track.name === "spine.quaternion"){
animations[0].tracks.splice(index, 1)
Expand All @@ -34,7 +33,6 @@ class AnimationControl {
this.actions.push(this.mixer.clipAction(animations[i]));
}
this.actions[0].play();
console.log(this.actions);

this.to = this.actions[curIdx]

Expand Down Expand Up @@ -166,17 +164,13 @@ export class AnimationManager{
startAnimation(vrm){
let animations = null;
if (this.mixamoModel != null){
console.log("mixamoModel", this.mixamoModel)
console.log("has mixamo model");
animations = [getMixamoAnimation(this.mixamoAnimations, this.mixamoModel.clone() ,vrm)]
if (this.animations == null)
this.animations = animations;
}
else{
animations = this.animations;
}

console.log(animations);
//const animation =
if (!animations) {
console.warn("no animations were preloaded, ignoring");
Expand All @@ -186,9 +180,7 @@ export class AnimationManager{
this.animationControls.push(animationControl);

addModelData(vrm , {animationControl});
console.log("an")
if (this.started === false){
console.log("start initial animation")
this.started = true;
this.animRandomizer(animations[this.curAnimID].duration);
}
Expand Down
7 changes: 0 additions & 7 deletions src/library/loadMixamoAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ export function getMixamoAnimation( animations, model, vrm ) {

} );
const animClip = new THREE.AnimationClip( 'vrmAnimation', clip.duration, tracks );
console.log("clip", animClip);
return animClip;
// const loader = new FBXLoader(); // A loader which loads FBX
// return loader.loadAsync( url ).then( ( asset ) => {



// } );

}

0 comments on commit 1d65601

Please sign in to comment.