Bully-Board

Bully Modding Section => Bully Modding => TUTORIALS => Topic started by: Rambo7 on May 10, 2015, 12:38:20 PM

Title: [Tutorial] Ped Rigging
Post by: Rambo7 on May 10, 2015, 12:38:20 PM
Note: I think I will make a video about this
and if you guys want to make a video using my method here, be my guest but please make a link reference to my tutorial thread here

Tools:
Note:
-I recommend you to watch this GTA SA rigging video first since bully rigging process with GTA rigging process is actually the same, the only difference is in the importing, exporting, shader (vertex paint), adding the finished model to the .nif file, and adding the texture to the .nft file
Note: Credit goes to the original video creator
Watch this rigging process (in the mediafire link below), from min 00:36 to 09:54,  it basicly will cover my tutorial from step 3 to step 6
Note: I uploaded the video in mediafire, because the original video already dead
http://www.mediafire.com/download/qhtnuz7scxpx7y7/%E2%96%B6+San+Andreas+Ped+Rigging+Video+Tutorial+-+YouTube.7z (http://www.mediafire.com/download/qhtnuz7scxpx7y7/%E2%96%B6+San+Andreas+Ped+Rigging+Video+Tutorial+-+YouTube.7z)
and Here is another GTA SA, if you want to watch it:
https://www.youtube.com/watch?v=8m7uV9eliIU (https://www.youtube.com/watch?v=8m7uV9eliIU)

