EvilEngine/LKIT: Difference between revisions
Content added Content deleted
Battlepedia>Seil (→Format) |
m (Seil moved page LKIT to EvilEngine/LKIT) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> |
|||
{{AssetInfobox |
|||
{{#vardefine:typeid|LKIT}}<nowiki/> |
|||
|subtitle=LightKit |
|||
{{#vardefine:name|LightKit}}<nowiki/> |
|||
|type=[[Binary]] |
|||
{{#vardefine:type|[[Binary]]}}<nowiki/> |
|||
|games=Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}} |
|||
{{#vardefine:basetype|}}<nowiki/> |
|||
{{#vardefine:games|BFBB TSSM Incredibles ROTU RatProto}}<nowiki/> |
|||
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Core/x/xLightKit.h xLightKit.h]}}<nowiki/> |
|||
{{#vardefine:image|}}<nowiki/> |
|||
</onlyinclude> |
|||
{{AutoAssetInfobox}} |
|||
==Format== |
==Format== |
||
===xLightKit:=== |
|||
Header: |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| 0x00 || |
| 0x00 || uint || '''tagID''' || '''"TIKL"''' |
||
|- |
|- |
||
| 0x04 || |
| 0x04 || uint || '''groupID''' || |
||
|- |
|- |
||
| 0x08 || |
| 0x08 || uint || '''lightCount''' || Number of Lights |
||
|- |
|- |
||
| 0x0C || |
| 0x0C || uint || '''lightList''' || |
||
|- |
|||
| 0x10 || AssetID? || '''blended''' || '''Only Present in ROTU''' |
|||
|} |
|} |
||
===xLightKitLight:=== |
|||
Light: |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| 0x00 || |
| 0x00 || uint || '''type''' || |
||
* 1 - Ambient light |
* 1 - Ambient light |
||
* 2 - Directional light |
* 2 - Directional light |
||
|- |
|- |
||
| 0x04 || |
| 0x04 || [[Vector4]] || '''color''' || RGBA |
||
|- |
|- |
||
| |
| 0x14 || [[Vector3]] || null || |
||
|- |
|- |
||
| |
| 0x20 || float || null || |
||
|- |
|- |
||
| |
| 0x24 || [[Vector3]] || null || |
||
|- |
|- |
||
| |
| 0x30 || float || null|| |
||
|- |
|- |
||
| |
| 0x34 || [[Vector3]] || null || |
||
|- |
|- |
||
| |
| 0x40 || float || null || |
||
|- |
|- |
||
| |
| 0x44 || [[Vector3]] || null || |
||
|- |
|- |
||
| |
| 0x50 || float || null || |
||
|- |
|- |
||
| 0x54 || float || '''radius''' || |
|||
| 0x50 || float || unknown (always 0 for ambient lights, 1 for directional lights) |
|||
|- |
|- |
||
| |
| 0x58 || float || '''angle''' || |
||
|- |
|||
| 0x5C || ?? || '''platLight''' || |
|||
|} |
|} |
||
The direction vector determines what direction a directional light will point to. This does not point to a particular spot, but rather at an angle all throughout the map. These values can be positive or negative. |
|||
The other vectors serve no apparent purpose. |
|||
{{Assets}} |
|||
{{AutoGameNavs}} |
|||
[[Category:Asset]] |
[[Category:Asset]] |
Latest revision as of 22:43, 15 September 2022
LKIT | |
---|---|
LightKit | |
Type | Binary |
Games used | Battle for Bikini Bottom The SpongeBob SquarePants Movie |
Source code | xLightKit.h |
Format
xLightKit:
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | uint | tagID | "TIKL" |
0x04 | uint | groupID | |
0x08 | uint | lightCount | Number of Lights |
0x0C | uint | lightList | |
0x10 | AssetID? | blended | Only Present in ROTU |
xLightKitLight:
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | uint | type |
|
0x04 | Vector4 | color | RGBA |
0x14 | Vector3 | null | |
0x20 | float | null | |
0x24 | Vector3 | null | |
0x30 | float | null | |
0x34 | Vector3 | null | |
0x40 | float | null | |
0x44 | Vector3 | null | |
0x50 | float | null | |
0x54 | float | radius | |
0x58 | float | angle | |
0x5C | ?? | platLight |
The direction vector determines what direction a directional light will point to. This does not point to a particular spot, but rather at an angle all throughout the map. These values can be positive or negative.
The other vectors serve no apparent purpose.