Difference between revisions of "Sims 3:0x03B4C61D"

From SimsWiki
Jump to: navigation, search
m (Fluffify)
Line 1: Line 1:
<pre>
+
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
DWORD - LITE
+
<br/>[[Sims 3:Main Page]] -> [[Sims 3:Catalog Resource]]
DWORD - Version
+
<hr/>
DWORD
+
==Overview==
BYTE - 128 Section count
+
==Format==
BYTE - 56 Section count
+
DWORD // 'LITE'
SHORT
+
DWORD // version
 
+
DWORD
-128 byte Sections
+
BYTE Count128
DWORD Type? probably type of light: point, spot etc
+
BYTE Count56
31 Floats (light parameters. not all used at once)
+
SHORT
        F1 x position in tiles (+ moves to object's left)
+
        F2 y position in metres (+ moves up)
+
--repetition Count128 128-byte Section:
        F3 z position in tiles (+ moves in front of object)
+
DWORD [[#Known_Types|Type]] // type of light: point, spot etc
        F4 red 0-1
+
FLOAT F1 // x position in tiles (+ moves to object's left)
        F5 green 0-1
+
FLOAT F2 // y position in metres (+ moves up)
        F6 blue 0-1
+
FLOAT F3 // z position in tiles (+ moves in front of object)
        F7-F31 varies according to Type
+
FLOAT F4 // red 0-1
       
+
FLOAT F5 // green 0-1
        Type 0x03 (point)
+
FLOAT F6 // blue 0-1
          F7 intensity
+
--see [[#Known_Types|table below]] for usage of the following
        Type 0x04 (spot)
+
FLOAT F7 // [[#Notes|intensity]]
          F7 intensity
+
FLOAT F8 // (0-1) affects rotation about y
          F8 (0-1) affects direction rotation about y
+
FLOAT F9 // (0-1) affects rotation about z
          F9 (0-1) affects direction rotation about z
+
FLOAT F10 // (0-1) affects rotation about x
          F10 (0-1) affects direction rotation about x
+
FLOAT F11 // affects cone angle.  Probably bare degrees
          F11 affects cone angle.  Probably bare degrees
+
FLOAT F12
        Type 0x07 (window)
+
FLOAT F13
          F7 (I couldn't get this to do anything - ymmv)
+
FLOAT F14 // width (dimension)
          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
          F15 height (dimension) these two affect amount of daylight let in by window
+
FLOAT[] F16-F31 // more light parameters
        Type 0x09 (area)
+
          F7 intensity
+
--repetition Count56 56-byte Section:
          F14 width (dimension)
+
DWORD  
          F15 height (dimension) these affect area of the light source and thus amount of light.
+
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.
-56 byte Sections
+
DWORD  
+
13 FLOATS (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.
 
Use the colour (rgb) settings to make softer lighting.
</pre>
+
===Known Types===
 +
Actual usage of the light parameters varies by type of light, as follows:
 +
{| border="1"
 +
|-
 +
! 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
 +
|}
 +
<hr/>
 +
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
 +
<br/>[[Sims 3:Main Page]] -> [[Sims 3:Catalog Resource]]

Revision as of 07:48, 20 March 2010

Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:Catalog Resource


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

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

Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:Catalog Resource

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox