VRAD
VRAD is the command-line tool for
Source that takes a compiled BSP map and embeds lighting data into it. VRAD's static and pre-compiled light is bounced around the world with a
radiosity algorithm.
VRAD will:
- Generate lightmaps
- Generate ambient samples
- Generate per-vertex prop_static lighting
- Generate per-object detail prop lighting
VRAD is generally the slowest of the three compilers due to the many, many calculations it must perform. Lighting optimization can help, as can ensuring your map is free of leaks.
Syntax
For example, a regular compile would look like thus:
This will generate and embed both Standard and High Dynamic Range lighting data, at per-vertex detail for prop_static entities. It also generates shadows based on transparency for prop_static entities that have been flagged as casting texture shadows.
Options
Use these in combination with expert compile mode, a batch file, or a frontend such as Compile Pal.
Effects
{{ColumnBox|count=1|1=Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO
Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO
Performance
Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO
Template:CLIOTemplate:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO
Debugging
Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO Template:CLIO
Debug mode options
If VRAD is compiled in debug mode or the #if ALLOWDEBUGOPTIONS
preprocessor is removed, additional options are available.
Template:CLIO
Template:CLIO
Template:CLIO
Template:CLIO
Template:CLIO
Template:CLIO
Lights files
Console Output
Bugs and Caveats





















- [todo tested in ?]
Tip:Source Engine BSP Lightmap Editor can be used to manually correct a .bsp lightmap data.





See also
- QRAD and HLRAD -
GoldSrc counterparts.
- VRAD2 & VRAD3 -
Source 2 counterparts.
- Map Compiling Theory
- HDR Lighting Basics
- VRAD HDR Crash Fix
- Static Props show up black
|