Environment Track Data: Difference between revisions
Content added Content deleted
AcuteSyntax (talk | contribs) mNo edit summary |
(Simplify type names) |
||
Line 14: | Line 14: | ||
! Details |
! Details |
||
|- |
|- |
||
| <tt>0x00 || <tt>0x98 || |
| <tt>0x00 || <tt>0x98 || 32-bit Numeric || Unused data || |
||
|- |
|- |
||
| <tt>0x98 || <tt>0x14 || |
| <tt>0x98 || <tt>0x14 || UInt32 || Texture pointer table || |
||
|- |
|- |
||
! colspan="5" | Fog settings |
! colspan="5" | Fog settings |
||
|- |
|- |
||
| <tt>0xB0 || <tt>0x01 || |
| <tt>0xB0 || <tt>0x01 || UInt8 || Enable/disable fog || <tt>0x00</tt> = disabled; <tt>0x01</tt> = enabled. This applies for all other boolean values in the header. |
||
|- |
|- |
||
| <tt>0xB4 || <tt>0x04 || |
| <tt>0xB4 || <tt>0x04 || Float32 || Fog start distance || |
||
|- |
|- |
||
| <tt>0xB8 || <tt>0x04 || |
| <tt>0xB8 || <tt>0x04 || Float32 || Fog end distance || |
||
|- |
|- |
||
| <tt>0xC0 || <tt>0x04 || |
| <tt>0xC0 || <tt>0x04 || Float32 || Fog hue (red) || |
||
|- |
|- |
||
| <tt>0xC4 || <tt>0x04 || |
| <tt>0xC4 || <tt>0x04 || Float32 || Fog hue (green) || |
||
|- |
|- |
||
| <tt>0xC8 || <tt>0x04 || |
| <tt>0xC8 || <tt>0x04 || Float32 || Fog hue (blue) || |
||
|- |
|- |
||
! colspan="5" | Lighting settings |
! colspan="5" | Lighting settings |
||
|- |
|- |
||
| <tt>0xD0 || <tt>0x04 || |
| <tt>0xD0 || <tt>0x04 || Float32 || Light vector X-position || |
||
|- |
|- |
||
| <tt>0xD4 || <tt>0x04 || |
| <tt>0xD4 || <tt>0x04 || Float32 || Light vector Y-position || |
||
|- |
|- |
||
| <tt>0xD8 || <tt>0x04 || |
| <tt>0xD8 || <tt>0x04 || Float32 || Light vector Z-position || |
||
|- |
|- |
||
| <tt>0xE0 || <tt>0x04 || |
| <tt>0xE0 || <tt>0x04 || Float32 || Ambient lighting hue (red) || |
||
|- |
|- |
||
| <tt>0xE4 || <tt>0x04 || |
| <tt>0xE4 || <tt>0x04 || Float32 || Ambient lighting hue (green) || |
||
|- |
|- |
||
| <tt>0xE8 || <tt>0x04 || |
| <tt>0xE8 || <tt>0x04 || Float32 || Ambient lighting hue (blue) || |
||
|- |
|- |
||
| <tt>0xF0 || <tt>0x04 || |
| <tt>0xF0 || <tt>0x04 || Float32 || Diffuse lighting hue (red) || |
||
|- |
|- |
||
| <tt>0xF4 || <tt>0x04 || |
| <tt>0xF4 || <tt>0x04 || Float32 || Diffuse lighting hue (green) || |
||
|- |
|- |
||
| <tt>0xF8 || <tt>0x04 || |
| <tt>0xF8 || <tt>0x04 || Float32 || Diffuse lighting hue (blue) || |
||
|- |
|- |
||
| <tt>0x100 || <tt>0x04 || |
| <tt>0x100 || <tt>0x04 || Float32 || Specular lighting hue (red) || |
||
|- |
|- |
||
| <tt>0x104 || <tt>0x04 || |
| <tt>0x104 || <tt>0x04 || Float32 || Specular lighting hue (green) || |
||
|- |
|- |
||
| <tt>0x108 || <tt>0x04 || |
| <tt>0x108 || <tt>0x04 || Float32 || Specular lighting hue (blue) || |
||
|- |
|- |
||
| <tt>0x110 || <tt>0x04 || |
| <tt>0x110 || <tt>0x04 || Float32 || Ambient lighting hue (red, tunnel) || All values from here to <tt>0x138</tt> (as well as <tt>0x144</tt>'s value) are only applied to the vehicle when it has entered a tunnel or overpass. |
||
|- |
|- |
||
| <tt>0x114 || <tt>0x04 || |
| <tt>0x114 || <tt>0x04 || Float32 || Ambient lighting hue (green, tunnel) || |
||
|- |
|- |
||
| <tt>0x118 || <tt>0x04 || |
| <tt>0x118 || <tt>0x04 || Float32 || Ambient lighting hue (blue, tunnel) || |
||
|- |
|- |
||
| <tt>0x120 || <tt>0x04 || |
| <tt>0x120 || <tt>0x04 || Float32 || Diffuse lighting hue (red, tunnel) || |
||
|- |
|- |
||
| <tt>0x124 || <tt>0x04 || |
| <tt>0x124 || <tt>0x04 || Float32 || Diffuse lighting hue (green, tunnel) || |
||
|- |
|- |
||
| <tt>0x128 || <tt>0x04 || |
| <tt>0x128 || <tt>0x04 || Float32 || Diffuse lighting hue (blue, tunnel) || |
||
|- |
|- |
||
| <tt>0x130 || <tt>0x04 || |
| <tt>0x130 || <tt>0x04 || Float32 || Specular lighting hue (red, tunnel) || |
||
|- |
|- |
||
| <tt>0x134 || <tt>0x04 || |
| <tt>0x134 || <tt>0x04 || Float32 || Specular lighting hue (green, tunnel) || |
||
|- |
|- |
||
| <tt>0x138 || <tt>0x04 || |
| <tt>0x138 || <tt>0x04 || Float32 || Specular lighting hue (blue, tunnel) || |
||
|- |
|- |
||
| <tt>0x140 || <tt>0x04 || |
| <tt>0x140 || <tt>0x04 || Float32 || Specular lighting coefficient || Intensity of the specular lighting applied to the car. |
||
|- |
|- |
||
| <tt>0x144 || <tt>0x04 || |
| <tt>0x144 || <tt>0x04 || Float32 || Specular lighting coefficient (tunnel) || |
||
|- |
|- |
||
! colspan="5" | Bloom settings |
! colspan="5" | Bloom settings |
||
|- |
|- |
||
| <tt>0x148 || <tt>0x01 || |
| <tt>0x148 || <tt>0x01 || UInt8 || Enable/disable bloom || |
||
|- |
|- |
||
| <tt>0x150 || <tt>0x04 || |
| <tt>0x150 || <tt>0x04 || UInt32 || Bloom additive amount || |
||
|- |
|- |
||
| <tt>0x154 || <tt>0x04 || |
| <tt>0x154 || <tt>0x04 || UInt32 || Bloom blur factor || |
||
|- |
|- |
||
! colspan="5" | Sun settings |
! colspan="5" | Sun settings |
||
|- |
|- |
||
| <tt>0x158 || <tt>0x04 || |
| <tt>0x158 || <tt>0x04 || UInt8 || Enable/disable sun || |
||
|- |
|- |
||
| <tt>0x15C || <tt>0x04 || |
| <tt>0x15C || <tt>0x04 || UInt32 || Sun size || |
||
|- |
|- |
||
| <tt>0x160 || <tt>0x04 || |
| <tt>0x160 || <tt>0x04 || Float32 || Sun X-scale || |
||
|- |
|- |
||
| <tt>0x160 || <tt>0x04 || |
| <tt>0x160 || <tt>0x04 || Float32 || Sun Y-scale || |
||
|- |
|- |
||
| <tt>0x164 || <tt>0x04 || |
| <tt>0x164 || <tt>0x04 || UInt32 || Number of sun copies || |
||
|- |
|- |
||
| <tt>0x170 || <tt>0x04 || |
| <tt>0x170 || <tt>0x04 || Float32 || Sun hue (red) || |
||
|- |
|- |
||
| <tt>0x174 || <tt>0x04 || |
| <tt>0x174 || <tt>0x04 || Float32 || Sun hue (green) || |
||
|- |
|- |
||
| <tt>0x178 || <tt>0x04 || |
| <tt>0x178 || <tt>0x04 || Float32 || Sun hue (blue) || |
||
|- |
|- |
||
| <tt>0x180 || <tt>0x04 || |
| <tt>0x180 || <tt>0x04 || Float32 || Sun core hue (red) || |
||
|- |
|- |
||
| <tt>0x184 || <tt>0x04 || |
| <tt>0x184 || <tt>0x04 || Float32 || Sun core hue (green) || |
||
|- |
|- |
||
| <tt>0x188 || <tt>0x04 || |
| <tt>0x188 || <tt>0x04 || Float32 || Sun core hue (blue) || |
||
|- |
|- |
||
| <tt>0x190 || <tt>0x04 || |
| <tt>0x190 || <tt>0x04 || Float32 || Sun X Vector || |
||
|- |
|- |
||
| <tt>0x194 || <tt>0x04 || |
| <tt>0x194 || <tt>0x04 || Float32 || Sun Y Vector || |
||
|- |
|- |
||
| <tt>0x198 || <tt>0x04 || |
| <tt>0x198 || <tt>0x04 || Float32 || Sun Z Vector || |
||
|- |
|- |
||
| <tt>0x1A0 || <tt>0x01 || |
| <tt>0x1A0 || <tt>0x01 || UInt8 || Enable/disable sun corona || |
||
|- |
|- |
||
| <tt>0x1A4 || <tt>0x04 || |
| <tt>0x1A4 || <tt>0x04 || Float32 || Sun corona X-size || |
||
|- |
|- |
||
| <tt>0x1A8 || <tt>0x04 || |
| <tt>0x1A8 || <tt>0x04 || Float32 || Sun corona Y-size || |
||
|- |
|- |
||
| <tt>0x1B0 || <tt>0x04 || |
| <tt>0x1B0 || <tt>0x04 || Float32 || Sun corona hue (red) || |
||
|- |
|- |
||
| <tt>0x1B4 || <tt>0x04 || |
| <tt>0x1B4 || <tt>0x04 || Float32 || Sun corona hue (green) || |
||
|- |
|- |
||
| <tt>0x1B8 || <tt>0x04 || |
| <tt>0x1B8 || <tt>0x04 || Float32 || Sun corona hue (blue) || |
||
|- |
|- |
||
| <tt>0x1C0 || <tt>0x01 || |
| <tt>0x1C0 || <tt>0x01 || UInt8 || Enable/disable sun blur occlusion || |
||
|- |
|- |
||
| <tt>0x1C4 || <tt>0x04 || |
| <tt>0x1C4 || <tt>0x04 || Float32 || Sun blur offset || |
||
|} |
|} |
Revision as of 21:59, 6 January 2021
The Environment Slice container format is used to store track environment lighting/weather values and skybox textures. It uses the filename ENVIRO.DAT
.
Layout
PSP (Revision 1)
Note that this layout applies specifically to Burnout Legends. Burnout Dominator(PSP) uses a slightly updated revision of this format, and as such its layout is similar but not identical to this one.
Offset | Length | Type | Description | Details |
---|---|---|---|---|
0x00 | 0x98 | 32-bit Numeric | Unused data | |
0x98 | 0x14 | UInt32 | Texture pointer table | |
Fog settings | ||||
0xB0 | 0x01 | UInt8 | Enable/disable fog | 0x00 = disabled; 0x01 = enabled. This applies for all other boolean values in the header. |
0xB4 | 0x04 | Float32 | Fog start distance | |
0xB8 | 0x04 | Float32 | Fog end distance | |
0xC0 | 0x04 | Float32 | Fog hue (red) | |
0xC4 | 0x04 | Float32 | Fog hue (green) | |
0xC8 | 0x04 | Float32 | Fog hue (blue) | |
Lighting settings | ||||
0xD0 | 0x04 | Float32 | Light vector X-position | |
0xD4 | 0x04 | Float32 | Light vector Y-position | |
0xD8 | 0x04 | Float32 | Light vector Z-position | |
0xE0 | 0x04 | Float32 | Ambient lighting hue (red) | |
0xE4 | 0x04 | Float32 | Ambient lighting hue (green) | |
0xE8 | 0x04 | Float32 | Ambient lighting hue (blue) | |
0xF0 | 0x04 | Float32 | Diffuse lighting hue (red) | |
0xF4 | 0x04 | Float32 | Diffuse lighting hue (green) | |
0xF8 | 0x04 | Float32 | Diffuse lighting hue (blue) | |
0x100 | 0x04 | Float32 | Specular lighting hue (red) | |
0x104 | 0x04 | Float32 | Specular lighting hue (green) | |
0x108 | 0x04 | Float32 | Specular lighting hue (blue) | |
0x110 | 0x04 | Float32 | Ambient lighting hue (red, tunnel) | All values from here to 0x138 (as well as 0x144's value) are only applied to the vehicle when it has entered a tunnel or overpass. |
0x114 | 0x04 | Float32 | Ambient lighting hue (green, tunnel) | |
0x118 | 0x04 | Float32 | Ambient lighting hue (blue, tunnel) | |
0x120 | 0x04 | Float32 | Diffuse lighting hue (red, tunnel) | |
0x124 | 0x04 | Float32 | Diffuse lighting hue (green, tunnel) | |
0x128 | 0x04 | Float32 | Diffuse lighting hue (blue, tunnel) | |
0x130 | 0x04 | Float32 | Specular lighting hue (red, tunnel) | |
0x134 | 0x04 | Float32 | Specular lighting hue (green, tunnel) | |
0x138 | 0x04 | Float32 | Specular lighting hue (blue, tunnel) | |
0x140 | 0x04 | Float32 | Specular lighting coefficient | Intensity of the specular lighting applied to the car. |
0x144 | 0x04 | Float32 | Specular lighting coefficient (tunnel) | |
Bloom settings | ||||
0x148 | 0x01 | UInt8 | Enable/disable bloom | |
0x150 | 0x04 | UInt32 | Bloom additive amount | |
0x154 | 0x04 | UInt32 | Bloom blur factor | |
Sun settings | ||||
0x158 | 0x04 | UInt8 | Enable/disable sun | |
0x15C | 0x04 | UInt32 | Sun size | |
0x160 | 0x04 | Float32 | Sun X-scale | |
0x160 | 0x04 | Float32 | Sun Y-scale | |
0x164 | 0x04 | UInt32 | Number of sun copies | |
0x170 | 0x04 | Float32 | Sun hue (red) | |
0x174 | 0x04 | Float32 | Sun hue (green) | |
0x178 | 0x04 | Float32 | Sun hue (blue) | |
0x180 | 0x04 | Float32 | Sun core hue (red) | |
0x184 | 0x04 | Float32 | Sun core hue (green) | |
0x188 | 0x04 | Float32 | Sun core hue (blue) | |
0x190 | 0x04 | Float32 | Sun X Vector | |
0x194 | 0x04 | Float32 | Sun Y Vector | |
0x198 | 0x04 | Float32 | Sun Z Vector | |
0x1A0 | 0x01 | UInt8 | Enable/disable sun corona | |
0x1A4 | 0x04 | Float32 | Sun corona X-size | |
0x1A8 | 0x04 | Float32 | Sun corona Y-size | |
0x1B0 | 0x04 | Float32 | Sun corona hue (red) | |
0x1B4 | 0x04 | Float32 | Sun corona hue (green) | |
0x1B8 | 0x04 | Float32 | Sun corona hue (blue) | |
0x1C0 | 0x01 | UInt8 | Enable/disable sun blur occlusion | |
0x1C4 | 0x04 | Float32 | Sun blur offset |