Difference between revisions of "Sims 3:0x03B4C61D"
From SimsWiki
HugeLunatic (Talk | contribs) (→56-byte Sections) |
m |
||
| (9 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{TS3AdvancedModdingHeader}} |
{{TS3Resource | {{TS3Resource | ||
|name=LITE | |name=LITE | ||
| Line 7: | Line 7: | ||
<br clear="all"> | <br clear="all"> | ||
==Overview== | ==Overview== | ||
| + | This is an RCOL chunk. | ||
==Format== | ==Format== | ||
| Line 17: | Line 18: | ||
--repetition Count128 128-byte Section: | --repetition Count128 128-byte Section: | ||
| − | DWORD [[# | + | DWORD [[#Light Types|Light type]] // type of light: point, spot etc |
| − | FLOAT | + | FLOAT[3] Transform // XYZ Position of light |
| − | FLOAT | + | FLOAT[3] Color // Diffuse color of light(RGB) |
| − | FLOAT | + | FLOAT Intensity // affects decay (how far the light reaches) rather than apparent brightness at source |
| − | + | --insert [[#Light Type-dependent data|Light type-dependent data]], to remainder of 31 floats | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
--repetition Count56 56-byte Section: | --repetition Count56 56-byte Section: | ||
| − | DWORD | + | DWORD [[#Occluder Types|Occluder Type]] // type of occluder |
| − | FLOAT[] | + | FLOAT[3] Origin |
| − | + | FLOAT[3] Normal | |
| − | + | FLOAT[3] XAxis | |
| − | + | FLOAT[3] YAxis | |
| + | FLOAT PairOffset | ||
| + | ==128-byte Sections== | ||
| + | ===Light Types=== | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
| − | ! Type!!Name | + | ! Type!!Name |
|- | |- | ||
| − | | | + | | 0x00000001||Ambient (unused) |
|- | |- | ||
| − | | | + | | 0x00000002||Directional (unused) |
|- | |- | ||
| − | | | + | | 0x00000003||[[#Point|Point]] |
|- | |- | ||
| − | | | + | | 0x00000004||[[#Spot|Spot]] |
| + | |- | ||
| + | | 0x00000005||[[#LampShade|LampShade]] | ||
| + | |- | ||
| + | | 0x00000006||[[#TubeLight|TubeLight]] | ||
| + | |- | ||
| + | | 0x00000007||[[#SquareAreaLight|SquareWindow]] | ||
| + | |- | ||
| + | | 0x00000008||[[#DiscAreaLight|CircularWindow]] | ||
| + | |- | ||
| + | | 0x00000009||[[#SquareAreaLight|SquareAreaLight]] | ||
| + | |- | ||
| + | | 0x0000000A||[[#DiscAreaLight|DiscAreaLight]] | ||
| + | |- | ||
| + | | 0x0000000B||[[#WorldLight|WorldLight]] | ||
|} | |} | ||
| + | ===Light Type-dependent data=== | ||
| + | ====Point==== | ||
| + | FLOAT[24] // No additional parameters | ||
| + | ====Spot==== | ||
| + | FLOAT[3] At // 3D vector for the direction of the light | ||
| + | FLOAT FalloffAngle // In degrees | ||
| + | FLOAT BlurScale | ||
| + | FLOAT[19] | ||
| + | ====LampShade==== | ||
| + | FLOAT[3] At // 3D vector for the direction of the light | ||
| + | FLOAT FalloffAngle // In degrees | ||
| + | FLOAT ShadeLightRigMultiplier | ||
| + | FLOAT BottomAngle // In degrees | ||
| + | FLOAT[3] ShadeColor // RGB | ||
| + | FLOAT[16] | ||
| + | ====TubeLight==== | ||
| + | FLOAT[3] At // 3D vector for the direction of the light | ||
| + | FLOAT TubeLength | ||
| + | FLOAT BlurScale | ||
| + | FLOAT[19] | ||
| + | ====SquareAreaLight==== | ||
| + | Also used for SquareWindow. | ||
| + | FLOAT[3] At // 3D vector for the direction of the light | ||
| + | FLOAT[3] Right // 3D vector | ||
| + | FLOAT Width | ||
| + | FLOAT Height | ||
| + | FLOAT FalloffAngle // In degrees | ||
| + | FLOAT WindowTopBottomAngle | ||
| + | FLOAT[14] | ||
| + | ====DiscAreaLight==== | ||
| + | Also used for CircularWindow. | ||
| + | FLOAT[3] At // 3D vector for the direction of the light | ||
| + | FLOAT[3] Right // 3D vector | ||
| + | FLOAT Radius | ||
| + | FLOAT[17] | ||
| + | ====WorldLight==== | ||
| + | FLOAT[24] // No additional parameters | ||
| − | ===== | + | ==56-byte Sections== |
| − | + | ===Occluder Types=== | |
| − | + | This controls the shape of the shadow thrown by the object. | |
| − | + | ||
| − | + | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| + | ! colspan="3" | Types | ||
| + | |- | ||
| + | ! Type!!Name | ||
| + | |- | ||
| + | | 0x00000000||Disc | ||
| + | |- | ||
| + | | 0x00000001||Rectangle | ||
|- | |- | ||
| − | |||
|} | |} | ||
| − | + | {{TS3AdvancedModdingHeader}} | |
| − | {{ | + | |
Latest revision as of 19:45, 26 February 2011
| Modding Reference by Category | |
|---|---|
|
Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference |
| LITE | ||
|---|---|---|
| TypeID: | 0x03B4C61D | |
| Game Version: | The Sims 3 | |
Contents |
[edit] Overview
This is an RCOL chunk.
[edit] Format
DWORD // 'LITE' DWORD // version DWORD BYTE Count128 BYTE Count56 SHORT --repetition Count128 128-byte Section: DWORD Light type // type of light: point, spot etc FLOAT[3] Transform // XYZ Position of light FLOAT[3] Color // Diffuse color of light(RGB) FLOAT Intensity // affects decay (how far the light reaches) rather than apparent brightness at source --insert Light type-dependent data, to remainder of 31 floats --repetition Count56 56-byte Section: DWORD Occluder Type // type of occluder FLOAT[3] Origin FLOAT[3] Normal FLOAT[3] XAxis FLOAT[3] YAxis FLOAT PairOffset
[edit] 128-byte Sections
[edit] Light Types
| Type | Name |
|---|---|
| 0x00000001 | Ambient (unused) |
| 0x00000002 | Directional (unused) |
| 0x00000003 | Point |
| 0x00000004 | Spot |
| 0x00000005 | LampShade |
| 0x00000006 | TubeLight |
| 0x00000007 | SquareWindow |
| 0x00000008 | CircularWindow |
| 0x00000009 | SquareAreaLight |
| 0x0000000A | DiscAreaLight |
| 0x0000000B | WorldLight |
[edit] Light Type-dependent data
[edit] Point
FLOAT[24] // No additional parameters
[edit] Spot
FLOAT[3] At // 3D vector for the direction of the light FLOAT FalloffAngle // In degrees FLOAT BlurScale FLOAT[19]
[edit] LampShade
FLOAT[3] At // 3D vector for the direction of the light FLOAT FalloffAngle // In degrees FLOAT ShadeLightRigMultiplier FLOAT BottomAngle // In degrees FLOAT[3] ShadeColor // RGB FLOAT[16]
[edit] TubeLight
FLOAT[3] At // 3D vector for the direction of the light FLOAT TubeLength FLOAT BlurScale FLOAT[19]
[edit] SquareAreaLight
Also used for SquareWindow.
FLOAT[3] At // 3D vector for the direction of the light FLOAT[3] Right // 3D vector FLOAT Width FLOAT Height FLOAT FalloffAngle // In degrees FLOAT WindowTopBottomAngle FLOAT[14]
[edit] DiscAreaLight
Also used for CircularWindow.
FLOAT[3] At // 3D vector for the direction of the light FLOAT[3] Right // 3D vector FLOAT Radius FLOAT[17]
[edit] WorldLight
FLOAT[24] // No additional parameters
[edit] 56-byte Sections
[edit] Occluder Types
This controls the shape of the shadow thrown by the object.
| Types | ||
|---|---|---|
| Type | Name | |
| 0x00000000 | Disc | |
| 0x00000001 | Rectangle | |
| Modding Reference by Category | |
|---|---|
|
Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference |