Hey, I’ve spent almost a week trying to solve it, but I am running out of options, and I have to ask the community for help.
I first encountered the issue while exporting my character with animated corrective blend shapes. The animation works fine, but as you can see on the screenshot the shading is completely broken.
I’ve tried to solve the issue, but it didn’t get me anywhere, so I’ve decided to go with a simplier setup - setting up the blend shapes on a basic cylinder. The setup is simple: 3 bones, 2 of which influence the mesh, classic linear skinning, corrective blendshape made over mesh deformed by animation.
I did my testing on 3 slightly different setups :
a) a cylinder with default Maya smoothing;
b) a cylinder with soft/hard edges manually assigned;
c) a cylinder with soft/hard edges made using the script Maya unlock normals without destroying smoothing information — polycount (doesn’t really make a lot of sense in this case, but my character is made in Max, so might be useful in that case. An).
As you can see on the screenshot, the shading breaks too. It is not that obvious on static image, but when you move around it looks totally wrong.
I have tried a lot of stuff, and none of it works, am I missing something? I feel like it should be much simplier and I am missing something obvious, but can’t put my finger on it.
What is correct pipeline that works for you guys?
Or maybe I am misunderstanding blend shapes in animation, and they should be used for very minor corrections? They seem to work fine when I do extremely simple modifications, like ribcage expanding on breathing in, but in cases like fixing the elbow when the skinning can no longer hold the shape it just breaks.
What I have tried so far:
- Countless combinations of checkboxes (like export / import smoothing groups, import normals, import normals and tangents, etc.) both on export and import.
- Different software versions I have available at work and at home: Maya 2018 and 2019, UE 4.22.3 and 4.23.0, FBX ver. 2011, 2018, 2019.
- In Maya I’ve tried different combinations of locked and unlocked vertex normals, soft and hard edges, even used a script I found to convert locked vertex normals to soft and hard edges: Maya unlock normals without destroying smoothing information — polycount
- Tried making corrective blend shapes using sculpting, and tried with only moving vertices by manipulator (thought maybe sculpting does something to vertex normals). Used shape editor, and also tried manually making blend shapes. I even went as far as made whole pose as a blend shape, but it didn’t help too…
- Changed evaluation order so the blend shape is computed before the skin cluster. Though Unreal doesn’t care and evaluates morph target after the skin no matter how I set it up in Maya. But it doesn’t help too as I see shading issues anyway.
- I’ve lost track of what else I did, so I am out of ideas on how to fix it.
Thanks for any advice or suggestions