[TUTORIAL] Bone Weight Copying Civ 4 Units into Civ 5 using blender

Ekmek

on steam: ekmek_e
Joined
Aug 7, 2002
Messages
6,111
Location
San Diego, California
This Tutorial is to help speed up the blender rigging process. It assumes that you are familiar with Deliverator's "Getting Civ 4 Units into Civ 5 - Full Conversion" or Wolfdog's "Convert Civ 4 units to Civ 5 "


Step 1:
Export your Civ4 Mesh as an obj files using nifskope (picture below) OR import into blender and export as a waveform.obj file. I use OBJ so I don't have multiple skeletons around.



Step 2:
Import the wave object.



Step 3:
Select the mesh in scenes viewer



Step 4:
Resize and rotate if need be


Step 5:
line up your objects.
I DIDN'T DO IT HERE FOR BREVITY SAKE BUT LINING UP CLOSELY TO THE MESH HELPS MAKE THE RIGGING MATCH BETTER


Step6:
select the objects with shift RIGHT CLICK. NEW mesh first then the rigged old one second.



Step 7:
Go to scripts->objects->bonewight copy
YOUR NEW MESH MUST HAVE NO VERTEX GROUPS FOR THIS TO WORK

NOTE SELECTING 2 or 3 APPEARS TO HELP




step 8:
Check rigging. It may be trial an error as you test the animations and you may have to rerig some parts but this should do 70-80% of the rigging work. 3 or 4 is good.






NOTE: to remove vertex groups from your new mesh.
Select your new mesh (they must still be separate at this point).
Go to where the vertex names are in the left-bottom corner.
there is a delete button there. just keep pressing that until its empty.
Be careful not to delete the vertex groups of the old mesh.



--------------
Ok, I know it's real rough. try it out so I can see where I need to add detail
 
Reserved 1
 

Attachments

  • 2exportobj.jpg
    2exportobj.jpg
    96.2 KB · Views: 2,945
  • 3.importobj.jpg
    3.importobj.jpg
    170.5 KB · Views: 1,036
  • 4selectobj.jpg
    4selectobj.jpg
    65.3 KB · Views: 167
  • 7_resize and rotate.jpg
    7_resize and rotate.jpg
    86.3 KB · Views: 1,061
  • 6select mesh.jpg
    6select mesh.jpg
    137.6 KB · Views: 966
  • 5importsettings.jpg
    5importsettings.jpg
    90.6 KB · Views: 901
  • 9objectmode select.jpg
    9objectmode select.jpg
    160.8 KB · Views: 919
  • 10scriptswindow.jpg
    10scriptswindow.jpg
    129.8 KB · Views: 836
  • 11boneweight copy.jpg
    11boneweight copy.jpg
    157.4 KB · Views: 824
  • 12ok.jpg
    12ok.jpg
    91.4 KB · Views: 791
I made my first unit using this method here. Definitely a time-saver. :)

BTW, in step 7 you mean "YOUR NEW MESH MUST HAVE NO VERTEX GROUPS FOR THIS TO WORK" rather than "VERTICES".

Also setting the quality for the Bone Weight Copy to 2 or 3 helps.
 
Civitar said:
In your tutorial it says that the new mesh must have no vertex groups for bone weight copying to work. I've managed to get as far as the copying, but then it says that more than one of the selected meshes has vertex groups. Obviously this means that my new mesh has vertex groups. My question is, how do I get rid of the vertex groups in the new mesh? Thanks!

select your new mesh (they must still be separate at this point) and go to where the vertex names are in the left-bottom corner. there is a delete button there. just keep pressing that until its empty. Be careful not to delete the vertices of the old mesh.
 
the bone weight copy is really an time-saving,magical feature of blender.
but what can i do when there are still weights-problems in game,and now i want to
correct the weights in blender ?

currently the unit have deformations when the unit moves or fight.......
 
this leader guide is great ! thanks ! now i know what you mean and what to do,but test it in game
for every little change i made is much time-consuming.

can i see in blender whether the model moves correctly with the animation ?

sended you a friend request on steam .
 
sadly, in-game is the only way to do get the best view of it animating unless you have the sdk. Maybe someone else knows how.

You can run the animations in Granny Viewer too. You just need to open and re-save the vanilla animations that you want to test. Then you can open your model .gr2 and simply drag and drop the animation .gr2 onto to it to play the animation.
 
Top Bottom