Colour Cube: Difference between revisions
m
Changed ^3 to ³ to avoid confusion with bitwise XOR.
m (i.e. to e.g.) |
m (Changed ^3 to ³ to avoid confusion with bitwise XOR.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1:
{{ParadiseResourceTypeInfobox
ColourCube resources are used by both the [[EnvironmentSettings]] and [[PostFX]] to change the colour and tone of the world.▼
| name = ColourCube
| othernames = RwColourCube
| example = [[File:Paradise_ColourCubes.png|
| id = 0x2B
| category = Generic
| memdist = Main Memory only
| importedby = [[Environment Keyframe]]
}}
▲ColourCube resources are used by both the [[EnvironmentSettings]] and [[PostFX]] to change the colour and tone of the world.
▲[[File:Paradise_ColourCubes.png|thumb|200px|ColourCubes used in Burnout Paradise.]]
A ColourCube is a set of textures forming a [https://en.wikipedia.org/wiki/Palette_(computing) CLUT], which is usually colour corrected to give a different art style to the game at a given time (e.g., the red filter when wrecking a vehicle in versions 1.0-1.3 of ''Burnout Paradise'').
Line 13 ⟶ 21:
==== 32-bit ====
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || uint32_t || m_size || The number of textures and their width/height. || Used to calculate file size (m_size
|-
| 0x4 || 0x4 || uint8_t* || m_pixels || Pointer to the texture data. ||
Line 23 ⟶ 30:
==== 64-bit ====
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || uint32_t || m_size || The number of textures and their width/height. || Used to calculate file size (m_size
|-
| 0x4 || 0x4 || ||
|-
| 0x8 || 0x8 || uint8_t* || m_pixels || Pointer to the texture data. ||
Line 42 ⟶ 48:
{| class="wikitable"
! x !! y !! z !! offset (m_size = 16)
|- style="vertical-align:top;"
Line 63 ⟶ 68:
{| class="wikitable"
! x !! y !! z !! offset (m_size = 32)
|- style="vertical-align:top;"
|