- Home /
The question is answered, right answer was accepted
Blendshapes freeze rendering under certain conditions [2018.3.0b8]
I've been working with blendshapes in the 2018.3 beta for a character creation system similar to what you expect to see in Bethesda games.
The problem is I'm unable to use the blendshapes on my hair models because it freezes all rendering, both in-game and Unity UI, see video.
WHAT I'VE FOUND OUT SO FAR:
This happens when the hair's skinned mesh renderer has any blendshape values that aren't zero (but sometimes it won't happen)
The models and blendshapes work on their own, just not when in the same scene as the person
Freezes can be stopped by disabling either the hair SMR or all other SMRs (person and clothes)
The framerate is barely impacted and keeps running in the blind (& UI elements still work)
Reloading the exact same character will sometimes help and sometimes not
Disabling LOD will sometimes help and sometimes not
Any attempts to help will be greatly appreciated.
Answer by Dixiklo9000 · Nov 26, 2018 at 01:58 PM
Found a workaround - baking the mesh with blendshapes applied. So after changing the blendshapes just add
Mesh hairMesh = new Mesh();
hair.skinnedMeshRenderer.BakeMesh(hairMesh);
hair.skinnedMeshRenderer.sharedMesh = hairMesh;
Follow this Question
Related Questions
Unity Locks up when pulling changes from Collaborate 2 Answers
Unity auto unassigned skinned mesh render variables on Play 1 Answer
help Skinned Mesh Renerer !!,help Sinned Mesh Renderer ! 0 Answers
Adjust bones transforms to follow blend shapes? 0 Answers
Are there any performance benefits to non-skinned characters? 0 Answers