Difference between revisions of "Sims 3:0x01D0E723"

From SimsWiki
Jump to: navigation, search
Line 11: Line 11:
 
   
 
   
 
  For each count vertex declaration, a packed form of [http://msdn.microsoft.com/en-us/library/bb172630(VS.85).aspx D3DVERTEXELEMENT]
 
  For each count vertex declaration, a packed form of [http://msdn.microsoft.com/en-us/library/bb172630(VS.85).aspx D3DVERTEXELEMENT]
  BYTE Usage // One of [http://msdn.microsoft.com/en-us/library/bb172534(VS.85).aspx D3DDECLUSAGE]
+
  BYTE Usage // 0=position, 1=normal, 2=UV, 3=assignment, 4=skin weight, 5=tangent
 
  BYTE UsageIndex
 
  BYTE UsageIndex
 
  BYTE Type // Data type, one of [http://msdn.microsoft.com/en-us/library/bb172533(VS.85).aspx D3DDECLTYPE]
 
  BYTE Type // Data type, one of [http://msdn.microsoft.com/en-us/library/bb172533(VS.85).aspx D3DDECLTYPE]

Revision as of 14:58, 28 July 2009

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


Vertex Format

This is a Sims 3:RCOL chunk found embedded in MODL and MLOD resources.

DWORD // 'VRTF'
DWORD // 00000002
DWORD // Vertex data length (Bytes)
DWORD // Declaration count
DWORD // Unknown (0)

For each count vertex declaration, a packed form of D3DVERTEXELEMENT
BYTE Usage // 0=position, 1=normal, 2=UV, 3=assignment, 4=skin weight, 5=tangent
BYTE UsageIndex
BYTE Type // Data type, one of D3DDECLTYPE
BYTE Offset // Offset into the vertex declaration for the data

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

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox