We are trying to create skinned mesh models that have swappable clothing in our game, so far I've been able to figure out bones issues, single mesh skins from asset bundles on the fly, partial animations, and how to automate character structure through our game server database.
Here is the problem I'm running into. Currently it seems that when swapping out mesh that has a different poly count than the original that there is model deformation that is occurring. I'm not sure whats exactly causing the problem but it almost seems like the vertices want to be bound to specific other vertices on the model. I've been working with our artist and we are drawing blanks on this. We are using a non-biped rigs out of 3DSMax. Meshes attached to single bones don't seem to have any issues (but this might not be related) it also might be that these meshes are the least altered (ea have the same poly count)
So my question is, what tips does the community have on model building when you are planning on swapping meshes on a skinned mesh character, especially when trying to avoid model deformation?
So working with our 3D Modeler we found that what you need to do is first create a base model, then you can add in your new mesh component (baggy pants, jacket) then use the "Skin Wrap Modifier" in 3DS Max. You need to make sure that when its imported into unity that the component is a skinned mesh renderer. You can do this by exporting out at least two sections and making sure the bones are exported as well.
Make sure that the objects you’re trying to swap are using the same influences NO MORE, NO LESS.
If you’re in a situation where you’re trying to swap objects that use different influences, you will need to ensure that they have at least 0.001 influence on the bones it doesn’t have.
For instance, if you’re swapping a tank top with a long sleeve shirt, you will need to pick some verticies on the tank top to have 0.001 influence of the upper arms and forearms so that your mesh doesn’t try to fill the influences with other things. Reason being, some softwares (Maya in my case) by default delete un-used influences on FBX export.