Hi everyone, thanks for taking the time to try and help me!
I have a character model to which I want to apply clothes. However, the difficulty is that the clothes should deform with the character model so I cannot simply use sockets - for example I would like to apply a uniform to the chest. To further complicate this, the clothing should be swappable for legs, arms, head etc which means I cannot simply have a load of rigged characters and swap between them. I think I need to use some sort of modular character system, but I am finding it very difficult.
I have been able to make some progress using the set master pose blueprint, however the individual meshes are not behaving correctly (see image). If anyone could help out or point me in the correct direction it would be much appreciated.
I too am I interested if there is a proper way to do this. We did do this but didn’t test the rigging (because it was a cowl for the head).
Our steps were (ill use your uniform as an example). Rig the Uniform to certain bones of the character and weight them so they deform like the character itself. Export just the Uniform with the bones etc…
Then when you import them into UE4. Import them as Skeletal mesh but instead of letting it create the skeleton select your Characters skeleton. This will work because the bone names etc… are the same.
Then attach the uniform to your character via a socket. Then play an animation. Unfortunately we didn’t have an animation for the head so couldn’t tell if it deformed with it. But it should do because the animation drives the characters skeleton and the Uniform is using that skeleton. The only problem we have with this way is when you get round to Apex cloth the cloth passes through the character because you can’t set up collision in Apex tool due to it only being the uniform not the whole character.
If you want easy Blueprint code to attach the uniform to him via socket, first set up the socket. You can put the Uniform skeletal mesh into a Blueprint (parent Actor) this gives you more options to add stuff to just the Uniform not character etc… Then in your Character BP on Event Begin Play. ‘Spawn actor from class’, select UniformBP then plug the actor from spawn actor node to ‘Attach to’ and get Mesh and plug that into ‘attach to’ Parent node and specify the socket name. This means on Beginplay it will attach the Uniform to the mesh.
I have made some progress using the set master pose blueprint, I found it better than using sockets. There is a really good video on this topic available here: UE4 How to Synch Animated Armor - YouTube
For now I am having some problems with the weights of clothes
I’m assuming the weighting of your clothes are done in your 3D program. Please re-read my post it will help you, specifically this part…
Our steps were (ill use your uniform as an example). Rig the Uniform to certain bones of the character and weight them so they deform like the character itself. Export just the Uniform with the bones etc…
Then when you import them into UE4. Import them as Skeletal mesh but instead of letting it create the skeleton select your Characters skeleton. This will work because the bone names etc… are the same.