Skip to content

Static Model List Format

brett19 edited this page Oct 11, 2014 · 4 revisions

Base Format

#header {
  uint32 model_count
  for(i = 0; i < model_count; ++i) {
    uint32 data_offset  // 0xFFFFFFFF for invalid model
  }
}
#data {
  for() {
    uint32 part_count
    uint32 effect_count
    for (j = 0; j < part_count; ++j) {
      .material {
        uint32 texture_file_hash
        uint32:1 alpha_enabled
        uint32:1 two_sided
        uint32:1 alpha_test
        uint32:1 depth_test
        uint32:1 depth_write
        uint32:1 use_specular
        uint32 blend_type
        float alpha_ref
        float opacity
      }
      uint32 mesh_file_hash
      uint32 anim_file_hash
      float3 position
      float4 rotation
      float3 scale
      uint32 parent
      uint32 collisionMode
    }
    for(j = 0; j < effect_count; ++j) {
      uint32 effect_file_hash
      float3 position
      float4 rotation
      float3 scale
      uint32 parent
    }
  }
}

Clone this wiki locally