Texture Definition

From owdev
Revision as of 00:37, 17 June 2016 by Yukimono (talk | contribs) (Created page with "0B3 files are in the following format: == Types == struct texture_t { uint64 key; // key of texture uint32 unk; // ? uint32 layer; // UV Layer? if it's ab...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

0B3 files are in the following format:

Types

 struct texture_t {
   uint64 key;   // key of texture
   uint32 unk;   // ?
   uint32 layer; // UV Layer? if it's above 0, subtract 1, might be flags.
 }

Format

 struct header {
   uint64 offset1;        // ?
   uint64 offset2;        // ?
   uint64 texture_offset; // offset to texture_t data
   uint64 offset3;        // ?
   uint32 unk1;           // ?
   uint16 unk2;           // ?
   uint16 unk3;           // ?
   uint8  texture_count;  // * texture_t
   uint8  offset3_count;  // ?
   uint16 unk4;           // ? might be uint8 + uint8
   uint32 unk5;           // ?
 }

If you seek to texture offset, you get a series of texture_t structures * textureCount