P3D Lod Sections: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→LodSection) |
||
Line 6: | Line 6: | ||
ulong FaceIndexBounds[2]; // lower vs upper (NoOfFaces in this section = (FaceUpperIndex - FaceLowerIndex) / 8 | ulong FaceIndexBounds[2]; // lower vs upper (NoOfFaces in this section = (FaceUpperIndex - FaceLowerIndex) / 8 | ||
ulong MaterialIndexBounds[2]; // ODOLV4x only | ulong MaterialIndexBounds[2]; // ODOLV4x only | ||
ulong | ulong CommonPointsUserValue; // see [[P3D Point and Face Flags]] | ||
short | // 0xC9 -> LodPoints 0x0C90003F | ||
ulong | // LodPointFlags are in a separate table for arma, and in the VertexTable for ofp (odol7) | ||
short CommonTextureIndex; // | |||
ulong CommonFaceFlags; // see [[P3D Point and Face Flags]] | |||
///////// // ODOLV4x only////// | ///////// // ODOLV4x only////// | ||
long MaterialIndex; | long MaterialIndex; | ||
Line 20: | Line 22: | ||
//////////////////////////////// | //////////////////////////////// | ||
} | } | ||
*a Material or Texture index with default value (-1) has no face/material associated with it and consequently the bounds are zero | |||
*In odol7 TextureIndexes and FaceFlags existed for every LodFace in the LodFace Structure, and repeated (as a block) here. | |||
*In Arma they are removed from the LodFaces. | |||
=Related Page(s)= | =Related Page(s)= |
Revision as of 19:48, 16 May 2010
LodSection
LodSection { ulong FaceIndexBounds[2]; // lower vs upper (NoOfFaces in this section = (FaceUpperIndex - FaceLowerIndex) / 8 ulong MaterialIndexBounds[2]; // ODOLV4x only ulong CommonPointsUserValue; // see P3D Point and Face Flags // 0xC9 -> LodPoints 0x0C90003F // LodPointFlags are in a separate table for arma, and in the VertexTable for ofp (odol7) short CommonTextureIndex; // ulong CommonFaceFlags; // see P3D Point and Face Flags ///////// // ODOLV4x only////// long MaterialIndex; if MaterialIndex ==-1 { byte ExtraByte; } ulong UnknowLong; // generally 2 float UnknownResolution; float UnknownResolution2; // generally 1000.0 //////////////////////////////// }
- a Material or Texture index with default value (-1) has no face/material associated with it and consequently the bounds are zero
- In odol7 TextureIndexes and FaceFlags existed for every LodFace in the LodFace Structure, and repeated (as a block) here.
- In Arma they are removed from the LodFaces.