P3D Lod Edges

From Bohemia Interactive Community
Revision as of 16:40, 17 November 2021 by Lou Montana (talk | contribs) (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
bi symbol white.png
Disclaimer: This page describes internal undocumented structures of Bohemia Interactive software.

This page contains unofficial information.

Some usage of this information may constitute a violation of the rights of Bohemia Interactive and is in no way endorsed or recommended by Bohemia Interactive.
Bohemia Interactive is not willing to tolerate use of such tools if it contravenes any general licenses granted to end users of this community wiki or BI products.

LodEdges

struct
{
   LodEdge   LodEdge1;  //MlodIndex  
   LodEdge   LodEdge2;  //VertexIndex same Count as any of the VertexTable.Counts (odol7)
}

LodEdge

CompressedArray
{
 ulong   nEdges;
 ushort  Edges[nEdges];
};

Every vertex in the vertaxtable is owned only by 1 face.

These tables are used to join vertices. Each face has got 3 (or 4) vertices that are unique for each face

For each VertexIndex there is a lookup into the MlodIndex

MLODvertexindex = MlodIndex[VertexIndex[Count]];

Note that compression has not been seen in arma. (not large enough)

Related:

Model File Formats