Environment Track Data

Revision as of 21:38, 17 April 2021 by AcuteSyntax (talk | contribs) (AcuteSyntax moved page Environment Slice to Environment Track Data: TIL this file is actually not of type "CB4SliceEnvironment", but rather "CB4EnvironmentInfo/Data" on PS2)

The Environment Slice format is used to store lighting/weather values and skybox textures for a given track environment. It uses the filename ENVIRO.DAT.

Layout

PlayStation 2

Offset Name Type Value Notes
Environment Info
0x00 Fog color CGtRGB
0x10 Fog distance float
0x14 World fog intensity float
0x18 Sky fog intensity float
0x1C Specular lighting intensity float
0x20 Sun corona intensity float
0x24 Precipitation float
0x28 Star intensity float
0x2C Overall brightness float
Environment Data
0x60 Specular color CGtRGB
0x70 Sun color CGtRGB
0x80 Sun position Vector3
0x90 Sun corona radius float
0x94 Is sun moon? bool
0x98 Gradient texture CGtTexture*
0x9C Cloud texture CGtTexture*
0xA0 Cloud environment map texture CGtTexture*
0xA4 Sun/moon texture CGtTexture*
0xA8 Version number uint 0x02

PlayStation Portable (Revision 1)

Note that this layout applies specifically to Burnout Legends. Burnout Dominator(PSP) uses a slightly updated revision of the format. As such its layout is similar, but not identical, to this one.

Offset Name Type Value Notes
0x00 Unused data float
int
0x98 Texture offsets Texture*[6]
Fog settings
0xB0 Draw fog bool
0xB4 Fog start distance float
0xB8 Fog end distance float
0xC0 Fog color CGtRGB
Vehicle lighting settings
0xD0 Light position Vector3
0xE0 Ambient lighting color CGtRGB
0xF0 Diffuse lighting color CGtRGB
0x100 Specular lighting color CGtRGB
0x110 Ambient lighting color (tunnel) CGtRGB 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.
0x120 Diffuse lighting color (tunnel) CGtRGB
0x130 Specular lighting color (tunnel) CGtRGB
0x140 Specular lighting coefficient float Intensity of the specular lighting applied to the vehicle.
0x144 Specular lighting coefficient (tunnel) float
Bloom settings
0x148 Draw bloom bool 0x01
0x150 Bloom additive amount int32
0x154 Bloom blur factor float
Sun settings
0x158 Draw sun bool 0x01
0x15C Sun size int32
0x160 Sun X-scale float
0x164 Sun Y-scale float
0x168 Number of sun copies int
0x170 Sun color CGtRGB
0x180 Sun core color CGtRGB
0x190 Sun position Vector3
0x1A0 Draw sun corona bool 0x01
0x1A4 Sun corona X-size float
0x1A8 Sun corona Y-size float
0x1B0 Sun corona color CGtRGB
0x1C0 Enable/disable sun blur occlusion bool
0x1C4 Sun blur offset float