WAL: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Language subpage}} '''WAL''' is a texture file format used by {{quake2|4.1}} to store brush textures. A single WAL file contains one miptex, as well as three met...")
 
(→‎Texture flags: add section)
Line 1: Line 1:
{{Language subpage}}
{{Language subpage}}
'''WAL''' is a [[texture]] file format used by {{quake2|4.1}} to store [[brush]] textures. A single WAL file contains one [[miptex]], as well as three metadata values. The first two metadata values are [[bitflag]]s, indicating information about a brush's face (surface flags) and a brush's contents (content flags). The third metadata value is an integer value, usually used for determining the brightness of [[texlight]]s.
'''WAL''' is a [[texture]] file format used by {{quake2|4.1}} to store [[brush]] textures. A single WAL file contains one [[miptex]], as well as three metadata values. The first two metadata values are [[bitflag]]s, indicating information about a brush's face (surface flags) and a brush's contents (content flags). The third metadata value is an integer value, traditionally used for determining the brightness of [[texlight]]s (although some compilers use it for other purposes on non-emissive surfaces, such as for smoothing groups in [[RAD|Arghrad]]).


The surface flags and content flags found in WAL files would serve the basis for the [[material map compile flags]] used by {{source|4.1|nt=0}}.
The surface flags and content flags found in WAL files would serve the basis for the [[material map compile flags]] used by {{source|4.1|nt=0}}.
== Texture flags ==
These sections list and describe the various standard surface and content flags used in {{Quake2|4.1}}, as well as the equivalent [[VMT]] parameters to achieve the same result in {{src|4.1|nt=0}}.
=== Surface flags ===
Surface flags on different faces of a brush generally do not need to match.
=== Content flags ===
Content flags on different faces of a brush ''almost always need to match''. Mismatched contents will result in compiler errors, and leaves it up to the compiler to decide what contents a brush should have.
The exception to this rule is the "current" flags.

Revision as of 07:56, 30 August 2023

English (en)Translate (Translate)

WAL is a texture file format used by Quake II Quake II to store brush textures. A single WAL file contains one miptex, as well as three metadata values. The first two metadata values are bitflags, indicating information about a brush's face (surface flags) and a brush's contents (content flags). The third metadata value is an integer value, traditionally used for determining the brightness of texlights (although some compilers use it for other purposes on non-emissive surfaces, such as for smoothing groups in Arghrad).

The surface flags and content flags found in WAL files would serve the basis for the material map compile flags used by Source Source 1.

Texture flags

These sections list and describe the various standard surface and content flags used in Quake II Quake II, as well as the equivalent VMT parameters to achieve the same result in Source Source 1.

Surface flags

Surface flags on different faces of a brush generally do not need to match.

Content flags

Content flags on different faces of a brush almost always need to match. Mismatched contents will result in compiler errors, and leaves it up to the compiler to decide what contents a brush should have. The exception to this rule is the "current" flags.