buildcubemaps

From Half-Life Library

Half-Life Library > Commands


buildcubemaps is a console command in the Source engine for rendering cubemaps which allows reflective surfaces to reflect their surroundings in a realistic manner. This must be done after the map has been compiled with VBSP and VRAD and inside the game engine. Depending on your video card and complexity of your scenes, this can take seconds or minutes to complete. Once finished, the map must be restarted for the cubemaps to properly be applied to surfaces within the map.

Team Fortress 2

Team Fortress 2 does not have a default cubemap applied to all surfaces as well, the rendering process, in particular to specular lighting is handled differently; therefore, an alternate process must be used. Execute the following commands in the console to buildcubemaps in Team Fortress 2.

mat_specular 0
buildcubemaps
mat_specular 1
disconnect
sv_cheats 1
mat_reloadallmaterials
sv_cheats 0

External Links