Talk:FTL file format

From Arx Libertatis Wiki
Jump to navigation Jump to search

Data that needs clarification

Faces

s32 facetype; // 0 = flat, 1 = text, 2 = Double-Side

u32 rgb[IOPOLYVERT_FTL];

u16 vid[IOPOLYVERT_FTL];

s16 texid;

f32 u[IOPOLYVERT_FTL];

f32 v[IOPOLYVERT_FTL];

s16 ou[IOPOLYVERT_FTL];

s16 ov[IOPOLYVERT_FTL];

f32 transval;

SavedVec3 norm;

SavedVec3 nrmls[IOPOLYVERT_FTL];

f32 temp;


  • How is the rendering of the different face types handled?
  • Is RGB actually used?
  • What are ou and ov? Offsets?
  • What's transval?
  • Is temp garbage?


Vertices

SavedVec3 pos;

f32 rhw;

u32 color;

u32 specular;

f32 tu;

f32 tv;

SavedVec3 v;

SavedVec3 norm;


  • What's rhw?
  • Is color actually used?
  • Is specular actually used?
  • Faces already set UV data. Why tu and tv?
  • Faces already set corner normals. Why norm?


Groups

char name[256];

s32 origin;

s32 nb_index;

s32 indexes;

f32 siz;


  • What's the purpose of origin? Is it the position of the deforming joint? Then where's the rest of the joint data?
  • What's siz?


Actions

char name[256];

s32 idx; // index vertex;

s32 action;

s32 sfx;


  • What's action?
  • What's sfx?