User Tools

Site Tools


sur:surface

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sur:surface [2019/04/24 08:34]
treewyrm
sur:surface [2019/04/25 06:53] (current)
treewyrm
Line 77: Line 77:
  
 ^ Type ^ Name ^ Description ^ ^ Type ^ Name ^ Description ^
-| uint32 | Offset to point block  | Offset to points block | +| uint32 | Offset to point block  | Offset to points block   ​
-| uint32 | PartID/Node offset ​    | Object name hash       ​+| uint32 | PartID/Node offset ​    | Object name hash         ​
-| uint8  | Type                   | Hull type              +| uint8  | Type                   | Hull type                
-| uint24 | Unique edge references ​| Number of unique edge reference offsets ​+| uint24 | Reference count        ​| Number of refs in DWORDs ​
-| uint16 | Faces count            | Hull face count        +| uint16 | Faces count            | Hull face count          
-| uint16 | Padding ​               | 0                      |+| uint16 | Padding ​               | 0                        |
  
   * Offset to points block is relative to itself.   * Offset to points block is relative to itself.
Line 88: Line 88:
   * Type 5 is wrap. Used for grouping multiple hulls, one per mesh. Not present if mesh contains only one hull.   * Type 5 is wrap. Used for grouping multiple hulls, one per mesh. Not present if mesh contains only one hull.
   * If hull is wrap its partID instead will be offset to node in BSP tree.   * If hull is wrap its partID instead will be offset to node in BSP tree.
 +  * Reference count is number of triangle point refs + hull header in DWORDs: (12 + triangle.count * 6) / 4.
 +  * Convex hull will always have even number of triangles as simplex is made of four triangles, edge division splits adjacent faces in half while subdividing face replaces one for three.
  
 Followed by this block repeated faces count times: Followed by this block repeated faces count times:
sur/surface.txt · Last modified: 2019/04/25 06:53 by treewyrm