Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Nov 2, 2023
1 parent a7a300a commit 3bbb3dc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/library/create-texture-atlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
4 changes: 0 additions & 4 deletions src/library/download-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/library/merge-geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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"],
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Optimizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3bbb3dc

Please sign in to comment.