Difference between revisions of "Sims 3:0x01D0E6FB"

From SimsWiki
Jump to: navigation, search
(Overview)
Line 12: Line 12:
 
  DWORD // 00000101
 
  DWORD // 00000101
 
  DWORD // 0
 
  DWORD // 0
  DWORD index to unnamed block(no tag, TGI:0x0000000-0x00000000-0x0000000000000000), or'd with 0x10000000. Relative to MLOD.
+
  DWORD SwizzleInfo// [[Sims_3:RCOL#References|RCOL reference]] of a [[#Swizzle_Info|Swizzle Info]] block(no tag, TGI:0x0000000-0x00000000-0x0000000000000000)
 
  {data} // Data format is described by the [[Sims 3:0x01D0E723|VRTF description]]
 
  {data} // Data format is described by the [[Sims 3:0x01D0E723|VRTF description]]
 
  If VRTF is not present, then it is a 16 byte vertex size, or 8 byte if the type for this VBUF is 0x00005003
 
  If VRTF is not present, then it is a 16 byte vertex size, or 8 byte if the type for this VBUF is 0x00005003
  
Unnamed block:
+
==Swizzle Info==
  DWORD count //1 for each group that uses the VBUF
+
Unnamed block referenced only by vertex buffers
  --repeat(count)
+
  DWORD segmentCount //1 for each group that uses the VBUF
     DWORD // size in bytes of this entry
+
  --repeat(segmentCount)
     DWORD // number of verts used in the group
+
     DWORD VertexSize // size in bytes of this entry
     DWORD // offset into VBUF in bytes
+
     DWORD VertexCount// number of verts used in the group
     DWORD[size/4]
+
     DWORD ByteOffset// offset into VBUF in bytes
 +
     --repeat(VertexSize/4)
 +
          DWORD [[#Swizzle_Commands|SwizzleCommand]]
 +
 
 +
===Swizzle Commands===
 +
{| class="wikitable sortable" border="1"
 +
! Type ID!! Name!! Description
 +
|-
 +
| 0x00000000 || None
 +
|-
 +
| 0x00000001 || Swizzle32
 +
|-
 +
| 0x00000002 || Swizzle16x2
 +
|}
  
 
Based on contributions from delphy, karybdis and atavera
 
Based on contributions from delphy, karybdis and atavera
  
 
{{TS3AdvancedModdingHeader}}
 
{{TS3AdvancedModdingHeader}}

Revision as of 01:44, 26 November 2010

Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

Vertex Buffer - VBUF
TypeID:0x01D0E6FB
Game Version:The Sims 3



Overview

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

DWORD // 'VBUF'
DWORD // 00000101
DWORD // 0
DWORD SwizzleInfo// RCOL reference of a Swizzle Info block(no tag, TGI:0x0000000-0x00000000-0x0000000000000000)
{data} // Data format is described by the VRTF description
If VRTF is not present, then it is a 16 byte vertex size, or 8 byte if the type for this VBUF is 0x00005003

Swizzle Info

Unnamed block referenced only by vertex buffers

DWORD segmentCount //1 for each group that uses the VBUF
--repeat(segmentCount)
    DWORD VertexSize // size in bytes of this entry
    DWORD VertexCount// number of verts used in the group
    DWORD ByteOffset// offset into VBUF in bytes
    --repeat(VertexSize/4)
         DWORD SwizzleCommand

Swizzle Commands

Type ID Name Description
0x00000000 None
0x00000001 Swizzle32
0x00000002 Swizzle16x2

Based on contributions from delphy, karybdis and atavera

Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox