NifSkope/Mesh import export

From NifTools
Jump to: navigation, search

NifSkope can import and export meshes (NiTriShape/NiTriStrips blocks) through Wavefront OBJ files. Many 3D programs can read and write OBJ files, including Blender and 3DS Max.

Note that this won't work for skinned (vertex weighted) meshes, only non-skinned meshes can be imported and exported properly with this method.

Contents

Exporting

  • Right-click on the NiTriShape/NiTriStrips block you want to export, and select .OBJ -> Export Mesh.
  • Type in the file name. This will write out a .obj and a .mtl file which you can edit with your favorite 3D modeling program.

Editing

Blender 2.41

Blender comes bundled with a OBJ importer and exporter. These scripts work pretty fine. Unfortunately however, they don't import normals properly, resulting in unwanted seams and/or blocky meshes. Fortunately, you can work around these problems by using the "remove doubles" trick (described below) and editing smoothing face by face. Following are the details.

  1. Select File -> Import -> Wavefront (.obj).
    • If the object you're importing is smooth, you probably want to enable "Smooths all faces".
      objimport5vj.png
    • To make sure the object is completely smooth, also at UV seams, you should remove doubles in Edit Mode. Press F9 to activate the Editing buttons, and then Tab to switch to edit mode. There are a few other buttons you can use to tweak smoothing.
      objremovedoubles9km.png
  2. Edit the model...
  3. If you're done editing, select File -> Export -> Wavefront (.obj).
    • Make sure you enable the Normals option or your model won't be properly lighted when re-imported in NifSkope.
    • You may also want to enable the "Triangulate" option.
      objexport2cm.png

3DS Max

For people using 3DS Max, go to http://Blender.org/ and download Blender for free. Then proceed to follow the directions mentioned below. :)

Importing

  • Right-click on the NiTriShape/NiTriStrips block you wish to change, and select Mesh -> Import .OBJ.
  • Select the right .obj file, and that's it.
Personal tools