This repository was archived by the owner on Dec 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Geometry Cache
demiurghg edited this page May 23, 2016
·
6 revisions
TYPE DESCRIPTION
--------------------------------------------------------
FourCC raw geometry cache file header ("GCRW")
int file formar version (must be 1)
--------------------------------------------------------
FourCC texture section ("TEX0")
int number of textures
string,string[] material & texture names
--------------------------------------------------------
FourCC indices section ("IDX0")
int number of indices
int number of vertices
int[] indices data
--------------------------------------------------------
FourCC subset section ("SBST")
int number of subsets
(int,int)[] start index, index count
--------------------------------------------------------
FourCC animated data section ("ANIM")
int number of frames
float frame rate (frames per second)
--------------------------------------------------------
*** frame section repeats 'number_of_frames' times ***
--------------------------------------------------------
FourCC frame data section ("FRM0")
int reserved (must be 0)
vertex[] vertex data:
- Vector3 - position
- Vector2 - texture coordinates
- Vector3 - normal
- Vector3 - tangent
- Vector3 - binormal
- Half4 - color
--------------------------------------------------------