Difference between revisions of "Extra Vert Colour (RW Section)"

From GTAMods Wiki
Jump to navigation Jump to search
m
m (How come nobody has bothered to update this yet? :p)
Line 1: Line 1:
{{RW Section|Night Vertex Colors|0x0253F2F9}}
+
{{RW Section|Extra Vert Colour|0x0253F2F9}}
  
'''Night Vertex Colors''' is one of Rockstar's [[List of RW section IDs#Rockstar.27s_Custom_Sections|custom sections]]. In [[GTA San Andreas]] it is used to store alternative vertex colors displayed at night time. The typical location in a SA [[model file|dff]] section hierarchy is ''[[Clump (RW Section)|Clump]] > [[Geometry List (RW Section)|Geometry List]] > [[Geometry (RW Section)|Geometry]] > [[Extension (RW Section)|Extension]] > Night Vertex Colors.
+
'''Extra Vert Colour''', formerly '''Night Vertex Colors''', is one of Rockstar's [[List of RW section IDs#Rockstar.27s_Custom_Sections|custom sections]]. In [[GTA San Andreas]] it is used to store alternative vertex colors displayed at night time. The typical location in a SA [[model file|dff]] section hierarchy is ''[[Clump (RW Section)|Clump]] > [[Geometry List (RW Section)|Geometry List]] > [[Geometry (RW Section)|Geometry]] > [[Extension (RW Section)|Extension]] > Extra Vert Colour.
  
==Data Layout==
+
==Magic number==
  
4b - FLOAT      - unknown
+
The initial ''4 bytes'' sequence signals the usage of the extension:
  ? - BYTE[?][4] - array of RGBA colors
 
  
There are as many vertex colors as vertices in the [[Struct (RW Section)#Geometry|geometry struct]] section.
+
UINT32  magicNumber
 +
 
 +
If zero, the section ends here. A non-zero value has no particular meaning and can be any (see [[Talk:Breakable_model_(RW_Section)#Meaningless values|Meaningless values]]).
 +
 
 +
==Color data==
 +
 
 +
This is an array of nighttime prelit colors blended according to a balancing parameter swinging throughout the game's virtual day:
 +
 
 +
BYTE[4] nightVertColours[geometry->numVertices]

Revision as of 11:24, 22 June 2015

{{{NAME}}}
RenderWare Stream Section
Vendor {{{VENDORNAME}}}
Module {{{MODULENAME}}}
Module ID 0x{{{MODULEID}}}
Identifier 0x{{{IDENTIFIER}}}
Chunk ID 0x{{{MODULEID}}}{{{IDENTIFIER}}}
Versions All
Hierarchy
Parents:
None
Children:
None
Extensions:
None
File Format

Extra Vert Colour, formerly Night Vertex Colors, is one of Rockstar's custom sections. In GTA San Andreas it is used to store alternative vertex colors displayed at night time. The typical location in a SA dff section hierarchy is Clump > Geometry List > Geometry > Extension > Extra Vert Colour.

Magic number

The initial 4 bytes sequence signals the usage of the extension:

UINT32  magicNumber

If zero, the section ends here. A non-zero value has no particular meaning and can be any (see Meaningless values).

Color data

This is an array of nighttime prelit colors blended according to a balancing parameter swinging throughout the game's virtual day:

BYTE[4] nightVertColours[geometry->numVertices]