niffopt

Optimizes Vtx and VtxNv in the NIFF1.0 data

Syntax

>     niffopt <input file> <output file>

Description

niffopt is a filter that compensates for the optimization process of the niff2gfx converter. It optimizes the NIFF1.0 data's Vtx and VtxNv data.

Whith niff2gfx,Shape animation data is output as Raw Data, and the NIFF data's Vtx (vertex coordinates) and VtxNv (normal vector of the vertex) data is output as-is. Because this data eats up a large amount of memory, the niffopt command can be used to optimize the data and thereby economize on memory.

niffopt does not support NIFF 2.0 data, but there is no need to use the command in this case because the niff2nvf converter executes this same kind of optimization during the conversion process.

Notes

niffopt works to minimize the Vtx and VtxNv data. It is particularly effective when VtxNv Raw Data is output for niff2gfx model data. But when the data does not have Shape animation, the output from the CG tool is often already optimized. In these cases, the model data does not change even when processed with niffopt.

Furthermore, at this stage, if there are too many vertices, then memory cannot be secured for the program and problems will arise. In the SGI version, the program will automatically terminate if enough memory cannot be secured. But in the Windows version, the program will continue to try to secure memory, and this will interfere with the operation of Windows. If this occurs, stop the program using Ctrl-C.

See Also

niff2gfx
niff2nvf