Difference between revisions of "NifSkope Comprehensive Guide"

Jump to navigation Jump to search
8,044 bytes added ,  19:09, 25 July 2007
Added 5.5.2 NiTriShape, Added section 6.*
imported>Chuey
(Joined Section 2 back with the origional article. Intention is to keep as one article so it is easier to find information within the article and easier to edit by the community.)
imported>Chuey
(Added 5.5.2 NiTriShape, Added section 6.*)
::* The window at the top is the block details window. This window displays all the commands and instructions contained within each of the Ni data blocks. Editing or adding commands and instructions is how you create all types of effects on your meshes and textures.
<Br>
There are also two non-default windows available to you. LetsLet's go ahead and activate them so we can see what they offer us.
* Click: View menu -> KFM
* Click: View menu -> Reference Browser
<blockquote>'''NOTE:''' This doesn't mean that it isn't possible to create or edit animations. There has been talk on forums of the possibility of adding animations using Blender. If anyone has further information on this topic please add.</blockquote>
:'''Reference Browser'''
::* This browser will display descriptions of of all the data strings contained within the selected block in the Block List window. It will also display descriptions on commands and instructions on selected items in the Block Details window. This is very useful but should only be opened when needed.
<br>
Close the KFM and Reference Browser windows using the same method used to open them or just click the 'X' in the upper right of each window.
 
== Menu Items ==
NifSkope contains five menu drop downs. Some are obvious (Save, About, ect.) and some not so obvious (Optimize, Sanitize, ect.). We will explore these in more detail below so first lets open our a NIF file.
* Click: File menu -> Load
* Browse to your Oblivion install directory, then Data/meshes/weapons/iron
::* KFM: Toggles window on/off.
::* Reference Browser: Toggles window on/off.
::* Toolbars, Load Save: Toggles toolbar on/off.
::* Toolbars, View: Toggles toolbar on/off.
::* Toolbars, Animation: Toggles toolbar on/off.
::* Block List Options, Hierarchy: Changes the block list window to display Ni data blocks in an expanding tree format.
::* Block List Options, List: Changes the block list window to display Ni data blocks in a top down list format.
The render window settings control the search path, rendering, and lighting of the render window. These controls will make dramatic changes to the way your model is rendered and should be used sparingly. Lets walk through each of the setting options available to you.
:'''Auto Detect'''
::* Pressing one of the buttons will cause NifSkope to seek out and find the directory your texture files are located in for the game named on the button.; Thenthen adds the result to the list of search paths.
:'''Custom'''
::* Add Folder: Adds a new folder to the list of search paths.
::* Shaders: Enables the rendering of shader effects in the render window.
:'''Up Axis'''
::* Sets the render windows Positive Height axis. Meaning that by default the Z axis is up in height. ''Please add information on how this effectswill affect saved NIF files.''
:'''Culling'''
::* Cull Non Textured: If checked, NifSkope will not display meshes that do not contain an associated texture.
::* Cull Nodes by Name: If checked, NifSkope will not display Nodes containing the suffixes listed in the the text box.
:'''Light'''
::* Changes the render window ambient, diffuse, and specular light color. Selecting and rotating the triangle via the outer circle sets the hue and selecting inside the triangle and dragging the small white circle sets the shade.
<blockquote>'''NOTE:''' We will get into what Blender is later in this guide.</blockquote>
:'''Optimize'''
::* Combine Properties: Combines Ni Block properties that contain the same Block Data. [Example: Two different NiTriShapesNiTriShape blocks both contain the same material property. But each material property has a different Block number. Running this script will convert them to the same block number.
::* Split Properties: This spell is the opposite of Combine Properties. When run, it will assign a unique block number to each property regardless if they are the same.
::* Remove Bogus Nodes: This spell will remove NiNodes from your Block List that do not contain any Ni Blocks or Ni Data.
::* Strippify All TriShapes: This spell will convert all NiTriShape block to NiTriStripNiTriStrips blocks.
<blockquote>'''NOTE:''' This is a very useful spell when creating weapons as weapon shape data is contained in NiTriStripNiTriStrips blocks as opposed to NiTriShape blocks like armor.</blockquote>
:'''Sanitize'''
<blockquote>'''NOTE:''' All of these spells will run automatically if the 'Auto Sanitize Before Save' selection under the file menu is check marked.</blockquote>
::* Adjust Texture Sources: Replaces / with \\ in texture paths and automatically sets texture format options for Oblivion NIF files. [Example Pixel Layout to 6, Use Mipmaps to 1, etc.]
::* Reorder Havok Blocks: This spell places imported or edited Havok blocks like collision data blocks to the correct hierarchy order.
::* Check Links: This spell checks the NIF file's data block links for errors., Thenand then displays any resulting errors in a prompt window.
:'''Batch'''
::* Make All Skin Partitions: This handy spell will automatically create NiSkinPartition blocks for all Ni shape blocks containing armature bones. NiSkinPartition blocks are found in NIF files containing movement transforming meshes like body parts, armor, and clothing.
 
=== Meshes & Textures ===
You should still have the battleaxe.nif file open. If not, open it now. You should see the 3D model of the iron battleaxe in the render window. Before we get into any more detailed information it's important that you understand what youryou're actually looking at. The battleaxe you see is actually a hollow mesh with a texture map skinned over the top of it.
 
Below are links to great [http://www.wikipedia.org Wikipedia] articles on Polygonal Meshes and Texture Maps. It's highly recommended that you read these articles to get a better understanding of these two concepts. So get yourself a beverage of choice, click on the links, and read. Continue on with the guide when youryou're done.
 
* [http://en.wikipedia.org/wiki/Polygon_mesh Polygonal Meshes - Wikipedia Article]
 
=== Orientating the Model ===
You can orientate the model by either rotating, panning, or zooming. In this section we'll try each of these. We will also learn about selecting meshes in the render window, setting 'Save User View', and Walk Mode. Try each of these as we go through them.
 
==== '''The Basics''' ====
 
==== '''Save User View''' ====
This function allows you to save an orientation of the model so you can quickly return to it again later. LetsLet's try it:
:* Orientate the model to your liking.
:* Click: Render menu -> Save User View
Notice how the blades become outlined with white lines. The white lines are showing you the mesh beneath the texture map. Now look over to the Block List window and expand '0 NiNode Battleaxe'.
 
Notice how the 10 NiTriStrip Battleaxe:0 is highlighted. NifSkope has highlighted this section of the block list because you've selected it'sits associated mesh in the Render Window. Now go back to the Render Window and select the handle. The highlight moves to 16 NiTriStrip Battleaxe:1 because block #16 contains the data pertaining to the handle mesh.
 
* Right click on the blades portion of the battleaxe model.
 
Not only does the highlight move back to block #10 but a menu appearswill appear. This is the 'Model Editing Menu'. For now, just remember how to open the menu. We'll get into more detail on this menu's options further in the guide.
 
==== '''Walk Mode''' ====
The primary use of this mode is to give the perception of 'walking' near to the model in the render window. When this mode is active you will no longer have the ability to rotate the model. The view will be fixed parallel to the perceived ground plane that will be present in the game environment. Meaning if the Z axis is up, your view will be locked on the Y axis plane. LetsLet's try this:
 
* Click: Render menu -> Settings... -> Up Axis, set this to Z.
* Reopen your iron battleaxe model. [Data\meshes\weapons\iron\battleaxe.nif]
 
= '''Blocks & Block Details Overview''' =
== Scene Root Node ==▼
 
▲== '''Scene Root Node''' ==
All NIF files start with a Scene Root Node (0 NiNode). This is the location of X0,Y0,Z0 in 3D space. Everything in the game environment is positioned based on the location of it's associated Scene Root Node. You cannot move the Scene Root Node, but can move the associated model in relation to it. This enables you to position the model to a specific location in reference to other objects in the game environment.
 
 
== Extra String Data: UPB Block ==
The UPB block specifies the models physics in terms of several principal variables. Since this data applies to the fundamentals of physics it is implied that the game engine's physics processing is effectedaffected by these variables. The variables are:
: '''Collision Groups '''
::* The effects of changing this value are unknown. ''Needs explanation. See Key2.nif''
 
=== '''bhkCapsuleShape''' ===
Look in the render window,; notice the orange lines surrounding the battleaxe's handle? That is the collision object 'capsule'. You can edit the collision object using the Block Details window. LetsLet's try that now.
 
* Click to highlight: 4 bhkCapsuleShape
* Hit Enter on the keyboard
 
Now look at the render window. The capsule is on an angle and longer then before! Use this method to adjust the shape and location of a collision capsule to fit a new or edited mesh. Go ahead and play with the radius and point values. Then continue on with the guide when youryou're ready.
 
=== '''bhkBoxShape''' ===
This type of collision object creates a box around your model or section of your model. Notice how the developer used a box shape around the blades and a capsule around the handle. Combinations of collision object shapes can produce a more life like experience for the player. LetsLet's look at the box shape in more detail.
 
* Click to highlight: 5 bhkBoxShape
* Block Details window -> Dimensions
 
The X,Y,Z coordinates here adjust the overall size of the box shape. Each in relation to it'sits length, width, and thickness.
 
* Double-Click: Dimensions -> Value
* Press Enter on the keyboard
 
Notice how the box shape has grown in size! Use this method to fit a collision box around a new or edited mesh. Now letslet's adjust the location of our box shape.
 
* In the Block List window:
<blockquote>'''NOTE:''' Capsule shapes can reside as children directly in the bhkListShape block. Box shapes however must reside as children to a parent bhkConvexTransformShape.</blockquote>
 
Go ahead and adjust each of these setting and see the resulting change to the box shape in the render window. It's important that you understand how the box shape is effectedaffected by each of the transform variables. Once you have a good understanding of these variables continue on with the guide.
 
== '''Shape Blocks''' ==
* Expand 0 NiNode BattleAxe
* Expand 10 NiTriStrips BattleAxe:0
* Expand 13 NiTexturingProperty
 
In this block contains all the mesh, material, and texture map information necessary to render the model correctly in the game environment. WeLater we will break down each of these data nodes to better understand their purpose.
 
=== '''NiTriShape''' ===
NifSkope defines NiTriShape as, “A shape node that refers to a singular triangle data.”. It is assumed that this is necessary to enable the mesh to conform to movements made by the associated actor. Meaning: NiTriShape data blocks are found on objects that are warn by an actor in the game environment. As the actor moves (i.e. swings a sword) the mesh around the actor must move along with him/her. And as such must conform to this movement; whereas an object such as a longsword does not need to conform to the actors movements.
 
* Click: File menu -> New Window
* Make the new window active on your desktop.
* Click: Load on the toolbar.
* Go to: /Data/meshes/armor/iron/m
* Double-Click: boots.nif
* Expand 0 NiNode Scene Root
* Expand 10 NiTriShape Foot
 
Just as a NiTriStrips block, it contains all the mesh, material, and texture map information necessary to render the model correctly in the game environment. But notice the additional data node NiSkinInstance. This node is used to define what armature bones are associated with this object. For now, just remember where it’s located. We will get more into armature bones later in the guide.
 
* Go ahead close the NifSkope window with the boots.nif file. But leave the battleaxe.nif window open as we will need it for the next section.
 
= '''Shape Block Details''' =
You now have a basic understanding of the Block Details window, and understand that you can edit the information contained within the Data Blocks shown in the Block List. You also have a basic understanding of what the different Data Blocks and Nodes do. So now let’s get into more detail on the Nodes each Shape Block contains.
 
If you haven’t done so already:
* Expand 0 NiNode BattleAxe
* Expand 10 NiTriStrips BattleAxe:0
 
: 11 NiBinaryExtraData== ''' Tangent spaceSpace (binormal & tangent vectors)''' ==▼
::* First it isIt’s important to know what tangent space is, but this article cannot explain it better then what is already available to you on Wikipedia. Follow the link and read this Wikipedia article on [http://en.wikipedia.org/wiki/Tangent_vectors Tangent Vectors]. This data array defines the model's tangent vectors., This data nodeand is required for your model to display properly in the game environment.▼
 
The tangent space binormals and vectors must be updated anytime a new mesh is imported into NifSkope. Luckly the NifTools Team has provided a tangent space update script for you.
 
* Right Mouse Click: 11 Tangent Space (binormal & tangent vectors)
* Select: Block -> Remove
Block 11 has now been deleted from your Block List. That’s okay, we will now add it back.
* Right Mouse Click: 10 NiTriStrips BattleAxe:0
* Select: Mesh -> Update Tangent Space
 
Block 11 Tangent Space (binormal & tangent vectors) has been created for the NiTriStrips BattleAxe:0. When updating the tangent space it isn’t necessary to first delete the existing one but is recommended as a reminder.
 
== ''' NiMaterialProperty ''' ==
This block contains all the data necessary for the game engine to simulate the properties of a specified material type. For example, glass if very reflective and smooth as opposed to a rock which is dull and coarse. The material type will greatly affect the way your model renders in the game environment.
 
Oblivion already contains several ‘pre-made’ material types for almost every type of material used in the game. Just copying and pasting material data from one NIF to another is a great time saver. But it’s important to know what each of the parameters contained in this block do to become a more skilled modder and tweak the setting to achieve custom look to your model.
 
* Click to highlight: 12 NiMaterialProperty 6 – Default
* Look at the Block Details window
 
: '''Name'''
::* This defines the name of the material property. There are several pre-set names that the developers used for their material properties. There have been discussions that suggest the name of the material affects certain visual effects the game engine will apply to the model when rendered in the game environment. ''Needs confirmation/explanation if true.''
: '''Num Extra Data List'''
::* The quantity of extra data strings assigned to this material property. To add extra data strings see section: Adding Extra Data Strings.
: '''Extra Data List'''
::* List of extra data strings added to the material property. UPB is an example of an extra data string. Extra data strings are not typically applied to material property nodes.
: '''Controller'''
::* Specifies the block number for the NiTimeController. The time controller is used to specify the amount of time (and other variables) between sequences of colors defined within multiple material property nodes. They are typically used on candles to give the perception of flickering. This is an advanced topic which is outside the scope of this guide.
: '''Ambient Color'''
::* Defined as: existing or present on all sides. The ambient color is radiant from all sides of the model equally. The color is specified in HTML Notation in the value column.
: '''Diffuse Color'''
::* Defined as: not concentrated or localized. The diffuse color will blend into the colors currently in the texture equally like a tinted film. The color is specified in HTML Notation in the value column.
: '''Specular Color'''
::* Defined as: of, relating to, or having the qualities of a mirror. The specular color is emitted from the reflective surfaces of the model. The color is specified in HTML Notation in the value column.
: '''Emissive Color'''
::* Defined as: an act or instance of emitting. When in direct light or darkness, it's the color emitting from the model's surface like a glow. The color is specified in HTML Notation in the value column.
: '''Glossiness'''
::* A numerical value of gloss effect applied to the model. The higher the value the greater the gloss effect is applied. Most general objects in Oblivion possess a base value of 10.
: '''Alpha'''
::* Specifies the material's level of alpha/transparency in a numerical value. A value of 1 means the object is not transparent. A decrease in the value from 1 increases the object's alpha/transparency. This floating variable requires the node NiAlphaController and NiAlphaProperty to correctly render transparency in the game environment. It is used on objects such as ghost models and glass. Specifying Alpha Channel/Transparency is an advanced topic outside the scope of this guide.
 
=== '''Changing Colors in NiMaterialProperty''' ===
There are two ways to change the color value for Ambient, Diffuse, Specular, and Emissive Color contained in the material property node.
 
==== '''Menu Method''' ====
* Right Click: Ambient Color in the Block Details window
* Select: Color
 
What you see in front of you is the NifSkope color chooser window. There is an outer ring which defines the color [http://en.wikipedia.org/wiki/Hue hue]. The triangle defines the shade. The shade can also produce black or white at the extremes. Let's give it a try:
 
* Notice the white circle inside the outer ring. Select it with your Left Mouse Button and rotate it around the outer ring. This changes the hue.
* Now select the white circle inside the triangle with your Left Mouse Button and drag it around inside the triangle. This changes the shade of the hue you selected in the previous step.
* Click: ok
 
Now look at the Value column of the Ambient Color row. Notice how the cell is highlighted in the color you have chosen. Also look at your render window and notice how the model of the battleaxe has changed to show the ambient color you chose.
 
==== '''HTML Notation Method''' ====
Look at the Value cell for the row Ambient Color and notice the #ffffff text that is there. This is the [http://en.wikipedia.org/wiki/HTML HTML Notation] for white. You can change this value by:
 
* Double-Click: #ffffff in the Value cell of the Ambient Color row.
▲: 11 NiBinaryExtraData Tangent space (binormal & tangent vectors)
▲::* First it is important to know what tangent space is. Follow the link and read this Wikipedia article on [http://en.wikipedia.org/wiki/Tangent_vectors Tangent Vectors]. This data array defines the model's tangent vectors. This data node is required for your model to display properly in the game environment.
 
You now see three text boxes: Red, Green, and Blue specified by the first letter of each. The value 1 means that the associated color is at its minimum shade. The value of 0 means the associated color is at its maximum shade. Meaning, a primary color will become darker as the value approaches 0. For example, if you enter 0 for each of the primary colors you will end up with black. You can use variations of 0 - 1 in each of the primary colors to produce a specific hue and shade of your liking.
 
= '''Glossary''' =
== NPC ==
Means: '''N'''onone '''P'''layable '''C'''haracter
* Any of the countless characters/actors in the game world.
 
Anonymous user

Navigation menu