FANDOM


The 3DF files are used in Carnivores, Carnivores 2, and Carnivores Ice Age as 3D model files for the binoculars, compass, sun, and moon, and are located in the \HUNTDAT folder. This is a simplified version of the CAR format, and of the format of objects in RSC files.

Code Edit

...

Format Edit

// header (16 bytes)

long     - number of points/vertices
long     - number of triangles
long     - number of bones
long     - texture length in bytes

// for each triangle (64 bytes)

long     - point 1
long     - point 2
long     - point 3
long     - texture point 1 X coordinate
long     - texture point 2 X coordinate
long     - texture point 3 X coordinate
long     - texture point 1 Y coordinate
long     - texture point 2 Y coordinate
long     - texture point 3 Y coordinate
long     - flags:
bit       - sfDoubleSide (0x0001; marks triangle as textured on both sides)
bit       - sfDarkBack (0x0002; marks triangle as having a dark back side)
bit       - sfOpacity (0x0004; marks triangle as transparent)
bit       - sfTransparent (0x0008; marks triangle as non-solid (bullets pass through harmlessly))
bit       - sfMortal (0x0010; marks triangle as a target zone)
bit       - sfPhong? (0x0030; marks triangle as Phong mapped)
bit       - sfEnvMap? (0x0050; marks triangle as Environment mapped)
bit       - sfNeedVC (0x0080)
bit(7)    - unknown/unused (0x0100–0x4000)
bit       - sfDark (0x8000; marks triangle as having a dark front side)
long     - unknown
long     - index to the "parent" triangle, -1 if it hasn't
long     - unknown
long     - unknown
long     - unknown
long     - unknown

// for each point (16 bytes)

float    - X coordinate
float    - Y coordinate
float    - Z coordinate
short    - bone to which point is attached
short    - boolean visibility of point

// for each bone (48 bytes)

byte(32) - name
float    - X coordinate
float    - Y coordinate
float    - Z coordinate
short    - index to the "parent" bone, -1 if there is no parent
short    - boolean visibility of bone (normally false)

byte(x)  - texture (16-bit TGA-style encoding, always 256 pixels wide)

External links Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.