EvilEngine/LKIT: Difference between revisions

m
Seil moved page LKIT to EvilEngine/LKIT
Battlepedia>Seil
(Created page with "==Format== Header: {| class="wikitable" ! Offset !! Type !! Description |- | 0x00 || char[4] || '''"TIKL"''' |- | 0x04 || int || null |- | 0x08 || int || '''Number of Lights'...")
 
m (Seil moved page LKIT to EvilEngine/LKIT)
 
(10 intermediate revisions by 4 users not shown)
Line 1:
<onlyinclude>
{{#vardefine:typeid|LKIT}}<nowiki/>
{{#vardefine:name|LightKit}}<nowiki/>
{{#vardefine:type|[[Binary]]}}<nowiki/>
{{#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==
===xLightKit:===
Header:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || char[4]uint || '''tagID''' || '''"TIKL"'''
|-
| 0x04 || intuint || '''groupID''' || null
|-
| 0x08 || intuint || '''lightCount''' || Number of Lights'''
|-
| 0x0C || intuint || null'''lightList''' ||
|-
| 0x10 || AssetID? || '''blended''' || '''Only Present in ROTU'''
|}
 
===xLightKitLight:===
Light:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || intuint || '''Type?type''' Always 1 or 2||
* 1 - Ambient light
* 2 - Directional light
|-
| 0x04 || float[23[Vector4]] || '''color''' || unknownRGBA
|-
| 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.
 
{{Assets}}
{{AutoGameNavs}}
 
[[Category:Asset]]