Difference between revisions of "Sims 3:0x03B4C61D"

From SimsWiki
Jump to: navigation, search
m
m (Known Types)
Line 38: Line 38:
 
Use the colour (rgb) settings to make softer lighting.
 
Use the colour (rgb) settings to make softer lighting.
 
===Known Types===
 
===Known Types===
 +
====128-byte Sections====
 
Actual usage of the light parameters varies by type of light, as follows:
 
Actual usage of the light parameters varies by type of light, as follows:
 
{| border="1"
 
{| border="1"
 
|-
 
|-
! Type!!Name!!F7!!F8!!F9!!F10!!F11!!F12!!F13!!F14!!F15
+
! Type!!Name!!F7!!F8!!F9!!F10!!F11!!F12!!F13!!F14!!F15!!...
 
|-
 
|-
| 0x03||Point||Y||-||-||-||-||-||-||-||-
+
| 0x03||Point||Y||-||-||-||-||-||-||-||-||...
 
|-
 
|-
| 0x04||Spot||Y||Y||Y||Y||Y||Y||-||-||-
+
| 0x04||Spot||Y||Y||Y||Y||Y||Y||-||-||-||...
 
|-
 
|-
| 0x07||Window||?||-||-||-||-||-||-||Y||Y
+
| 0x07||Window||?||-||-||-||-||-||-||Y||Y||...
 
|-
 
|-
| 0x09||Area||?||-||-||-||-||-||-||Y||Y
+
| 0x09||Area||?||-||-||-||-||-||-||Y||Y||...
 +
|}
 +
====56-byte Sections====
 +
{| border="1"
 +
|-
 +
! Type!!Name!!...
 
|}
 
|}
 
<hr/>
 
<hr/>
 
[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:PackedFileTypes]]
 
[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:PackedFileTypes]]
 
<br/>[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:RCOL]]
 
<br/>[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:RCOL]]

Revision as of 07:52, 20 March 2010

Tutorials:TS3 Advanced Coding Tutorials -> Sims 3:PackedFileTypes
Tutorials:TS3 Advanced Coding Tutorials -> Sims 3:RCOL


Contents

Overview

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

Notes

Intensity affects decay (how far the light reaches) rather than apparent brightness at source. Use the colour (rgb) settings to make softer lighting.

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 ...

56-byte Sections

Type Name ...

Tutorials:TS3 Advanced Coding Tutorials -> Sims 3:PackedFileTypes
Tutorials:TS3 Advanced Coding Tutorials -> Sims 3:RCOL

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox