Difference between revisions of "Sims 3:0x01D0E75D"

From SimsWiki
Jump to: navigation, search
(Material Definition)
(Shader Types)
Line 51: Line 51:
 
|DropShadow||0xc09c7582
 
|DropShadow||0xc09c7582
 
|-
 
|-
|GlassForObjects||492eca7c
+
|GlassForObjects||0x492eca7c
 
|}
 
|}
 +
 
===Field Types===
 
===Field Types===
 
Field types have been observed as the following values (Under construction)
 
Field types have been observed as the following values (Under construction)

Revision as of 00:44, 23 August 2009

Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:RCOL


Material Definition

This is a Sims_3:RCOL chunk.

DWORD // 'MATD'
DWORD version
DWORD // Either some sort of hash or 0 - Material name?
DWORD // Either some sort of hash or 0 - Shader type
DWORD length // Length of data that follows
IF version >= 0x301
  DWORD
  DWORD
Various data

The various data can be one of the following

if version < 0x103
  DWORD // 'MTRL'
if version >= 0x103
  DWORD // 'MTNF'
DWORD
if version < 0x103
  WORD
  WORD
if version >= 0x103
  DWORD datasize // Size of the following data block
DWORD count
count repeats of
  DWORD field type hash // Not sure of the sources or names
  DWORD data type // 1 = float, 2 = dword, 4 = dword
  DWORD data count
  DWORD offset // From the start of MTRL
count repeats of
  data count repeats of
    type defined data
    padding to DWORD boundry

Shader Types

Shader types have been observed as the following values (Under construction)

Data Hash
Counters 0xa4172f62
phong-alpha 0xfc5fc212
GlassForPortals 0x81dd204d
additive 0x5af16731
DropShadow 0xc09c7582
GlassForObjects 0x492eca7c

Field Types

Field types have been observed as the following values (Under construction)

Data Hash
AlphaMaskThreshold e77a2b60
Ambient 0x04a5daa3
Diffuse 0x637daa05
DiffuseMap 0x6cc0fd85
DiffuseUVScale 0x2d4e507e
DiffuseUVSelector 0x91eebaff
Emission 0x3bd441a0
FresnelOffset 0xfb66a8cb
ImposterDetailTexture 0x56e1c6b2
ImposterTexture 0xbdcf71c5
ImposterTextureAOandSI 0x15c9d298
ImposterTextureWater 0xbf3fb9fa
MaskHeight 0x849cdadc
MaskWidth 0x707f712f
NormalMap 0x6e56548a
NormalMapScale 0x3c45e334
NormalUVScale 0xba2d1ab9
Reflective 0x73c9923e
Shininess 0xf755f7ff
Specular 0x2ce11842
SpecStyle 0x9554d40f
SpecularMap 0xad528a60
SpecularUVScale 0xf12e27c3
SpecularUVSelector 0xb63546ac
TextureSpeedScale 0x583df357
Transparency 0x05d22fd3
Transparent 0x988403f9
UVScrollSpeed 0xf2eea6ec
UVScales 0x420520e9



Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:RCOL

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox