Difference between revisions of "RwBinaryStream"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
===RwGeometry section RwData===
 
===RwGeometry section RwData===
=====VersionNumber(s) 0, 2048, 3074=====
 
 
* Gauranteed, first and only data in the RwGeometryList
 
* Gauranteed, first and only data in the RwGeometryList
 
{| border="1" cellpadding="2" cellspacing="0"  
 
{| border="1" cellpadding="2" cellspacing="0"  
Line 23: Line 22:
 
| u32[vertexCount] || vertexRgba || all || style="background:silver" | only if( flags & flags.COLOUR) ||
 
| u32[vertexCount] || vertexRgba || all || style="background:silver" | only if( flags & flags.COLOUR) ||
 
|-
 
|-
| f32[vertexCount*2] || uvs || all || style="background:silver" | only if( flags & flags.TEXTURE) ||
+
| f32[vertexCount*2] || uvs || all || style="background:silver" | only if( flags & flags.TEXTURE) || *
 
|-
 
|-
| f32[vertexCount*2] || uvs || all || style="background:silver" | only if( flags & flags.TEXTURE) ||
+
| u16[triangleCount*3] || faces || all || || *
 +
|-
 +
| vector3 || boundingSpherePosition || all || ||
 +
|-
 +
| f32 || boundingSphereRadius || all || ||
 +
|- style="background:cyan"
 +
| u8[8]|| unknown || all || ||
 +
|-
 +
| vector3[vertexCount] || positions || all || ||
 +
|-
 +
| vector3[vertexCount] || normals || all || style="background:silver" | only if( flags & flags.NORMALS) ||
 
|}
 
|}

Revision as of 03:52, 29 May 2007

RwGeometry section RwData

  • Gauranteed, first and only data in the RwGeometryList
Data type Name Version number Condition Notes
u16 flags all
u8[2] unknown all
u32 triangleCount all
u32 vertexCount all
u32 morphTargetCount all
u32 ambientRgba 0, 2048, 3074
u32 diffuseRgba 0, 2048, 3074
u32 specularRgba 0, 2048, 3074
u32[vertexCount] vertexRgba all only if( flags & flags.COLOUR)
f32[vertexCount*2] uvs all only if( flags & flags.TEXTURE) *
u16[triangleCount*3] faces all *
vector3 boundingSpherePosition all
f32 boundingSphereRadius all
u8[8] unknown all
vector3[vertexCount] positions all
vector3[vertexCount] normals all only if( flags & flags.NORMALS)