Difference between revisions of "Sims 3:0x01D0E6FB"

From SimsWiki
Jump to: navigation, search
(Vertex Buffer)
m (Overview)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
+
{{TS3AdvancedModdingHeader}}
<br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]]
+
{{TS3Resource
<hr/>
+
|name=Vertex Buffer - VBUF
==Vertex Buffer==
+
|typeid=0x01D0E6FB 0x0229684B
 +
|expansion=The Sims 3
 +
}}
 +
<br clear="all">
 +
 
 +
==Overview==
 
This is a [[Sims 3:RCOL]] chunk found embedded in [[Sims 3:0x01661233|MODL]] and [[Sims 3:0x01D10F34|MLOD]] resources.
 
This is a [[Sims 3:RCOL]] chunk found embedded in [[Sims 3:0x01661233|MODL]] and [[Sims 3:0x01D10F34|MLOD]] resources.
  DWORD // 'VBUF'
+
  DWORD // 'VBUF'
  DWORD // 00000101
+
  DWORD // 00000101
  DWORD // 0
+
  DWORD // 0
  DWORD MATD index, or'd with 0x10000000. Relative to this block index.
+
  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
<hr/>
+
 
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
+
==Swizzle Info==
<br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]]
+
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 [[#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}}

Latest revision as of 06:08, 20 March 2011

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 0x0229684B
Game Version:The Sims 3



[edit] 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

[edit] 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

[edit] 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