Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threejs 99: fbx skinned meshes have issues #15354

Closed
pikilipita opened this issue Dec 2, 2018 · 12 comments
Closed

Threejs 99: fbx skinned meshes have issues #15354

pikilipita opened this issue Dec 2, 2018 · 12 comments
Milestone

Comments

@pikilipita
Copy link

I've updated from threejs r96 to r99 and animated fbx meshes went all over the place.
The same fbx loader script is used in both cases.

Animated collada models seems fine.

r96:
https://lune.live/forums/3-96.png

r99
https://lune.live/forums/3-99.png

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 2, 2018

Can you please test if an additional line of code solves the issue? Please add the following line...

model.normalizeSkinWeights();

after this one:

model = new THREE.SkinnedMesh( geometry, material );

@pikilipita
Copy link
Author

Thank you, that was fast!

it seems to have fixed the issue with fbx models made from blender,
but fbx models made from cinema4D are still experiencing issues.

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 2, 2018

but fbx models made from cinema4D are still experiencing issues

Do you also have issues with these models with R96?

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 2, 2018

@mrdoob Would it be not better to call SkinnedMesh.normalizeSkinWeights() in all loaders that produce skinned meshes right now? I'm afraid we are going to have more support cases like this one...

@pikilipita
Copy link
Author

pikilipita commented Dec 2, 2018

I also had issues on r96 when using the latest fbx loader, but different ones.

The only way I know to get a perfect Cinema4D fbx files in threejs is to use this combo:
r96 + an old fbx loader (back from April 2018)

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 2, 2018

Okay, thanks for the feedback! I think it makes sense to separate both problems. Can you please share in this thread one of the problematic FBX files exported from Cinema4D? I'm sure @looeee can have a look at it.

The issue about SkinnedMesh.normalizeSkinWeights() is something different.

@looeee
Copy link
Collaborator

looeee commented Dec 3, 2018

There seems to be quite a few reports if Cinema4D models being incorrect recently - maybe related to #15287 and #15097 and possibly happening since I switched to calculating transforms according to the spec in #14933.

@pikilipita could you check those issues and if your issues with the Cinema4D model seem related to those, post the model there?

Otherwise please make a new issue titled "Issues with Cinema4D FBX models" and include the model there.

@pikilipita
Copy link
Author

pikilipita commented Dec 3, 2018

Thanks, not too sure if they are related, as from my side I only see issues with animated models.
I created a new issue: #15358

@mrdoob mrdoob added this to the r100 milestone Dec 11, 2018
@callmegaga
Copy link
Contributor

I test on r99 + fbx loader at r96 and add model.normalizeSkinWeights().The model is OK.

@mrdoob
Copy link
Owner

mrdoob commented Dec 18, 2018

@mrdoob Would it be not better to call SkinnedMesh.normalizeSkinWeights() in all loaders that produce skinned meshes right now? I'm afraid we are going to have more support cases like this one...

Well, this change made me learn that models for GLTF files are supposed to have normalized skinweights so the computing would be redundant in that case. I would prefer to just fix FBXLoader instead.

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 19, 2018

I would prefer to just fix FBXLoader instead.

Okay, then let's do this selectively per loader if necessary 👍

@looeee Do you want to make the change for FBXLoader?

@looeee
Copy link
Collaborator

looeee commented Dec 21, 2018

@looeee Do you want to make the change for FBXLoader?

Looks like you beat me to it! 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants