is there a system in unity, or has someone made one, that can stitch together characters out of multiple different parts ?
For example… one skeleton and animation…
but then 10 of each body part has been built…
a set of heads, t-shirts, jackets, pants/skirts, gloves, boots etc… to create a large number of varied characters from 1 animation set.
Has anyone come up with a way to overlay different skins onto a skeleton and stich them together seamlessly ?
First, I created a model with every limb a detachable object that has the same animation. Inside Unity, I imported animation in each of the nodes as opposed to at the root, so the animation plays on each of the respective parts separately. This way, I could just create a new limb, weight it with the bone that has the animation inside the modeling app, and then mix and match as necessary by script. This took a whole ton of work, so I tend to avoid it.
Second, I created a solid model that had different textures for different sets. It worked, but the customization was a little less.
You could theoretically use a solid mesh with multiple materials as well, but that would multiply its render time.
thanks GS, yeah the first option sounds closest to what we’d need. Though indeed will be a lot of work.
So if you wanted to build 10 different kinds of shoes, boots and pants.
would you build 10 cloned source characters in max/maya that use the same skeleton. but then only import the boot/leg, from say, the knee node and down, in the hierarchy ?
Check this thread here. I got it all working with his scripts quite easily.
I did have a bug where some of the objects verts won’t stitch properly, they look like they are stuck to the ground, but in a standalone build of the scene it will work fine.
Art wise on this setup I had our artists create each part individually and had them skinned to the same skeleton, but only exported one part a time like you said. As long as they use the same bone hierarchy you shouldn’t have any issues applying animations.