diff --git a/src/library/create-texture-atlas.js b/src/library/create-texture-atlas.js index 45593716..28ee58ba 100644 --- a/src/library/create-texture-atlas.js +++ b/src/library/create-texture-atlas.js @@ -219,7 +219,6 @@ export const createTextureAtlasNode = async ({ meshes, atlasSize = 4096 }) => { }; export const createTextureAtlasBrowser = async ({ backColor, meshes, atlasSize = 4096 }) => { - console.log("is br"); const ATLAS_SIZE_PX = atlasSize; const IMAGE_NAMES = ["diffuse"]; const bakeObjects = []; diff --git a/src/library/download-utils.js b/src/library/download-utils.js index 71aa7315..5d210764 100644 --- a/src/library/download-utils.js +++ b/src/library/download-utils.js @@ -124,7 +124,6 @@ export async function downloadVRMWithAvatar(avatarToDownload, avatar, fileName = export async function downloadVRM(avatarToDownload,vrmData,fileName = "", screenshot = null, atlasSize = 4096, scale = 1, isVrm0 = false, vrmMeta = null, createTextureAtlas = true){ const avatar = {_optimized:{vrm:vrmData}} - console.log(avatar) downloadVRMWithAvatar(avatarToDownload, avatar, fileName, screenshot, atlasSize, scale,isVrm0,vrmMeta,createTextureAtlas) } @@ -174,14 +173,11 @@ function parseGLB (glbModel){ function parseVRM (glbModel, avatar, screenshot = null, isVrm0 = false, vrmMeta = null, atlasMaterial = false){ return new Promise((resolve) => { const exporter = isVrm0 ? new VRMExporterv0() : new VRMExporter() - console.log("avatar",avatar); - console.log("model",glbModel); const vrmData = { ...getVRMBaseData(avatar), ...getAvatarData(glbModel, "CharacterCreator", atlasMaterial, vrmMeta), } - console.log(vrmData); let skinnedMesh; glbModel.traverse(child => { if (child.isSkinnedMesh) skinnedMesh = child; diff --git a/src/library/merge-geometry.js b/src/library/merge-geometry.js index bd8cbf1c..4ee80269 100644 --- a/src/library/merge-geometry.js +++ b/src/library/merge-geometry.js @@ -357,7 +357,6 @@ export async function combineNoAtlas({ avatar, scale = 1 }, isVrm0 = false) { group.add(newMesh); group.add(newSkeleton.bones[0]); }); - console.log(group); group.userData.atlasMaterial = material; @@ -370,7 +369,6 @@ export async function combine({ transparentColor, avatar, atlasSize = 4096, scal await createTextureAtlas({ transparentColor, atlasSize, meshes: findChildrenByType(avatar, "SkinnedMesh")}); const meshes = bakeObjects.map((bakeObject) => bakeObject.mesh); - console.log(meshes); const material = new THREE.MeshStandardMaterial({ map: textures["diffuse"], @@ -460,7 +458,6 @@ export async function combine({ transparentColor, avatar, atlasSize = 4096, scal const mesh = new THREE.SkinnedMesh(geometry, material); - console.log(mesh); mesh.name = "CombinedMesh"; mesh.morphTargetInfluences = dest.morphTargetInfluences; mesh.morphTargetDictionary = dest.morphTargetDictionary; diff --git a/src/pages/Optimizer.jsx b/src/pages/Optimizer.jsx index d1ed9ded..4007563d 100644 --- a/src/pages/Optimizer.jsx +++ b/src/pages/Optimizer.jsx @@ -31,8 +31,6 @@ function Optimizer({ } const download = () => { - console.log("merge and download logic"); - console.log(currentVRM); const vrmData = currentVRM.userData.vrm downloadVRM(model, vrmData,nameVRM + "_merged",null,4096,1,true, null, true) }