EvilEngine/SPLN: Difference between revisions
Content added Content deleted
EnergyDrink (talk | contribs) No edit summary Tag: Reverted |
(Undo revision 6996 by EnergyDrink (talk)) Tags: Undo Reverted |
||
Line 11:
==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}}
|
Revision as of 22:57, 16 May 2024
SPLN | |
---|---|
Spline | |
Type | Base |
Base Type | 0x49 |
Games used | The SpongeBob SquarePants Movie The Incredibles |
Format
SPLN are base assets, so they start with their 0x8 byte header, then are followed by:
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;
};
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 |