Hey,
I’m using blender to design a pc game. What I’m trying to do is enable the player to exchange various pices of clothing, armor, ect, on this his or her character. Just like many other game allow the player to wear whatever shirt, with whatever pare of pants they might find laying around in the levels they’re playing.
I can't figure out how this is done. I have already modled a basic human. So do I now create a libaray of different pices of clothing, then load whatever arrangment onto the body? And if so, after I rig and animate the character, how do I get to clothing to deform, and move with the body? I already know how to swap uv textures, but somtimes the armor, such as the shoulder guards, are really different shapes, not just different colors and textures.
So, if anyone knows anything about this, I would <i>love</i> to know how.
The actuator, visibility from the logic bricks might help u.
I think they rig all clothes to the same armature as the body and then when u wear shirt 2 make shirt 1 invisible and shirt 2 visible
I haven’t exactly tried this myself but give this a shot
wait, I’m not sure if you know the basics of modeling though
I won’t tell you exactly how to do everything because it could be helpful if you have to look some things up on your own maybe
For shirts:
rig your character so he moves to your satisfaction
Select the area of his body where his shirt is going to cover
seperate these faces and make a new object from them
alter this new object to become a new shirt
repeat for however many shirt he will wear
then finally, remove his actually naked torso area and form a new object from it and name it naked.shirt or something
well anyways, have a python script ready that can take a certain property name and then make it so that ‘property name X’ will coincide with each shirt’s name that you made
Ex. You’d have a property called ‘naked.shirt’
and then, if you select to load that property your python script should be written so that it will tell the game engine to load an object by that name and thus replace whatever object had been there before it
Thus changing his shirt
in my experience if you duplicate and remove faces from a rigged character, they will still retain their vertex assignments so every piece of clothing should deform just like his naked body had before.
well I think that could work, I haven’t actually tried it so far
All you have to do is put the shirt etc. on the body were u want it and put it in the group u want it to deform or move with. Then make an always sensor and a invisible actuator. Example. Colission with tresure chest. Collision – and --visible