ExportMeshToNif - Gruftikus/tes4ll GitHub Wiki
Exports the mesh of the -map
to a NIF file.
The syntax is identical to ExportMeshToObj
, but with the following additional features.
Options
Boolean
-useshapes
: Uses shapes and not strips (faster in generation).-makeninode
: Makes a new NiNode (see below)-addgeometrydata
: Adds the NIF object NiAdditionalGeometryData-no_uv
: No uv structure-lightingshader
: uses BSLightingShaderProperty
Values
-texset1
: color map filename-texset2
: normal map filename-setname
: sets the name of the nif-object
If texset1/2 are used, the object BSShaderPPLightingProperty (or BSLightingShaderProperty) and BSShaderTextureSet are filled
Multiple meshes support
The commands is able to store multiple meshes in one file. To do so, the first command must use the option -makeninode
. All meshes (NiTriStrips and NiTriShapes) are attached to this NiNode. The last command must use -filename
. This stores all collected meshes, and cleans the NiNode.