Preface:This guide will teach you how to prepare a nif for import into Blender (how you must trick Blender into reading your nif properly), what to do once inside Blender (though an in-depth guide on how to 3d edit is not included and will not be supported in any way), and what to do once you export from Blender to get the nif in a format the game will read properly. This method will leave the model completely weighted and rigged how it was when you imported, so at that point it's basically just like editing for any other game, you know with bone weight copies and whatnot, it's just these few extra steps to get things in to Blender and out of it again in a format Skyrim can work with.
This tutorial assumes you have basic working knowledge of Blender and does not aim to teach you how to use the program completely. The aim of this guide is simply to cover the import and export of fully rigged nifs. I will not provide Blender support whatsoever. If you need help learning Blender I suggest checking out the free http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro wiki book. If you're committed enough, you can learn how to use it in a day with that guide. I did.
Required Utilities:Python 2.6.6 (32-bit): http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
PyFFI 2.1.10 (32-bit): http://sourceforge.net/projects/pyffi/files/pyffi/2.1.10/
Blender 2.49b: http://www.blender.org/development/release-logs/blender-249/
Blender Nif Scripts 2.5.8: http://sourceforge.net/projects/niftools/files/blender_nif_scripts/2.5.x/2.5.08/
Nifskope (1.1.0-rc1+throttlekitty's nif.xml known to be working):
See http://skyrimnexus.com/downloads/file.php?id=3790 section of Nexus page.Prepare .nif for import:First of all, open Nifskope and click Render > Settings > General and set the Startup Version to 20.2.0.7 if it isn't already.
Next, we're going to open up the NiHeader and make the following changes...
User Version: 12 -> 11User Version 2: 83 -> 34
Next, we want to delete BSLightingShaderProperty because Blender can't import it. So select it, then hit Ctrl+Del.
SAVE. We are now done with preparing our .nif for import.
Note: If you aren't sure how to even get the nif in the first place, then you need to get a program called Fallout Mod Manager and use the BSA Browser included. If you do not own Fallout 3, you're going to need to do some file renaming wizardry where your copy your Skyrim exe and rename the extra one to Fallout 3's exe name and there maybe some other file you need to create, and then you'll be able to install FOMM and it'll work. I won't be covering that in this guide, sorry!
Now, once we're in Blender...import with default Fallout 3 settings - [img]file:///C:/Users/Anthony/Desktop/Blender-imp-exp_1_2/pictures/vertex-buttons.png[/img]
(click to enlarge)
Right. So, in the above image you can see where the Delete and Assign buttons are. You can also see the area you will need to click to type out a name for the New vertex group you created. The up/down little arrow button there shows all of your vertex groups - don't mess with anything that doesn't start with BP_ unless you know what you're doing because this is your weighting.
The reason we're using BP_TORSO is because this is a name that the nif scripts will export properly as a part of your mesh as a dismember partition. If you're working with bodies, a few more names you will use are BP_LEFTLEG and BP_RIGHTARM.
Once we've created the new BP_TORSO we have to assign the faces to it that belongs to that particular dismember partition. To find these dismember partitions we need to open up the original mesh in Nifskope and we'll find them like so:
(see pic)
Ahh, yes, finally. We're almost done now!
Tip: If you're fairly new to modding, you might find it useful to be able to copy weighting from one object to another. This was very commonly used in modding for all the other games. So, I'll just very briefly cover that for you... Once you import your new object you right click the object that will be weighted, shift right click the object to weight from, Object>Scripts>Bone Weight Copy, quality 3, hit ok. Then it'll run for a little bit and your thing should be fully weighted. Then right click the object, shift right click the armature (skeleton), ctrl+p (parent to armature), don't create groups, ctrl+a, apply scale & rotation. It may not be perfect or anything, but it should be pretty decent assuming they're fairly similar in shape and whatnot.
Fixes in Nifskope afterwords...open in nifskope
right click BSShaderPPLightingProperty
Block > Convert > Bethesda > BSLightingShaderProperty
select NiTriShape
Num Properties > 0
refresh it (little green recycle looking icon)
delete everything but shader & save
after save...
User Version: 12
User Version 2: 83
NiTriShape > Property Link 1 (to BSLightingShaderProperty's #)
NiTriShapeData
BS Num UV Sets > 1
Has Normals > no
BSDismemberSkinInstance
Partitions > Partitions> Body Part
BSDismemberBodyPartType (match to vanilla #)
If you check the partition in the original instead of something like BP_TORSO it will have a number. For the body it is 32. So you will replace BP_TORSO with 32. What we assigned BP_LEFTLEG is 38 and BP_RIGHTARM is 34, so assign those appropriately. If you're editing a different mesh, obviously you will need to check that dismember partition and see what number it uses and use that.
Now before we go to the next step, let's just make sure we have both of these flags checked for all of these partitions:
[img]file:///C:/Users/Anthony/Desktop/Blender-imp-exp_1_2/pictures/flags.png[/img]
(click to enlarge)
delete BSLightingShaderProperty
open a modified mesh (or vanilla if there aren't any yet but those are screwy a lot of times so use one from a modified mesh if possible) NiTriShape>BSLightingShaderProperty >ctrl+c
NiTriShape>ctrl+v
NiTriShape>Property Link (# of shader's node)
Save.
And now we are done. Congratulations. Hopefully this has been helpful!
P.S. Please don't message me on Nexus asking for help... I already have to combat my inbox size as it is, so if my inbox gets flooded with people asking for help with this I will cry T_T. I don't know very much about the technical Blender & Nifskope stuff anyhow, I'm more of a texture person. I just barely scraqe along with Blender & Nifskope as it is, lol. So please keep all questions and problems in the comment thread and you'll get a much better and faster response from the rest of the community who know more about this stuff and can help you!Credits:- 2pac4eva7 for the video tutorial and momentous level of amazing help he's given me; <3 him! you should too
. He discovered basically everything on his own, and all information provided here is from him, all I've done is organize it all and present it in an easily viewable format to help out the community.
- Nifskope Team
- Bethesda
- Blender contributors