Difference between revisions of "RpMaterial"

From GTAMods Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{RW Section|Material|0x0007}}
 
{{RW Section|Material|0x0007}}
  
'''Material''' is a container section used in [[model file|DFF files]] as child of a [[Material List (RW Section)|Material List]] section. It is normally accompanied by a [[Struct (RW Section)#Material|Struct]] section.
+
'''Material''' is a container section used in [[model file|DFF files]] as child of a [[Material List (RW Section)|Material List]] section. The section itself does not store any data at all. All additional information get stored inside a [[Struct (RW Section)|struct section]] which directly follows this one as a child. A ''material'' section is used to hold one or more texture maps.
 +
 
 +
== Structure ==
 +
 
 +
The structure of the material section defines information about the amount and appearance of the texture maps.
 +
 
 +
4b - DWORD  - Unknown (usually 0)
 +
4b - DWORD  - Color (as an <code>D3DCOLOR</code> value)
 +
4b - DWORD  - Unknown (usually 1)
 +
4b - DWORD  - Number of textures
 +
4b - FLOAT  - Unknown
 +
4b - FLOAT  - Unknown
 +
4b - FLOAT  - Unknown
 +
 
 +
== Child sections ==
 +
 
 +
The number of textures defined above represents the number of child sections.
 +
 
 +
* [[Texture (RW Section)|Texture]]
 +
 
 +
=== Extension ===
 +
 
 +
Additionally each ''material'' can hold an extension. This extension holds the following sections in the order they are listed in here.
 +
 
 +
* [[Material Effects PLG (RW Section)|Material Effects PLG]]
 +
* [[Reflection Material (RW Section)|Reflection Material]]
 +
* [[Specular Material (RW Section)|Specular Material]]
 +
* [[UV Animation PLG (RW Section)|UV Animation PLG]]
 +
 
 +
== See also ==
 +
* [[Geometry List (RW Section)|Geometry List]]
 +
* [[RenderWare_binary_stream_file|RW file format specification]]
 +
 
 +
{{N|SA|VC}}
 +
[[Category:GTA_3]]

Revision as of 10:30, 30 October 2010

{{{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

Material is a container section used in DFF files as child of a Material List section. The section itself does not store any data at all. All additional information get stored inside a struct section which directly follows this one as a child. A material section is used to hold one or more texture maps.

Structure

The structure of the material section defines information about the amount and appearance of the texture maps.

4b - DWORD  - Unknown (usually 0)
4b - DWORD  - Color (as an D3DCOLOR value)
4b - DWORD  - Unknown (usually 1)
4b - DWORD  - Number of textures
4b - FLOAT  - Unknown
4b - FLOAT  - Unknown
4b - FLOAT  - Unknown

Child sections

The number of textures defined above represents the number of child sections.

Extension

Additionally each material can hold an extension. This extension holds the following sections in the order they are listed in here.

See also