PDA

View Full Version : Blender - Split Oblivion Meshes



LHammonds
10th Dec 2010, 23:31
This tutorial will cover how to cut up a piece of armor so that it ends up with the armor on just one arm.

(Click on images for larger view)
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271992704.jpg (http://www.tesnexus.com/imageshare/images/128909-1271992704.jpg)

This is an updated version of this tutorial: Split Oblivion Meshes @ NifTools Wiki (http://niftools.sourceforge.net/wiki/Blender/Split_Oblivion_Meshes)

Prerequisites

Blender 2.49b (http://www.tesnexus.com/downloads/file.php?id=12248)
Full Human Male and Female Topless Import-Ready Body 1.0 (http://www.tesnexus.com/downloads/file.php?id=12248)
Blender NIF Scripts 2.5.0 (http://www.tesnexus.com/downloads/file.php?id=12248)
PyFFI 2.0.5 (http://www.tesnexus.com/downloads/file.php?id=12248)
Python 2.6.4 (http://www.tesnexus.com/downloads/file.php?id=12248)
NifSkope 1.0.21 (http://www.tesnexus.com/downloads/file.php?id=12248)
The Construction Set 1.2.404 (http://www.tesnexus.com/downloads/file.php?id=11367)
Extracted meshes from Oblivion - Meshes.BSA (BSA Extraction Tutorial (http://www.tesnexus.com/articles/article.php?id=168))
A desired body type. For this article, it will be the vanilla male body.

NOTE: Most of the programs (and specific version numbers) mentioned above are packaged together on the referenced Blender page.

Import The Mesh

Find the armor you wish to use. For this tutorial, it will be the Daedric Male Cuirass. (See Pic #1)

Image Reference #1
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271975796.jpg (http://www.tesnexus.com/imageshare/images/128909-1271975796.jpg)

Start Blender and clear the scene of all objects.
Import the armor into Blender by clicking File --> Import --> NetImmerse/Gamebro (.nif, .kf, .egm). (See Pic #2)

Image Reference #2
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271975988.jpg (http://www.tesnexus.com/imageshare/images/128909-1271975988.jpg)

Select the skeleton that was imported with the mesh and delete it.
Delete the parts of the model that are not wanted. (See Pic #3)
You may have to enter into Edit Mode on some objects and select sections individually to delete them if parts you wish keep and remove are in a single object.

Image Reference #3
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271976075.jpg (http://www.tesnexus.com/imageshare/images/128909-1271976075.jpg)

Import the male body (FullHumanBodyImportReadyMale.nif) using the same settings as before (See Pic #2) and delete the skeleton after it is imported. (See Pic #4)

Image Reference #4
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271976158.jpg (http://www.tesnexus.com/imageshare/images/128909-1271976158.jpg)

Body Modifications

Delete the parts of the body that are not needed. (See Pic #5)
In this example, we delete the head, hands, hips, legs and feet. Most of the arm also does not need to exist (causing clipping issues) so the hidden parts of the arm are deleted too.
It will be easier if you move the armor to Layer 2 and make Layer 1 the only visible layer to you can see the entire arm you are editing. When needed, you can temporarily turn on Layer 2 to see how the armor fits over the arm.
To move an object to layer 2, select the object, click M, 2, OK. To toggle layer 2 on and off, click SHIFT+2. To see only layer 2, press 2. (Blender Tips (http://www.scifi-meshes.com/forums/showthread.php?76853-Blender-Shortcut-Tips))

Image Reference #5
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271976298.jpg (http://www.tesnexus.com/imageshare/images/128909-1271976298.jpg)

Prep for Export

Save and exit Blender. This will flush the old Scene Roots from memory and avoid importing the next skeleton as Scene Root.00 which will cause the NIF to not work.
Start Blender, load the model, select all objects and import a new skeleton. (See Pic #6) Make sure the skeleton comes in named as "Scene Root"

Image Reference #6
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271977112.jpg (http://www.tesnexus.com/imageshare/images/128909-1271977112.jpg)

Select each object one at a time and add an Armature modifier if one does not already exist.
Link the object to the skeleton by typing "Scene Root" (without the quotes) in the "Ob" field. (See Pic #7)
Repeat for all objects.

Image Reference #7
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271976644.jpg (http://www.tesnexus.com/imageshare/images/128909-1271976644.jpg)

Select all objects and export to NIF format. (See Pic #8)
Press A, A to make sure everything is selected and click File --> Export --> NetImmerse/Gamebro (.nif, .kf, .egm)

Image Reference #8
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271976771.jpg (http://www.tesnexus.com/imageshare/images/128909-1271976771.jpg)

NifSkope Cleanup

Open the NIF using NifSkope.
Expand and examine the Tree View and see if everything seems to be positioned correctly. (See Pic #9)
- The root NiNode should have the value of "Scene Root"
- The NiTriStrips (or NiTriShapes) should be under the "Scene Root"
- There should be a bunch of NiNodes starting with the value of "Bip01" under the NiTriStrips which refer to the bones of the skeleton.
- Each of the NiTriStrips should have a NiMaterialProperty and a NiTexturingProperty.
- Each NiTexturingProperty should have a NiSourceTexture under it which points that part of the mesh to a DDS Texture file.

Image Reference #9
http://www.tesnexus.com/imageshare/images/thumbnails/128909-1271976958.jpg (http://www.tesnexus.com/imageshare/images/128909-1271976958.jpg)

Make sure the texture paths are pointing to the correct location for each object. (See Pic #9, Section 2)

- Cuirass --> Textures\Armor\Glass\cuirass.dds
- Upperbody --> Textures\Characters\default\_male\body.dds

Make sure the material name of the skin is called "skin" which is a special requirement (which is re-colored based on race of character). (See Pic #9, Section 3.1)

Adjust the material settings to the standard colors: (See Pic #9, Section 3.2)

- Ambient Color: White (#ffffff)
- Diffuse Color: White (#ffffff)
- Specular Color: Black (#000000)
- Emissive Color: Black (#000000)

Clean the NIF by running through the Optimize and Sanitize Spells:

Spells --> Optimize --> Remove Bogus Nodes
Spells --> Sanitize --> Adjust Link Arrays
Spells --> Sanitize --> Adjust Texture Sources
Spells --> Sanitize --> Reorder Blocks
Spells --> Sanitize --> Check Links
File --> Save As - Overwrite existing NIF file.

Copy the NIF file to your project folder such as <<Install Folder>>\Oblivion\Data\Meshes\Armor\MyMod\arm.nif

Add Mesh To Oblivion

Open the Construction Set, create a plugin and add the armor (such as making a copy of the existing Daedric Cuirass and giving it a different name and point the mesh to your arm.nif file)
You can use this tutorial for making the armor piece for sale at a vendor shop: How To Add Objects For Sale (http://cs.elderscrolls.com/constwiki/index.php/How_To_Add_Objects_For_Sale)

Tutorial Source (http://HammondsLegacy.com/forum/viewtopic.php?f=40&t=102)

Have fun,
LHammonds