NIF File Format Documentation

NIF Objects | Compound Types | Enum Types | Basic Types | File Versions

Name Description
AVObject Used in NiDefaultAVObjectPalette.
BSConnectPoint
BSDistantObjectInstance
BSDistantObjectTextureArray
BSGeometryPerSegmentSharedData
BSGeometrySegmentData Bethesda-specific. Describes groups of triangles either segmented in a grid (for LOD) or by body part for skinned FO4 meshes.
BSGeometrySegmentSharedData
BSGeometrySubSegment This is only defined because of recursion issues.
BSPackedGeomData
BSPackedGeomDataCombined
BSPackedGeomObject This is the data necessary to access the shared geometry in a PSG/CSG file.
BSPackedSharedGeomData
BSSPLuminanceParams
BSSPTranslucencyParams
BSSPWetnessParams
BSSkinBoneTrans Fallout 4 Bone Transform
BSStreamHeader Information about how the file was exported
BSTextureArray
BSTreadTransform Bethesda-specific compound.
BSVertexData
BSVertexDataSSE
BodyPartList Body part list for DismemberSkinInstance
BoneData NiSkinData::BoneData. Skinning data component.
BoneLOD Stores Bone Level of Detail info in a BSBoneLODExtraData
BonePose A list of transforms for each bone in bhkPoseArray.
BoneTransform Transformation data for the bone at this index in bhkPoseArray.
BoneVertData NiSkinData::BoneVertData. A vertex and its weight.
BoundingVolume
BoxBV Box Bounding Volume
ByteArray An array of bytes.
ByteColor3 A color without alpha (red, green, blue).
ByteColor4 A color with alpha (red, green, blue, alpha).
ByteMatrix An array of bytes.
ByteVector3 A vector in 3D space (x,y,z).
CapsuleBV Capsule Bounding Volume
Color3 A color without alpha (red, green, blue).
Color4 A color with alpha (red, green, blue, alpha).
ControlledBlock In a .kf file, this links to a controllable object, via its name (or for version 10.2.0.0 and up, a link and offset to a NiStringPalette that contains the name), and a sequence of interpolators that apply to this controllable object, via links.
For Controller ID, NiInterpController::GetCtlrID() virtual function returns a string formatted specifically for the derived type.
For Interpolator ID, NiInterpController::GetInterpolatorID() virtual function returns a string formatted specifically for the derived type.
The string formats are documented on the relevant niobject blocks.
DataStreamRef
DecalVectorArray Array of Vectors for Decal placement in BSDecalPlacementVectorExtraData.
ElementReference
ExportString Specific to Bethesda-specific header export strings.
ExtraMeshDataEpicMickey
FilePath A string that contains the path to a file.
Footer The NIF file footer.
FormatPrefs NiTexture::FormatPrefs. These preferences are a request to the renderer to use a format the most closely matches the settings and may be ignored.
FurniturePosition Bethesda Animation. Describes a furniture position?
HalfSpaceBV
HalfTexCoord Texture coordinates (u,v).
HalfVector3 A vector in 3D space (x,y,z).
HavokFilter Bethesda Havok. Collision filter info representing Layer, Flags, Part Number, and Group all combined into one uint.
HavokMaterial Bethesda Havok. Material wrapper for varying material enums by game.
Header The NIF file header.
InterpBlendItem Interpolator item for array in NiBlendInterpolator.
Key A generic key with support for interpolation. Type 1 is normal linear interpolation, type 2 has forward and backward tangents, and type 3 has tension, bias and continuity arguments. Note that color4 and byte always seem to be of type 1.
KeyGroup Array of vector keys (anything that can be interpolated, except rotations).
LODInfo
LODRange The distance range where a specific level of detail applies.
LegacyExtraData Extra Data for pre-3.0 versions
MatchGroup Group of vertex indices of vertices that match.
MaterialData
Matrix22 A 2x2 matrix of float values. Stored in OpenGL column-major format.
Matrix33 A 3x3 rotation matrix; M^T M=identity, det(M)=1. Stored in OpenGL column-major format.
Matrix34 A 3x4 transformation matrix.
Matrix44 A 4x4 transformation matrix.
MeshDataEpicMickey
MipMap Description of a mipmap within an NiPixelData object.
Morph Geometry morphing data component.
MorphWeight
NiAGDDataBlock
NiAGDDataBlocks
NiAGDDataStream
NiBound A sphere.
NiBoundAABB Divinity 2 specific NiBound extension.
NiCurve3 A 3D curve made up of control points and knots.
NiParticleInfo Called NiPerParticleData in NiOldParticles.
Holds the state of a particle at the time the system was saved.
NiPhysXJointActor
NiPhysXJointLimit
NiPhysXMaterialDescMap
NiPlane A plane.
NiQuatTransform
NiTFixedStringMap A mapping or hash table between NiFixedString keys and a generic value.
Currently, #T# must be a basic type due to nif.xml restrictions.
NiTFixedStringMapItem Currently, #T# must be a basic type due to nif.xml restrictions.
NiTransform
NodeSet A set of NiNode references.
NxCapsule
NxCompartmentDescMap
NxJointDriveDesc
NxJointLimitSoftDesc
NxMaterialDesc
NxPlane
NxSpringDesc
OldSkinData Used to store skin weights in NiTriShapeSkinController.
PSSpawnRateKey
PartitionDataEpicMickey
PhysXBodyStoredVels
PhysXClothAttachment
PhysXClothAttachmentPosition
PhysXClothState
PixelFormatComponent
Polygon Two dimensional screen elements.
QuatKey A special version of the key type used for quaternions. Never has tangents. #T# should always be Quaternion.
Quaternion A quaternion.
Region A range of indices, which make up a region (such as a submesh).
SemanticData
ShaderTexDesc NiTexturingProperty::ShaderMap. Shader texture description.
SizedString A string of given length.
SizedString16 A string of given length, using a ushort to store string length.
SkinInfo NiBoneLODController::SkinInfo. Reference to shape and skin instance.
SkinInfoSet A set of NiBoneLODController::SkinInfo.
SkinPartition Skinning data for a submesh, optimized for hardware skinning. Part of NiSkinPartition.
StringPalette A list of \\0 terminated strings.
TBC Tension, bias, continuity.
TexCoord Texture coordinates (u,v). As in OpenGL; image origin is in the lower left corner.
TexDesc NiTexturingProperty::Map. Texture description.
Triangle List of three vertex indices.
TriangleData Bethesda Havok. A triangle with extra data used for physics.
UnionBV
Vector3 A vector in 3D space (x,y,z).
Vector4 A 4-dimensional vector.
WeightDataEpicMickey
bhkBallAndSocketConstraintCInfo Serialization data for bhkBallAndSocketConstraint.
Point-to-point constraint that attempts to keep the pivot point of two bodies in the same space.
bhkCMSBigTri Bethesda extension of hkpCompressedMeshShape::BigTriangle. Triangles that don't fit the maximum size.
bhkCMSChunk Bethesda extension of hkpCompressedMeshShape::Chunk. A compressed chunk of hkpCompressedMeshShape geometry.
bhkConstraintCInfo Bethesda extension of hkpConstraintInstance.
bhkConstraintChainCInfo Bethesda extension of hkpConstraintChainInstance.
bhkConstraintMotorCInfo hkConstraintCinfo::SaveMotor(). Not a Bethesda extension of hkpConstraintMotor, but a wrapper for its serialization function.
bhkEntityCInfo
bhkHingeConstraintCInfo Serialization data for bhkHingeConstraint. A basic hinge with no angular limits or motor.
bhkLimitedHingeConstraintCInfo Serialization data for bhkLimitedHingeConstraint.
This constraint allows rotation about a specified axis, limited by specified boundaries.
bhkMalleableConstraintCInfo bhkMalleableConstraint serialization data. A constraint wrapper used to soften or harden constraints.
bhkMeshMaterial hkpBSMaterial, a subclass of hkpMeshMaterial. hkpMeshMaterial is a base class for material info for hkMeshShapes.
bhkPositionConstraintMotor Bethesda extension of hkpPositionConstraintMotor.
A motor which tries to reach a desired position/angle given a max force and recovery speed.
This motor is a good choice for driving a ragdoll to a given pose.
bhkPrismaticConstraintCInfo Serialization data for bhkPrismaticConstraint.
Creates a rail between two bodies that allows translation along a single axis with linear limits and a motor.
All three rotation axes and the remaining two translation axes are fixed.
bhkQsTransform Bethesda extension of hkQsTransform. The scale vector is not serialized.
bhkRagdollConstraintCInfo Serialization data for bhkRagdollConstraint.
The area of movement can be represented as a main cone + 2 orthogonal cones which may subtract from the main cone volume depending on limits.
bhkRigidBodyCInfo2010
bhkRigidBodyCInfo2014
bhkRigidBodyCInfo550_660
bhkSpringDamperConstraintMotor Bethesda extension of hkpSpringDamperConstraintMotor.
Tries to reach a given target position using an angular spring which has a spring constant.
bhkStiffSpringConstraintCInfo bhkStiffSpringConstraint serialization data. Holds two bodies at a specified distance from one another.
bhkVelocityConstraintMotor Bethesda extension of hkpVelocityConstraintMotor. Tries to reach and keep a desired target velocity.
bhkWorldObjCInfoProperty hkWorldObjectCinfo::Property struct
bhkWorldObjectCInfo
bhkWrappedConstraintData A constraint wrapper for polymorphic hkpConstraintData serialization.
hkAabb Havok AABB using min/max coordinates instead of center/half extents.
hkMatrix3 A 3x3 Havok matrix stored in 4x3 due to memory alignment.
hkQuaternion A quaternion as it appears in the havok objects.
hkSubPartData Bethesda Havok. Havok Information for packed TriStrip shapes.
hkpMoppCode
string A string type.