Difference between revisions of "Sims 3:0x03B4C61D"
m (→Overview) |
|||
| Line 68: | Line 68: | ||
! Type!!Name!!... | ! Type!!Name!!... | ||
|} | |} | ||
| + | ==Lights== | ||
| + | 128-byte sections. Padded with zeroes after the params to get to 128 bytes. | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name | ||
| + | |- | ||
| + | | 0x00000001||[[Sims_3:0x03B4C61D#Ambient|Ambient]] | ||
| + | |- | ||
| + | | 0x00000002||[[Sims_3:0x03B4C61D#Directional|Directional]] | ||
| + | |- | ||
| + | | 0x00000003||[[Sims_3:0x03B4C61D#Point|Point]] | ||
| + | |- | ||
| + | | 0x00000004||[[Sims_3:0x03B4C61D#Spot|Spot]] | ||
| + | |- | ||
| + | | 0x00000005||[[Sims_3:0x03B4C61D#LampShade|LampShade]] | ||
| + | |- | ||
| + | | 0x00000006||[[Sims_3:0x03B4C61D#TubeLight|TubeLight]] | ||
| + | |- | ||
| + | | 0x00000007||[[Sims_3:0x03B4C61D#SquareWindow|SquareWindow]] | ||
| + | |- | ||
| + | | 0x00000008||[[Sims_3:0x03B4C61D#CircularWindow|CircularWindow]] | ||
| + | |- | ||
| + | | 0x00000009||[[Sims_3:0x03B4C61D#SquareAreaLight|SquareAreaLight]] | ||
| + | |- | ||
| + | | 0x0000000A||[[Sims_3:0x03B4C61D#DiscAreaLight|DiscAreaLight]] | ||
| + | |- | ||
| + | | 0x0000000B||[[Sims_3:0x03B4C61D#WorldLight|WorldLight]] | ||
| + | |} | ||
| + | ===Common=== | ||
| + | Present in all lights | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||Transform|| XYZ Position of light | ||
| + | |- | ||
| + | | Float3||Color|| Diffuse color of light(RGB) | ||
| + | |- | ||
| + | | Float||Intensity||affects decay (how far the light reaches) rather than apparent brightness at source | ||
| + | |} | ||
| + | ===Ambient=== | ||
| + | Unused | ||
| + | ===Directional=== | ||
| + | Unused | ||
| + | ===Point=== | ||
| + | No additional parameters | ||
| + | ===Spot=== | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||At|| 3D vector for the direction of the light | ||
| + | |- | ||
| + | | Float||FalloffAngle|| In degrees | ||
| + | |- | ||
| + | | Float||BlurScale|| | ||
| + | |} | ||
| + | ===LampShade=== | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||At|| 3D vector for the direction of the light | ||
| + | |- | ||
| + | | Float||FalloffAngle|| In degrees | ||
| + | |- | ||
| + | | Float||ShadeLightRigMultiplier|| | ||
| + | |- | ||
| + | | Float||BottomAngle|| In degrees | ||
| + | |- | ||
| + | | Float3||ShadeColor|| RGB | ||
| + | |} | ||
| + | ===TubeLight=== | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||At|| 3D vector for the direction of the light | ||
| + | |- | ||
| + | | Float||TubeLength|| | ||
| + | |- | ||
| + | | Float||BlurScale|| | ||
| + | |} | ||
| + | ===SquareWindow=== | ||
| + | See [[Sims_3:0x03B4C61D#SquareAreaLight|SquareAreaLight]] | ||
| + | ===CircularWindow=== | ||
| + | See [[Sims_3:0x03B4C61D#DiscAreaLight|DiscAreaLight]] | ||
| + | ===SquareAreaLight=== | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||At|| 3D vector for the direction of the light | ||
| + | |- | ||
| + | | Float3||Right|| 3D vector | ||
| + | |- | ||
| + | | Float||Width|| | ||
| + | |- | ||
| + | | Float||Height|| | ||
| + | |- | ||
| + | | Float||FalloffAngle|| | ||
| + | |- | ||
| + | | Float||WindowTopBottomAngle|| | ||
| + | |} | ||
| + | ===DiscAreaLight=== | ||
| + | {| class="wikitable" border="1" | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||At|| 3D vector for the direction of the light | ||
| + | |- | ||
| + | | Float3||Right|| 3D vector | ||
| + | |- | ||
| + | | Float||Radius|| | ||
| + | |} | ||
| + | |||
| + | ===WorldLight=== | ||
| + | No additional parameters | ||
| + | |||
| + | ==Occluders== | ||
| + | 56-byte section | ||
| + | {| class="wikitable" border="1" | ||
| + | ! colspan="3" | Types | ||
| + | |- | ||
| + | ! Type!!Name | ||
| + | |- | ||
| + | | 0||Disc | ||
| + | |- | ||
| + | | 1||Rectangle | ||
| + | |- | ||
| + | |} | ||
| + | |||
| + | {| class="wikitable" border="1" | ||
| + | ! colspan="3" | Parameters | ||
| + | |- | ||
| + | ! Type!!Name!!Description | ||
| + | |- | ||
| + | | Float3||Origin|| F1-F3 | ||
| + | |- | ||
| + | | Float3||Normal|| F4-F6 | ||
| + | |- | ||
| + | | Float3||XAxis|| F7-F9 | ||
| + | |- | ||
| + | | Float3||YAxis|| F10-F12 | ||
| + | |- | ||
| + | | Float||PairOffset|| F13 | ||
| + | |} | ||
{{TS3AdvancedModdingHeader}} | {{TS3AdvancedModdingHeader}} | ||
Revision as of 20:23, 7 November 2010
| 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 |
Overview
This is an RCOL chunk.
Format
DWORD // 'LITE' DWORD // version DWORD BYTE Count128 BYTE Count56 SHORT --repetition Count128 128-byte Section: DWORD Type // type of light: point, spot etc FLOAT F1 // x position in tiles (+ moves to object's left) FLOAT F2 // y position in metres (+ moves up) FLOAT F3 // z position in tiles (+ moves in front of object) FLOAT F4 // red 0-1 FLOAT F5 // green 0-1 FLOAT F6 // blue 0-1 --see table below for usage of the following FLOAT F7 // intensity FLOAT F8 // (0-1) affects rotation about y FLOAT F9 // (0-1) affects rotation about z FLOAT F10 // (0-1) affects rotation about x FLOAT F11 // affects cone angle. Probably bare degrees FLOAT F12 FLOAT F13 FLOAT F14 // width (dimension) FLOAT F15 // height (dimension) these affect area of the light source // (or amount of daylight let in by window) and thus amount of light FLOAT[] F16-F31 // more light parameters --repetition Count56 56-byte Section: DWORD FLOAT[] F1-F13 // light parameters, not all used at once
Known Types
128-byte Sections
Actual usage of the light parameters varies by type of light, as follows:
| Type | Name | F7 | F8 | F9 | F10 | F11 | F12 | F13 | F14 | F15 | ... |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x03 | Point | Y | - | - | - | - | - | - | - | - | ... |
| 0x04 | Spot | Y | Y | Y | Y | Y | Y | - | - | - | ... |
| 0x07 | Window | ? | - | - | - | - | - | - | Y | Y | ... |
| 0x09 | Area | ? | - | - | - | - | - | - | Y | Y | ... |
Notes
Intensity affects decay (how far the light reaches) rather than apparent brightness at source. Use the colour (rgb) settings to make softer lighting.
56-byte Sections
This controls the shape of the shadow thrown by the object.
| Type | Name | ... |
|---|
Lights
128-byte sections. Padded with zeroes after the params to get to 128 bytes.
| Type | Name |
|---|---|
| 0x00000001 | Ambient |
| 0x00000002 | Directional |
| 0x00000003 | Point |
| 0x00000004 | Spot |
| 0x00000005 | LampShade |
| 0x00000006 | TubeLight |
| 0x00000007 | SquareWindow |
| 0x00000008 | CircularWindow |
| 0x00000009 | SquareAreaLight |
| 0x0000000A | DiscAreaLight |
| 0x0000000B | WorldLight |
Common
Present in all lights
| Type | Name | Description |
|---|---|---|
| Float3 | Transform | XYZ Position of light |
| Float3 | Color | Diffuse color of light(RGB) |
| Float | Intensity | affects decay (how far the light reaches) rather than apparent brightness at source |
Ambient
Unused
Directional
Unused
Point
No additional parameters
Spot
| Type | Name | Description |
|---|---|---|
| Float3 | At | 3D vector for the direction of the light |
| Float | FalloffAngle | In degrees |
| Float | BlurScale |
LampShade
| Type | Name | Description |
|---|---|---|
| Float3 | At | 3D vector for the direction of the light |
| Float | FalloffAngle | In degrees |
| Float | ShadeLightRigMultiplier | |
| Float | BottomAngle | In degrees |
| Float3 | ShadeColor | RGB |
TubeLight
| Type | Name | Description |
|---|---|---|
| Float3 | At | 3D vector for the direction of the light |
| Float | TubeLength | |
| Float | BlurScale |
SquareWindow
See SquareAreaLight
CircularWindow
See DiscAreaLight
SquareAreaLight
| Type | Name | Description |
|---|---|---|
| Float3 | At | 3D vector for the direction of the light |
| Float3 | Right | 3D vector |
| Float | Width | |
| Float | Height | |
| Float | FalloffAngle | |
| Float | WindowTopBottomAngle |
DiscAreaLight
| Type | Name | Description |
|---|---|---|
| Float3 | At | 3D vector for the direction of the light |
| Float3 | Right | 3D vector |
| Float | Radius |
WorldLight
No additional parameters
Occluders
56-byte section
| Types | ||
|---|---|---|
| Type | Name | |
| 0 | Disc | |
| 1 | Rectangle | |
| Parameters | ||
|---|---|---|
| Type | Name | Description |
| Float3 | Origin | F1-F3 |
| Float3 | Normal | F4-F6 |
| Float3 | XAxis | F7-F9 |
| Float3 | YAxis | F10-F12 |
| Float | PairOffset | F13 |
| Modding Reference by Category | |
|---|---|
|
Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference |