Difference between revisions of "Arcane University:Mesh Export to NIF"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
(rearranged some things, added links)
(Added section on PyNifly (WIP) and reorganised the page. Removed export information from the CK-CMD section (which should be on its own page).)
Line 1: Line 1:
 
{{Trail|3D Art}}[[Category:Arcane University-3D Art-Mesh Export to NIF| ]]
 
{{Trail|3D Art}}[[Category:Arcane University-3D Art-Mesh Export to NIF| ]]
 
In order for your mesh to be used in Skyrim, it must be in [[AU:NIF Data Format|.nif]] format. There are several ways to do this, depending on what 3D software you use.
 
In order for your mesh to be used in Skyrim, it must be in [[AU:NIF Data Format|.nif]] format. There are several ways to do this, depending on what 3D software you use.
 +
 +
* Any 3D programs (see requirements)
 +
** CK-CMD
 +
** Outfit Studio
 +
* Blender
 +
** Blender Niftools Addon
 +
** PyNifly
 +
* 3DS MAX
 +
** 3DS Max Nif Plugin
 +
 +
A number of these methods do not directly support Special Edition nifs. However, this can be circumvented using [https://www.nexusmods.com/skyrimspecialedition/mods/4089/ SSE Nif Optimizer] or [https://www.nexusmods.com/skyrimspecialedition/mods/23316 Cathedral Assets Optimizer], both of which can convert LE meshes to SE format and the other way around.
 +
 +
== CK-CMD ==
 +
[[AU:CK-CMD for Skyrim|CK-CMD]] is an independent command-line software you can use to, among many other things, convert FBX files to NIF and the other way around. You can download it on its [https://github.com/aerisarn/ck-cmd GitHub page]. The advantage of this method is that it allows for exporting for any 3D program that can export to FBX. Limitations: Does not directly support SE nif files.
 +
 +
== Outfit Studio ==
 +
The process for exporting using Outfit Studio is documented on [[AU:Outfit Studio Export|Outfit Studio Export]]. The advantage of this method is that it allows for exporting for any 3D program which can export to OBJ. The disadvantage is that you have to work with intermediate files, which makes it harder to quickly test out small edits in-game. Limitations: The OBJ format cannot store vertex weights or vertex colors, so any rigging will need to be done within Outfit Studio.
  
 
== Blender Niftools Addon ==
 
== Blender Niftools Addon ==
You can export directly from Blender using the [[AU:Blender Niftools Addon|Blender Niftools Addon]]. Which version you should use (and how you export) depends on which version of Blender you are using. It allows for directly exporting from Blender to a full NIF, but you will need to merge the created NIF with separately created collision using [[AU:Niftools/Chunkmerge for Skyrim|ChunkMerge]]. The advantage of this method is that you do not need any intermediate files and can export directly from Blender.
+
You can export directly from Blender using the [[AU:Blender Niftools Addon|Blender Niftools Addon]]. Which version you should use (and how you export) depends on which version of Blender you are using. It allows for directly exporting from Blender to a full NIF, but you will need to merge the created NIF with separately created collision using [[AU:Niftools/Chunkmerge for Skyrim|ChunkMerge]]. The advantage of this method is that you do not need any intermediate files and can export directly from Blender. Limitations: No collision handling, and does not directly support SE nif files. Both of these limitations can be handled with workarounds.
  
 
=== Blender 2.7x ===
 
=== Blender 2.7x ===
Line 11: Line 28:
 
The process for direct export from Blender 2.8 or up is documented on [[AU:Blender 2.8+ Export|Blender 2.8+ Export]].
 
The process for direct export from Blender 2.8 or up is documented on [[AU:Blender 2.8+ Export|Blender 2.8+ Export]].
  
== 3DS MAX Export ==
+
== PyNifly ==
The process for direct export from 3DS MAX export is documented on [[AU:3DS MAX Export|3DS MAX Export]]. It allows for direct export from 3DS MAX to a full NIF. The advantage of this method is that you do not need any intermediate files and can export directly from 3DS MAX. The disadvantage is that it does not work for every version of 3DS MAX, and will therefore need to be updated when updating 3DS MAX.
+
[https://github.com/BadDogSkyrim/PyNifly PyNifly], like the Blender Niftools Addon, allows for direct import/export of nif files. Unlike the Blender Niftools Addon, it has support for SE nif files.
  
== CK-CMD ==
+
== 3DS MAX Nif Plugin ==
[[AU:CK-CMD for Skyrim|CK-CMD]] is an independent command-line software you can use to, among many other things, convert FBX files to NIF. You can download it on its [https://github.com/aerisarn/ck-cmd GitHub page.] To convert an FBX file to NIF, first you must export from your 3D software with the correct settings. Firstly, make sure to apply transforms before export. Because Skyrim uses a -Z Forward, Y Up coordinates system, you must export with these settings or else your mesh will be flipped on multiple axes. Once you have exported your FBX with the proper settings, in the command line run the command <code>ck-cmd.exe importfbx (FBX filepath) -e (output folder)</code>. This will create a NIF with the same name as your FBX in the output folder specified. It should be noted CK-CMD exports Legendary Edition NIFs, so if you want to use your NIF in Special Edition, it must be converted first with SSE Nif Optimizer.
+
The process for direct export from 3DS MAX export using especially made plugin is documented on [[AU:3DS MAX Export|3DS MAX Export]]. It allows for direct export from 3DS MAX to a full NIF. The advantage of this method is that you do not need any intermediate files and can export directly from 3DS MAX. The disadvantage is that it does not work for every version of 3DS MAX, and will therefore need to be updated when updating 3DS MAX. Limitations: Does not directly support SE nif files.
 
 
NOTE: If you don't want to run the command line every time you want to convert, you can create a file in the same location as ck-cmd.exe which will convert just by dragging and dropping FBXs onto a .BAT file. To do this, create a .BAT file (Notepad++ supports saving in this file format) with the code <code>"%~dp0\ck-cmd.exe" importfbx "%1" . > logfile.txt 2>&1</code>. Once you have saved this, you can convert to NIF by simply dragging and dropping your FBX onto the file you created.
 
 
 
== Outfit Studio ==
 
The process for exporting using Outfit Studio is documented on [[AU:Outfit Studio Export|Outfit Studio Export]]. The advantage of this method is that it allows for exporting for any 3D program which can export to OBJ, as well as not being dependent on that program's version. The disadvantage is that you have to work with intermediate files, which makes it harder to quickly test out small edits in-game. Furthermore, any rigging will need to be done within Outfit Studio, as OBJ files cannot contain rigging information.
 
  
 
== See Also ==
 
== See Also ==

Revision as of 12:02, 19 February 2022

< Arcane University:3D Art

In order for your mesh to be used in Skyrim, it must be in .nif format. There are several ways to do this, depending on what 3D software you use.

  • Any 3D programs (see requirements)
    • CK-CMD
    • Outfit Studio
  • Blender
    • Blender Niftools Addon
    • PyNifly
  • 3DS MAX
    • 3DS Max Nif Plugin

A number of these methods do not directly support Special Edition nifs. However, this can be circumvented using SSE Nif Optimizer or Cathedral Assets Optimizer, both of which can convert LE meshes to SE format and the other way around.

CK-CMD

CK-CMD is an independent command-line software you can use to, among many other things, convert FBX files to NIF and the other way around. You can download it on its GitHub page. The advantage of this method is that it allows for exporting for any 3D program that can export to FBX. Limitations: Does not directly support SE nif files.

Outfit Studio

The process for exporting using Outfit Studio is documented on Outfit Studio Export. The advantage of this method is that it allows for exporting for any 3D program which can export to OBJ. The disadvantage is that you have to work with intermediate files, which makes it harder to quickly test out small edits in-game. Limitations: The OBJ format cannot store vertex weights or vertex colors, so any rigging will need to be done within Outfit Studio.

Blender Niftools Addon

You can export directly from Blender using the Blender Niftools Addon. Which version you should use (and how you export) depends on which version of Blender you are using. It allows for directly exporting from Blender to a full NIF, but you will need to merge the created NIF with separately created collision using ChunkMerge. The advantage of this method is that you do not need any intermediate files and can export directly from Blender. Limitations: No collision handling, and does not directly support SE nif files. Both of these limitations can be handled with workarounds.

Blender 2.7x

The process for direct export from Blender 2.7x is documented on Blender 2.7x Export.

Blender 2.8+

The process for direct export from Blender 2.8 or up is documented on Blender 2.8+ Export.

PyNifly

PyNifly, like the Blender Niftools Addon, allows for direct import/export of nif files. Unlike the Blender Niftools Addon, it has support for SE nif files.

3DS MAX Nif Plugin

The process for direct export from 3DS MAX export using especially made plugin is documented on 3DS MAX Export. It allows for direct export from 3DS MAX to a full NIF. The advantage of this method is that you do not need any intermediate files and can export directly from 3DS MAX. The disadvantage is that it does not work for every version of 3DS MAX, and will therefore need to be updated when updating 3DS MAX. Limitations: Does not directly support SE nif files.

See Also

  • To review the specifics of the NIF data format used for meshes, check Nif Data Format.
  • To review the specifics of the DDS data format used for textures, check DDS Data Format.