nt2nb

Converts NIFF text into binary

Syntax

nt2nb input-file output-file

Description

Reads the text file input-file and outputs it to the NIFF data file output-file.

This command can convert the data output in text format by nb2nt into NIFF binary data.

Basically, each numeric written in text format and delimited by spaces is converted into 4 bytes of binary data. Character strings that are not numerics are skipped.

Texture data and NameList are not 4 byte data, so these are given special treatment. Please refer to the output of nb2nt.

Notes

If there are errors in the data list, sometimes the file cannot be converted.

Because floating data is rounded off with nb2nt, you cannot be certain you have returned to the original data when using nt2nb.

See Also

nb2nt