EvilEngine/SPLN: Difference between revisions

Add format
(Created page with "<onlyinclude> {{#vardefine:typeid|SPLN}}<nowiki/> {{#vardefine:name|Spline}}<nowiki/> {{#vardefine:type|Base}}<nowiki/> {{#vardefine:basetype|0x49}}<nowiki/> {{#vardefine:...")
 
(Add format)
Line 9:
</onlyinclude>
{{AutoAssetInfobox}}
 
==Format==
SPLN are [[Base|base assets]], so they start with their 0x8 byte header, then are followed by:
 
<source lang=cpp>
struct xSpline3
{
uint16 type;
uint16 flags;
uint32 N;
uint32 allocN;
xVec3* points;
float32* time;
xVec3* p12;
xVec3* bctrl;
float32* knot;
xCoef3* coef;
uint32 arcSample;
float32* arcLength;
};
</source>
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x8 || uint16 || '''type''' || Usually 3
|-
| 0xA || uint16 || '''flags''' ||
|-
| 0xC || uint32 || '''N''' ||
|-
| 0x10 || uint32 || '''allocN''' ||
|-
| 0x14 || [[Vector3]] || '''points''' ||
|-
| 0x20 || float32 || '''time''' ||
|-
| 0x24 || [[Vector3]] || '''p12''' ||
|-
| 0x30 || [[Vector3]] || '''bctrl''' ||
|-
| 0x3C || float32 || '''knot''' ||
|-
| 0x40 || [[Vector3]] || '''coef''' ||
|-
| 0x4C || uint32 || '''arcSample''' ||
|-
| 0x50 || float32 || '''arcLength''' ||
|-
|}
 
{{Assets}}