TF

AZOR: File Formats - Binary Geometry File (BF)

(1997R2 object file format, prepared in cooperation with Frank F. Little, PhD. Modern Cartoons.)


Main Page

Document index

Basics:
The BF file format consists of four-character tags, followed by block lengths (4 bytes), followed by each block's data. Byte ordering is high-endian (RISC).

Tags:
The following are currently recognized tags:
'ALGN' no body
Byte alignment check block.
'VERT' float[][3]
Array of verteces.
'NORM' float[][3]
Array of surface normals.
'UTEX' float[][2]
Array of texture coordinates.
(range of 0.0 - 1.0, 0.0 - 1.0)
'SURF' char[32] + float[3]
Surface name & default color.
'FACE' unsigned short[]...
List of polygons with attributes & indices.

Face data is packed into the 'FACE' block in the following manner:
word[0] = face type
type : (0=v flat*, 1=v + n, 3=v + t flat*, 5=v + t + n)
word[1] = surface index reference
word[2] = face size

... indices: short[]

*NOTE For flat face types (0 & 3), an additional indice after the vertex list points to the normal for the face, or 0 indicating that one needs to be generated.

'TIME' char[]
Timecode and misc comment field.
'DONE' no body
Signals the end of geometry information.
(used for streaming.)


©1997 Twin Forces, Inc. All rights reserved.
Comments to woolstar@twinforces.com.
ÿ