Step:
1. Prepare the model that you want to rig (The Mesh) in this eg. It is Tommy (its 3d model and texture file)
(http://i1350.photobucket.com/albums/p766/ramboboy7/1a_zpsefu7ylt3.png)
and the bully ped model that we will rig to (The Donor) in this eg. It is TO_Business1 (its .nif/model & .nft/texture file). Use IMG Tool 2.0 to extract the model from Bully:SE World.img file
(http://i1350.photobucket.com/albums/p766/ramboboy7/1b_zpscwowviog.png)
Note: I will use the term “the mesh” and “the donor” for the rest of the tutorial

2. Open 3DS Max, Import “the mesh” model and import “the donor” model (its .nif file), for the nif import setting just use the default setting cause it doesn’t really matter.
(http://i1350.photobucket.com/albums/p766/ramboboy7/2a_zpsx4trox7n.png)(http://i1350.photobucket.com/albums/p766/ramboboy7/2b_zpstwpoucdr.png)
(http://i1350.photobucket.com/albums/p766/ramboboy7/2c_zpsyriyzseu.png)

3. Now we need to make “the mesh” to match “the donor” from its rotation, scale, and translation
Note: change your view from perspective to orthographic (if you haven't set it), it will help you easier to transform (rotation, scale & translation) “the mesh” to match “the donor”
(http://i1350.photobucket.com/albums/p766/ramboboy7/3.1_zpsijubbylv.png)

-Click “the mesh” and rotate it until it match “the donor”, for rotate just click “the mesh” and press “E Key” on your keyboard. There is two way to rotate “the donor”, u can use either one of this method (method a or b)
Note. You can press the “Q Key” on your keyboard to return to  “select object”
a. See there’s like a round thing in the middle of “the mesh”, it is called the rotate manipulator. It has X,Y, Z plane, so just click and drag to rotate “the mesh” until match “the donor”. Note: you can change your view by clicking that box at the top right corner (see the pic below).
(http://i1350.photobucket.com/albums/p766/ramboboy7/3.2_zps92uln7kx.png)
b. another way is, see the rotation panel below (see the pic below), there are X, Y, Z, change the value that X, Y, Z to rotate “the mesh”
In my case, I put the X = 90 to rotate “the mesh”
(http://i1350.photobucket.com/albums/p766/ramboboy7/3a_zpscdkxpazs.png)

-Click “the mesh” and scale it until it match “the donor”, for scale just click “the mesh” and press “R Key” on your keyboard. There is two way to scale “the donor”, it basicly just like the rotation that I already explained before (by scale manipulator or scale panel below), in my case I scale it from 100 to 50
(http://i1350.photobucket.com/albums/p766/ramboboy7/3b_zpsurgaapfc.png)

-Click “the mesh” and move it until it match “the donor”, for move just click “the mesh” and press “W Key” on your keyboard. There is two way to scale “the donor”, it basicly just like the rotation that I already explained before (by move manipulator or move panel below)
(http://i1350.photobucket.com/albums/p766/ramboboy7/3c_zps9ekfvof1.png)
Note: you can change to the wireframe view to help you match "the mesh" with "the donor"
(http://i1350.photobucket.com/albums/p766/ramboboy7/3d_zpsmhfeeddg.png)

4. If all the transformation (rotation, scale & translation/move) already match, then we need to transform (rotate, scale & move) “the mesh” body part that is still unmatch with “the donor” body part, in this eg. It is “the mesh” hand & leg.
(http://i1350.photobucket.com/albums/p766/ramboboy7/4a_zps5v96y8ji.png)
a. Enter the “Edit Mesh” mode,
-Click “the mesh” then click the “Modifier List” option in the right side panel, then search for “Edit Mesh” modifier.
(http://i1350.photobucket.com/albums/p766/ramboboy7/4b_zpsqgjxwplu.png)

-Then LMB the “Edit Mesh” and select Collapse to
(http://i1350.photobucket.com/albums/p766/ramboboy7/4b1_zpsk1gg6ufx.png)

-Click the “Editable Mesh” and below the selection click the “Vertex” option. You will notice that the “the mesh” model shows up many blue dots, that blue dots is called vertex.
(http://i1350.photobucket.com/albums/p766/ramboboy7/4c_zpsvnlpkcky.png)

b. I will start from “the mesh” hand.
Note: we will only use “Rotate” & “Move” transformation
-Press the “E Key” to enter the “Rotate” transformation, then click and drag your RMB (Right Mouse Button) to select “the mesh” hand vertex
(http://i1350.photobucket.com/albums/p766/ramboboy7/4e_zpstvmx9txf.png)
-the red dots is the selected vertex, rotate it until it match the rotation of “the donor” hand
(http://i1350.photobucket.com/albums/p766/ramboboy7/4f_zpsnx9qa7tw.png)

-Press the “W Key” to enter the “Move” transformation
-With “the mesh” hand vertex still selected, move it until it match the translation of “the donor” hand
(http://i1350.photobucket.com/albums/p766/ramboboy7/4g_zpsqfbb0bqk.png)

c. do the same transformation procedure (rotate & move) for the other hand, and the two legs
Note: for advanced user, you can transform (rotate & move) both of the “the mesh” fingers to create a better rig.
(http://i1350.photobucket.com/albums/p766/ramboboy7/5_zps4yhr4gou.png)

5.   After “the mesh” & “the donor” transformation match perfectly, now we can rig “the mesh”
-Exit the vertex mode by click again the “vertex” option at the right side panel below “selection” to turn off the vertex mode.
-Click “the donor” first, then in the right side panel click “editable mesh”. If there is warning shows up just click yes.
(http://i1350.photobucket.com/albums/p766/ramboboy7/5a_zpszoofqddp.png)

-At the right side panel below “selection” click the “vertex” option. Then select all “the donor” vertex by pressing “CTRL+A” on your keyboard
(http://i1350.photobucket.com/albums/p766/ramboboy7/5b_zpss6i2jnq7.png)

-then scroll down the right side panel until you meet “edit geometry” and below it there is “attach” option, click “attach” and select “the mesh”.
After that “attach options” window will show up, just click Ok, then press “Delete” on your keyboard to delete “the donor”. And now “the mesh” have a bone
(http://i1350.photobucket.com/albums/p766/ramboboy7/5c_zps7evg1d0o.png)

6. But please note that the rig still contain bug, so we will clean it up.  This process called “Weight Painting”
Weight Painting refers to giving a vertex some weigth that will be influence by the mesh bone.
Sorry guys, I didn’t write anything about this one, since it Is really hard to explain this, just using a mere word. So watch the GTA Rigging video above (that I attach to the mediafire) from min 04:06 to 09:54.

7. Giving “the mesh” a shader, so it will not look contrast ingame
-Change back to “realistic view” by pressing “SHIFT+F3”
-Click “the mesh” , then click the “Modifier List” option in the right side panel, then search for “Vertex Paint” modifier.
(http://i1350.photobucket.com/albums/p766/ramboboy7/6_zpsboc1m8mt.png)

-The “Vertex Paint” window will show up, then click the “Color Pallete”.
The “Color Selector” window will show up, set the color value for “Red, Green & Blue”. to 127 (the middle value), then click Ok.
(http://i1350.photobucket.com/albums/p766/ramboboy7/6a_zps0iq04adu.png)

-Back to the “Vertex Paint” window, click the “Paint All” to set the vertex paint to “the mesh”. After that just close the “Vertex Paint” window.
(http://i1350.photobucket.com/albums/p766/ramboboy7/6b_zpssr0kpmkx.png)

8. We are going to export “the mesh” now
-Click “the mesh” and Export “the mesh” model. Choose a directory to save and set the save as type is “Netimmerse/Gamebyro (*.KF,*.NIF). In this eg. I named my modded rig “Tommy”
(http://i1350.photobucket.com/albums/p766/ramboboy7/7a_zpsdjqrijzq.png)(http://i1350.photobucket.com/albums/p766/ramboboy7/7b_zpsbznj04lz.png)

-Use this export setting below, change the “game” setting to “user”, change the version to 20.3.0.9 and please make sure you tick and untick according to these setting. Then click “Export”.
(http://i1350.photobucket.com/albums/p766/ramboboy7/7c_zpsdpqjg6gg.png)

9. Since 3DS Max don’t have any proper .nif Bully:SE version importer/exporter, that means, the modded rig .nif file can’t work properly ingame. But don’t worry, there a way to overcome that problem.
a. First open both:
-The modded rig (“Tommy.nif”/ “the mesh” that we export out of 3DS Max before) and
-The unmodded bully ped (“TO_Bussiness1.nif”/ the original unmodded Bully:SE ped)
Note. If you had problem to open the second .nif file in the nifskope, just press "CTRL+N" to open a new nifscope window and click "load" in nifskope and select the second .nif file
(http://i1350.photobucket.com/albums/p766/ramboboy7/8a_zpsrnhiktce.png)

b. Go to the “tommy.nif” file  first, in the nifskope:
-Click the mesh, which is tommy.
-It will highlight the “NiTriShape” in blue in the “block list”
-Then in the “NiTriShape”, spread the nif tree list by clicking the “+”.
-It will shows up a lot of node (NiMaterialProperty, NiTexturingProperty, NiTriShapeData, NiSkinInstance, etc)
-Delete all the properties (for eg. Click the NiMaterialProperty then press “CTRL+Delete” to delete the properties), and only leave the “NiTriShapeData and NiSkinInstance”
(http://i1350.photobucket.com/albums/p766/ramboboy7/8b_zpso6fayu4h.png)
(http://i1350.photobucket.com/albums/p766/ramboboy7/8c_zpskxcgvp4d.png)

-Copy the “NiTriShape” by clicking the “NiTriShape”, then press “CTRL+C” or you can click RMB and select the “Copy Branch”. We will paste it to the unmodded original bully ped
(http://i1350.photobucket.com/albums/p766/ramboboy7/8d_zpsjy0nwyha.png)


c. Go to the “TO_Bussiness.nif” file (the unmodded original bully ped) that we already open before:
-Click the mesh, which business1
-It will highlight the “NiTriShape”. Above the “NiTriShape”, there is a “NiNode”.
-Click the “NiNode” and press “CTRL+V” to paste Tommy “NiTriShape” that we copy before or you can click RMB and select the “Paste Branch”.
(http://i1350.photobucket.com/albums/p766/ramboboy7/8e_zpspdafykkl.png)

-There will be two “NiTriShape” shape, the bully original ped “NiTriShape” and our modded rig/tommy “NiTriShape”
-Now we need to copy all properties from the bully ped “NiTriShape” except the “NiTriShapeData and NiSkinInstance” to our modded rig/tommy “NiTriShape”, by using CTRL+C for copy and CTRL+V for paste.
(http://i1350.photobucket.com/albums/p766/ramboboy7/8f_zpszxumwixs.png)

-After we finish copying all the properties to our modded rig/tommy, delete the bully ped “NiTriShape” cause we don’t need it anymore. And it will just leave our modded rig/tommy with the correct properties.
(http://i1350.photobucket.com/albums/p766/ramboboy7/8g_zpsgmslz2gx.png)

10. Assigning texture name in the .nif file, and still in "TO_Bussiness.nif” file,
Note: Bully:SE game can only read .tga file texture. if you have a texture for .eg .jpg or.png change it first in the photoshop, save as to .tga file texture.
Note: I only recommend you to use only photoshop when you converting your image
-In the “NiTexturingProperty”, spread the nif tree list by clicking the “+”.
-It will shows up a 3 “NiSourceTexture” ( _d.tga, _s.tga, _n.tga)
_d.tga = diffuse map/ this is the full color texture of the mesh
_s.tga = specular map/ it defines a surface shininess/shiny
_n.tga = normal map/ it stimulate the impression of a 3D surface
(Ps. You actually just need to understand the diffuse map, if you have no idea what is the other map, it is okay)
(http://i1350.photobucket.com/albums/p766/ramboboy7/9a_zpsscofptmk.png)

-First we need to change the _d.tga or diffuse map name to our “the mesh/tommy” texture name, look for the texture. In this example the diffuse texture name is “tommy_d.tga”
-In the  _d.tga “NiSourceTexture” look at the “Block Details” below, scrool down until you found  “File Name” and beside it there is a purple flower with the _d.tga name. Click RMB and select “Txt Edit String Index” and change the name to “the mesh/tommy” texture
(http://i1350.photobucket.com/albums/p766/ramboboy7/9b_zpsgrcxsiwc.png)
(http://i1350.photobucket.com/albums/p766/ramboboy7/9c_zpscs0zo8if.png)

-Change the name of the _s.tga into “skin_s.tga” and _n.tga into “skin_n.tga”, using the same method, like how to change _d.tga name. and the final result will be look like below picture. After that save the nif file (CTRL+S).
(http://i1350.photobucket.com/albums/p766/ramboboy7/9.0_zpsriemrwtn.png)

11. Importing all of your texture file (_d.tga,_s.tga,_n.tga) to the .nft file:
-open the original bully ped .nft file, in this eg. it is "TO_Business1.nft". Note: if you had problem to open the .nft file click RMB and select the “open with” nifscope.
-click and RMB the NiSourceTexture and select “choose”.
-Find the_d.tga texture, in this eg. It is tommy_d.tga.
(http://i1350.photobucket.com/albums/p766/ramboboy7/9d_zpsqtyffwb3.png)

-Click and RMB the NiSourceTexture again, and select “Embed”. You will notice that the “NiPixelData” will show up, delete the “NiPixelData’ (CTRL+Delete), since we don’t need it.
(http://i1350.photobucket.com/albums/p766/ramboboy7/9e_zpsobutz5fk.png)

-Do it the same step for all the other file (skin_s.tga & skin_n.tga (note: both this shader texture can be downloaded above of this the tutorial step, in the tools section name “Rambo7 Universal Shader”).
Embed the texture and delete the “NiPixelData”  if it show up.

-After you finish embed all the texture save it (It must be save in the .nft format)
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on May 10, 2015, 12:40:30 PM
Just as i promised before here is the tutorial to rig a ped in bully
ps. sorry guys for the huge ass picture, I just want to make sure you guys can see this thing clearly, and btw the spoiler tag is not function well, so I can't use it
ps2. if you guys have any questions just post it here, but please note since I am not always active in this forum that means I can't instantly answer your question, so just be patience, if I see it and I am around the forum I will try to answer it or maybe another member in this forum will help to answer your question
Title: Re: [Tutorial] Ped Rigging
Post by: DaBOSS54320 on May 10, 2015, 01:08:05 PM
Thanks, it seems like a great tutorial.
"sorry guys for the huge ass picture"
*you're welcome for the huge ass picture
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on May 11, 2015, 07:51:35 AM
Yeah, thanks
and btw I think, I will make other supplementary tutorial
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on June 13, 2015, 02:31:40 PM
To much crap for adding a small outfit onto a pedmodel.
Fuck.
Thanks for your nice word
I don't know what your problem really is and I think you should read this tutorial carefully before posting some pointless post and flaming my thread
This tutorial is about how to change a whole bully ped model with other 3d ped model (eg. gta ped model, or other game ped model), or usually this is called rigging.
This tutorial is not about adding some little thing to the pedmodel
I am just trying to be nice here and sharing what I found and my knowledge with the others, yet you try to flame me for complete no reason
If you know a better way, maybe you should make some tutorial about it
Ps. I actually hate to make such a post like this, but I decided to make it, because I found your post is quite provocative
Title: Re: [Tutorial] Ped Rigging
Post by: jonathanarnold on June 28, 2015, 01:33:38 AM
I get problem when I finished the rigging
Title: Re: [Tutorial] Ped Rigging
Post by: Masterreys100 on June 28, 2015, 08:30:47 AM
Good tutorial #Helpful
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on June 28, 2015, 08:55:00 AM
@jonathanarnold,
Have you copy all the nitrishape from that jacket.nif into a new S_Sweater5.nif (unmodded .nif file) or have you follow step 9?

Can you give me much more detail about what is the problem, cause I still don't know what it is
Maybe u can send me your rig (the one that you export out from 3ds max), and I can look what is wrong with that

Ps. I want to make a video about this but still have no idea what software should I use (maybe frap?) and how to compress my video file to minimum size like 40-100Mb (since I got a limited bandwidth)
Title: Re: [Tutorial] Ped Rigging
Post by: jonathanarnold on June 28, 2015, 09:13:09 AM
@jonathanarnold,
Have you copy all the nitrishape from that jacket.nif into a new S_Sweater5.nif (unmodded .nif file) or have you follow step 9?

Can you give me much more detail about what is the problem, cause I still don't know what it is
Maybe u can send me your rig (the one that you export out from 3ds max), and I can look what is wrong with that

Ps. I want to make a video about this but still have no idea what software should I use (maybe frap?) and how to compress my video file to minimum size like 40-100Mb (since I got a limited bandwidth)

this is the file,
Ps. I can't copy all the nitrishape because I get error when I doing that
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on June 28, 2015, 09:46:57 AM
I already tried to copy it, and get this "Nif Version Differ" error
This error happpened because you use the wrong exporting setting when you try to export the model.
Read again at Step 8 and follow all the setting there including the nif version, change it to the version 20.3.0.9
Please read my tutorial carefully and follow all the step

and please note that for jimmy/player rigging it has a little difference with ped rigging
any of Jimmy/player .nif file for eg. S_Sweater5.nif, it can only contain 1 single nitrishape, since your rig got 2 nitrishape (which is jimmy hand and johny jacket), you need to distribute it
for eg.
-Jimmy hand will be copy to S_Wristband1.nif (this is jimmy wristband accessory
-Johny jacket will be copy to S_Sweater5.nif
If you copy all the rig nitrishape (jimmy hand & johny jacket) to only 1 .nif file for eg. S_Sweater5.nif, it will cause a texture error when you load in the game
Title: Re: [Tutorial] Ped Rigging
Post by: jonathanarnold on June 29, 2015, 02:30:46 AM
why the clothes become weird?
this is the picture

Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on June 29, 2015, 08:33:52 AM
That is a texture problem, I think you attach the wrong texture to .nft file
Send me the .nif & .nft file, so I can know what is wrong with that
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on July 10, 2015, 08:04:11 AM
Few days ago, a dude named cautious, asked me about this through PM,
and I feel need to repost it here since I believe it could help other member that maybe will face the same problem
(http://i61.tinypic.com/23rlapz.png)
this is basicly a texture problem
and the problem is, he wrongly put the texture name in the .nif (nitextureproperty)
His original texture name was Aaron_d and in the nitextureproperty he put it aaron_d,
The solution is, to put the texture name precisely in the nitextureproperty including the upper case/ capital letter
Title: Re: [Tutorial] Ped Rigging
Post by: MadmaN on July 10, 2015, 12:27:07 PM
Made this tut a sticky so people can find it easier. I myself have had quite a few people pm me as of late to teach them how to rig and now I can point them here since even though I know how to rig a 3d model, I have never tried this for Bully.
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on July 10, 2015, 02:25:29 PM
^ Ok, thanks for the sticky, man
Title: Re: [Tutorial] Ped Rigging
Post by: SWEGTA on July 10, 2015, 05:53:53 PM
This thread got really sticky all of the sudden!
Nice tutorial though. It's cool to see occasional new character gets brought into the game. I've thought about releasing characters that were used in my machinimas (like Tommy from Vercetti Stories, Davis from BullworthLess, Tim from Undead etc.)
Title: Re: [Tutorial] Ped Rigging
Post by: jonathanarnold on February 16, 2016, 07:19:14 AM
I had success for rigging, but I get this problem.



Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on February 16, 2016, 08:18:05 AM
Do you follow all the export settings?
Including changing the version to 20.3.0.9

and do you follow step 9, correctly?

And BTW, I guess, you have a relation with james004, garyvincent
Cause back then, I got PMs from you too, asking me a question with the same topic
http://www.bully-board.com/index.php?topic=23679.0 (http://www.bully-board.com/index.php?topic=23679.0)
Title: Re: [Tutorial] Ped Rigging
Post by: jonathanarnold on February 16, 2016, 08:27:01 AM
Do you follow all the export settings?
Including changing the version to 20.3.0.9

and do you follow step 9, correctly?

And BTW, I guess, you have a relation with james004, garyvincent
Cause back then, I got PMs from you too, asking me a question with the same topic
http://www.bully-board.com/index.php?topic=23679.0 (http://www.bully-board.com/index.php?topic=23679.0)

Same topic? lol, I don't know about that. I've been long time don't open my account, I really don't know anything. I have follow step 9.
Title: Re: [Tutorial] Ped Rigging
Post by: Rambo7 on February 16, 2016, 08:54:43 AM
My suspicion that you are james004 or garyvincent, it's because like you said it already, your last post is September 15, 2015
And you came out of nowhere asking me about this cloth rigging problem, and the guy named james004 just asked me about this
http://www.bully-board.com/index.php?topic=23679.0 (http://www.bully-board.com/index.php?topic=23679.0)

Like I said before, you can stop using multiple account to ask me about the same question, I will answer it if I know the answer
Alt account is prohibited in the board
(BTW, I have report it to the moderator, for them to check it out)
you fooled me once
(https://s-media-cache-ak0.pinimg.com/564x/1e/21/e2/1e21e2460d5f2758f8711a3aca4205cd.jpg)
I will still teach you, but please stop using your alt account, cause it break da rulez

Back to topic
I don't know what the problem really is, give me more detail about it
Do you copy the rigged nif into the new jacket.nif?


UPDATE:
A MESSAGE FROM THE MODERATOR

Some of them are duplicates, it is true. I verified them by IP.
–Dave
The PM says it all
(http://i2.kym-cdn.com/photos/images/original/001/060/108/57d.jpg)
Title: Re: [Tutorial] Ped Rigging
Post by: jonathanarnold on February 16, 2016, 09:47:51 AM
My suspicion that you are james004 or garyvincent, it's because like you said it already, your last post is September 15, 2015
And you came out of nowhere asking me about this cloth rigging problem, and the guy named james004 just asked me about this
http://www.bully-board.com/index.php?topic=23679.0 (http://www.bully-board.com/index.php?topic=23679.0)

Like I said before, you can stop using multiple account to ask me about the same question, I will answer it if I know the answer
Alt account is prohibited in the board
(BTW, I have report it to the moderator, for them to check it out)
you fooled me once
(https://s-media-cache-ak0.pinimg.com/564x/1e/21/e2/1e21e2460d5f2758f8711a3aca4205cd.jpg)
I will still teach you, but please stop using your alt account, cause it break da rulez

Back to topic
I don't know what the problem really is, give me more detail about it
Do you copy the rigged nif into the new jacket.nif?

I don't know anything man, this forum is getting lonely, unlike three years ago, if the member is reduced, it will be more quiet.
Title: Re: [Tutorial] Ped Rigging
Post by: A_Loe on December 28, 2016, 05:59:27 PM
Just as i promised before here is the tutorial to rig a ped in bully
ps. sorry guys for the huge ass picture, I just want to make sure you guys can see this thing clearly, and btw the spoiler tag is not function well, so I can't use it
ps2. if you guys have any questions just post it here, but please note since I am not always active in this forum that means I can't instantly answer your question, so just be patience, if I see it and I am around the forum I will try to answer it or maybe another member in this forum will help to answer your question
can it be rigged by doing the steps but using blender instead of 3ds max?
Title: Re: [Tutorial] Ped Rigging
Post by: Marvin on January 15, 2022, 12:11:16 PM
Note: I think I will make a video about this
and if you guys want to make a video using my method here, be my guest but please make a link reference to my tutorial thread here

Tools:
  • IMG Tool 2.0
    Use to exporting out your bully model (.nif) and texture (.nft)
    http://www.gtagarage.com/mods/show.php?id=63 (http://www.gtagarage.com/mods/show.php?id=63)
  • Nifscope
    Use to editing the .nif & .nft file
    http://niftools.sourceforge.net/wiki/NifSkope#Downloads (http://niftools.sourceforge.net/wiki/NifSkope#Downloads)
  • 3DS Max 2010-2012 (Ps. I use 3DS Max 2012)
    Use to rigging our ped
  • Niftools-max-plugins-3.7.1.fdef17d
    3DS Max Pluggin use to impor/export .nif file)
    Ps. Do not use 3DS Max nif script above ver. 3.7.1, because it may cause importing error for eg. "premature end of stream" error message
    http://www.mediafire.com/download/psguqtc2i7g9t4y/niftools-max-plugins-3.7.1.fdef17d.7z (http://www.mediafire.com/download/psguqtc2i7g9t4y/niftools-max-plugins-3.7.1.fdef17d.7z)
  • Rambo7 Universal Shader
    Use this for your ped shader texture, this shader will work perfectly with all your ped rig
    http://www.mediafire.com/download/wq1jdjys9knw94t/Rambo7+Universal+Shader.zip (http://www.mediafire.com/download/wq1jdjys9knw94t/Rambo7+Universal+Shader.zip)
  • Adobe Photoshop
    To convert your texture file that is not .tga file (for eg. .jpeg, .png and etc), into the .tga file
Note:
-I recommend you to watch this GTA SA rigging video first since bully rigging process with GTA rigging process is actually the same, the only difference is in the importing, exporting, shader (vertex paint), adding the finished model to the .nif file, and adding the texture to the .nft file
Note: Credit goes to the original video creator
Watch this rigging process (in the mediafire link below), from min 00:36 to 09:54,  it basicly will cover my tutorial from step 3 to step 6
Note: I uploaded the video in mediafire, because the original video already dead
http://www.mediafire.com/download/qhtnuz7scxpx7y7/%E2%96%B6+San+Andreas+Ped+Rigging+Video+Tutorial+-+YouTube.7z (http://www.mediafire.com/download/qhtnuz7scxpx7y7/%E2%96%B6+San+Andreas+Ped+Rigging+Video+Tutorial+-+YouTube.7z)
and Here is another GTA SA, if you want to watch it:
https://www.youtube.com/watch?v=8m7uV9eliIU (https://www.youtube.com/watch?v=8m7uV9eliIU)

Step:
1. Prepare the model that you want to rig (The Mesh) in this eg. It is Tommy (its 3d model and texture file)
(http://i1350.photobucket.com/albums/p766/ramboboy7/1a_zpsefu7ylt3.png)
and the bully ped model that we will rig to (The Donor) in this eg. It is TO_Business1 (its .nif/model & .nft/texture file). Use IMG Tool 2.0 to extract the model from Bully:SE World.img file
(http://i1350.photobucket.com/albums/p766/ramboboy7/1b_zpscwowviog.png)
Note: I will use the term “the mesh” and “the donor” for the rest of the tutorial

2. Open 3DS Max, Import “the mesh” model and import “the donor” model (its .nif file), for the nif import setting just use the default setting cause it doesn’t really matter.
(http://i1350.photobucket.com/albums/p766/ramboboy7/2a_zpsx4trox7n.png)(http://i1350.photobucket.com/albums/p766/ramboboy7/2b_zpstwpoucdr.png)
(http://i1350.photobucket.com/albums/p766/ramboboy7/2c_zpsyriyzseu.png)

3. Now we need to make “the mesh” to match “the donor” from its rotation, scale, and translation
Note: change your view from perspective to orthographic (if you haven't set it), it will help you easier to transform (rotation, scale & translation) “the mesh” to match “the donor”
(http://i1350.photobucket.com/albums/p766/ramboboy7/3.1_zpsijubbylv.png)

-Click “the mesh” and rotate it until it match “the donor”, for rotate just click “the mesh” and press “E Key” on your keyboard. There is two way to rotate “the donor”, u can use either one of this method (method a or b)
Note. You can press the “Q Key” on your keyboard to return to  “select object”
a. See there’s like a round thing in the middle of “the mesh”, it is called the rotate manipulator. It has X,Y, Z plane, so just click and drag to rotate “the mesh” until match “the donor”. Note: you can change your view by clicking that box at the top right corner (see the pic below).
(http://i1350.photobucket.com/albums/p766/ramboboy7/3.2_zps92uln7kx.png)
b. another way is, see the rotation panel below (see the pic below), there are X, Y, Z, change the value that X, Y, Z to rotate “the mesh”
In my case, I put the X = 90 to rotate “the mesh”
(http://i1350.photobucket.com/albums/p766/ramboboy7/3a_zpscdkxpazs.png)

-Click “the mesh” and scale it until it match “the donor”, for scale just click “the mesh” and press “R Key” on your keyboard. There is two way to scale “the donor”, it basicly just like the rotation that I already explained before (by scale manipulator or scale panel below), in my case I scale it from 100 to 50
(http://i1350.photobucket.com/albums/p766/ramboboy7/3b_zpsurgaapfc.png)

-Click “the mesh” and move it until it match “the donor”, for move just click “the mesh” and press “W Key” on your keyboard. There is two way to scale “the donor”, it basicly just like the rotation that I already explained before (by move manipulator or move panel below)
(http://i1350.photobucket.com/albums/p766/ramboboy7/3c_zps9ekfvof1.png)
Note: you can change to the wireframe view to help you match "the mesh" with "the donor"
(http://i1350.photobucket.com/albums/p766/ramboboy7/3d_zpsmhfeeddg.png)

4. If all the transformation (rotation, scale & translation/move) already match, then we need to transform (rotate, scale & move) “the mesh” body part that is still unmatch with “the donor” body part, in this eg. It is “the mesh” hand & leg.
(http://i1350.photobucket.com/albums/p766/ramboboy7/4a_zps5v96y8ji.png)
a. Enter the “Edit Mesh” mode,
-Click “the mesh” then click the “Modifier List” option in the right side panel, then search for “Edit Mesh” modifier.
(http://i1350.photobucket.com/albums/p766/ramboboy7/4b_zpsqgjxwplu.png)

-Then LMB the “Edit Mesh” and select Collapse to
(http://i1350.photobucket.com/albums/p766/ramboboy7/4b1_zpsk1gg6ufx.png)

-Click the “Editable Mesh” and below the selection click the “Vertex” option. You will notice that the “the mesh” model shows up many blue dots, that blue dots is called vertex.
(http://i1350.photobucket.com/albums/p766/ramboboy7/4c_zpsvnlpkcky.png)

b. I will start from “the mesh” hand.
Note: we will only use “Rotate” & “Move” transformation
-Press the “E Key” to enter the “Rotate” transformation, then click and drag your RMB (Right Mouse Button) to select “the mesh” hand vertex
(http://i1350.photobucket.com/albums/p766/ramboboy7/4e_zpstvmx9txf.png)
-the red dots is the selected vertex, rotate it until it match the rotation of “the donor” hand
(http://i1350.photobucket.com/albums/p766/ramboboy7/4f_zpsnx9qa7tw.png)

-Press the “W Key” to enter the “Move” transformation
-With “the mesh” hand vertex still selected, move it until it match the translation of “the donor” hand
(http://i1350.photobucket.com/albums/p766/ramboboy7/4g_zpsqfbb0bqk.png)

c. do the same transformation procedure (rotate & move) for the other hand, and the two legs
Note: for advanced user, you can transform (rotate & move) both of the “the mesh” fingers to create a better rig.
(http://i1350.photobucket.com/albums/p766/ramboboy7/5_zps4yhr4gou.png)

5.   After “the mesh” & “the donor” transformation match perfectly, now we can rig “the mesh”
-Exit the vertex mode by click again the “vertex” option at the right side panel below “selection” to turn off the vertex mode.
-Click “the donor” first, then in the right side panel click “editable mesh”. If there is warning shows up just click yes.
(http://i1350.photobucket.com/albums/p766/ramboboy7/5a_zpszoofqddp.png)

-At the right side panel below “selection” click the “vertex” option. Then select all “the donor” vertex by pressing “CTRL+A” on your keyboard
(http://i1350.photobucket.com/albums/p766/ramboboy7/5b_zpss6i2jnq7.png)

-then scroll down the right side panel until you meet “edit geometry” and below it there is “attach” option, click “attach” and select “the mesh”.
After that “attach options” window will show up, just click Ok, then press “Delete” on your keyboard to delete “the donor”. And now “the mesh” have a bone
(http://i1350.photobucket.com/albums/p766/ramboboy7/5c_zps7evg1d0o.png)

6. But please note that the rig still contain bug, so we will clean it up.  This process called “Weight Painting”
Weight Painting refers to giving a vertex some weigth that will be influence by the mesh bone.
Sorry guys, I didn’t write anything about this one, since it Is really hard to explain this, just using a mere word. So watch the GTA Rigging video above (that I attach to the mediafire) from min 04:06 to 09:54.

7. Giving “the mesh” a shader, so it will not look contrast ingame
-Change back to “realistic view” by pressing “SHIFT+F3”
-Click “the mesh” , then click the “Modifier List” option in the right side panel, then search for “Vertex Paint” modifier.
(http://i1350.photobucket.com/albums/p766/ramboboy7/6_zpsboc1m8mt.png)

-The “Vertex Paint” window will show up, then click the “Color Pallete”.
The “Color Selector” window will show up, set the color value for “Red, Green & Blue”. to 127 (the middle value), then click Ok.
(http://i1350.photobucket.com/albums/p766/ramboboy7/6a_zps0iq04adu.png)

-Back to the “Vertex Paint” window, click the “Paint All” to set the vertex paint to “the mesh”. After that just close the “Vertex Paint” window.
(http://i1350.photobucket.com/albums/p766/ramboboy7/6b_zpssr0kpmkx.png)

8. We are going to export “the mesh” now
-Click “the mesh” and Export “the mesh” model. Choose a directory to save and set the save as type is “Netimmerse/Gamebyro (*.KF,*.NIF). In this eg. I named my modded rig “Tommy”
(http://i1350.photobucket.com/albums/p766/ramboboy7/7a_zpsdjqrijzq.png)(http://i1350.photobucket.com/albums/p766/ramboboy7/7b_zpsbznj04lz.png)

-Use this export setting below, change the “game” setting to “user”, change the version to 20.3.0.9 and please make sure you tick and untick according to these setting. Then click “Export”.
(http://i1350.photobucket.com/albums/p766/ramboboy7/7c_zpsdpqjg6gg.png)

9. Since 3DS Max don’t have any proper .nif Bully:SE version importer/exporter, that means, the modded rig .nif file can’t work properly ingame. But don’t worry, there a way to overcome that problem.
a. First open both:
-The modded rig (“Tommy.nif”/ “the mesh” that we export out of 3DS Max before) and
-The unmodded bully ped (“TO_Bussiness1.nif”/ the original unmodded Bully:SE ped)
Note. If you had problem to open the second .nif file in the nifskope, just press "CTRL+N" to open a new nifscope window and click "load" in nifskope and select the second .nif file
(http://i1350.photobucket.com/albums/p766/ramboboy7/8a_zpsrnhiktce.png)

b. Go to the “tommy.nif” file  first, in the nifskope:
-Click the mesh, which is tommy.
-It will highlight the “NiTriShape” in blue in the “block list”
-Then in the “NiTriShape”, spread the nif tree list by clicking the “+”.
-It will shows up a lot of node (NiMaterialProperty, NiTexturingProperty, NiTriShapeData, NiSkinInstance, etc)
-Delete all the properties (for eg. Click the NiMaterialProperty then press “CTRL+Delete” to delete the properties), and only leave the “NiTriShapeData and NiSkinInstance”
(http://i1350.photobucket.com/albums/p766/ramboboy7/8b_zpso6fayu4h.png)
(http://i1350.photobucket.com/albums/p766/ramboboy7/8c_zpskxcgvp4d.png)

-Copy the “NiTriShape” by clicking the “NiTriShape”, then press “CTRL+C” or you can click RMB and select the “Copy Branch”. We will paste it to the unmodded original bully ped
(http://i1350.photobucket.com/albums/p766/ramboboy7/8d_zpsjy0nwyha.png)


c. Go to the “TO_Bussiness.nif” file (the unmodded original bully ped) that we already open before:
-Click the mesh, which business1
-It will highlight the “NiTriShape”. Above the “NiTriShape”, there is a “NiNode”.
-Click the “NiNode” and press “CTRL+V” to paste Tommy “NiTriShape” that we copy before or you can click RMB and select the “Paste Branch”.
(http://i1350.photobucket.com/albums/p766/ramboboy7/8e_zpspdafykkl.png)

-There will be two “NiTriShape” shape, the bully original ped “NiTriShape” and our modded rig/tommy “NiTriShape”
-Now we need to copy all properties from the bully ped “NiTriShape” except the “NiTriShapeData and NiSkinInstance” to our modded rig/tommy “NiTriShape”, by using CTRL+C for copy and CTRL+V for paste.
(http://i1350.photobucket.com/albums/p766/ramboboy7/8f_zpszxumwixs.png)

-After we finish copying all the properties to our modded rig/tommy, delete the bully ped “NiTriShape” cause we don’t need it anymore. And it will just leave our modded rig/tommy with the correct properties.
(http://i1350.photobucket.com/albums/p766/ramboboy7/8g_zpsgmslz2gx.png)

10. Assigning texture name in the .nif file, and still in "TO_Bussiness.nif” file,
Note: Bully:SE game can only read .tga file texture. if you have a texture for .eg .jpg or.png change it first in the photoshop, save as to .tga file texture.
Note: I only recommend you to use only photoshop when you converting your image
-In the “NiTexturingProperty”, spread the nif tree list by clicking the “+”.
-It will shows up a 3 “NiSourceTexture” ( _d.tga, _s.tga, _n.tga)
_d.tga = diffuse map/ this is the full color texture of the mesh
_s.tga = specular map/ it defines a surface shininess/shiny
_n.tga = normal map/ it stimulate the impression of a 3D surface
(Ps. You actually just need to understand the diffuse map, if you have no idea what is the other map, it is okay)
(http://i1350.photobucket.com/albums/p766/ramboboy7/9a_zpsscofptmk.png)

-First we need to change the _d.tga or diffuse map name to our “the mesh/tommy” texture name, look for the texture. In this example the diffuse texture name is “tommy_d.tga”
-In the  _d.tga “NiSourceTexture” look at the “Block Details” below, scrool down until you found  “File Name” and beside it there is a purple flower with the _d.tga name. Click RMB and select “Txt Edit String Index” and change the name to “the mesh/tommy” texture
(http://i1350.photobucket.com/albums/p766/ramboboy7/9b_zpsgrcxsiwc.png)
(http://i1350.photobucket.com/albums/p766/ramboboy7/9c_zpscs0zo8if.png)

-Change the name of the _s.tga into “skin_s.tga” and _n.tga into “skin_n.tga”, using the same method, like how to change _d.tga name. and the final result will be look like below picture. After that save the nif file (CTRL+S).
(http://i1350.photobucket.com/albums/p766/ramboboy7/9.0_zpsriemrwtn.png)

11. Importing all of your texture file (_d.tga,_s.tga,_n.tga) to the .nft file:
-open the original bully ped .nft file, in this eg. it is "TO_Business1.nft". Note: if you had problem to open the .nft file click RMB and select the “open with” nifscope.
-click and RMB the NiSourceTexture and select “choose”.
-Find the_d.tga texture, in this eg. It is tommy_d.tga.
(http://i1350.photobucket.com/albums/p766/ramboboy7/9d_zpsqtyffwb3.png)

-Click and RMB the NiSourceTexture again, and select “Embed”. You will notice that the “NiPixelData” will show up, delete the “NiPixelData’ (CTRL+Delete), since we don’t need it.
(http://i1350.photobucket.com/albums/p766/ramboboy7/9e_zpsobutz5fk.png)

-Do it the same step for all the other file (skin_s.tga & skin_n.tga (note: both this shader texture can be downloaded above of this the tutorial step, in the tools section name “Rambo7 Universal Shader”).
Embed the texture and delete the “NiPixelData”  if it show up.

-After you finish embed all the texture save it (It must be save in the .nft format)

could you help me how to import the bully map in blender to edit?