Cubemaps (Source 2): Difference between revisions
Jump to navigation
Jump to search
Note:If the option "Build cubemaps on load" is checked in Hammer Build Map dialog, as soon the game loads the map after it is compiled, the cubemaps will be automatically built, and the map will be automatically reloaded.
No edit summary |
|||
Line 9: | Line 9: | ||
==Building cubemaps== | ==Building cubemaps== | ||
{{Note|If the option "Build cubemaps on load" is checked in Hammer Build Map dialog, as soon the game loads the map, the cubemaps will be automatically built | {{Note|If the option "Build cubemaps on load" is checked in Hammer Build Map dialog, as soon the game loads the map after it is compiled, the cubemaps will be automatically built, and the map will be automatically reloaded.}} | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 16: | Line 15: | ||
|- | |- | ||
| {{Command|map}} ''map_name''</code> || Loads the map; replace "''map_name''" with the map's actual name | | {{Command|map}} ''map_name''</code> || Loads the map; replace "''map_name''" with the map's actual name | ||
|- | |- | ||
| {{Command|buildcubemaps}} || Begins building cubemaps. Optionally, specify the number of iterations (e.g.: <code>buildcubemaps 2</code> (default is 1)) | | {{Command|buildcubemaps}} || Begins building cubemaps. Optionally, specify the number of iterations (e.g.: <code>buildcubemaps 2</code> (default is 1)) | ||
|- | |- | ||
|} | |} |
Revision as of 05:54, 2 February 2025

This is a draft page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.
Remember to check for any notes left by the tagger at this article's talk page.

An example of specular reflections on some models (exaggerated through
r_showenvcubemap
).A cubemap is a texture that represents a three-dimensional rendering of an area. Source 2 has env_cubemap and/or env_cubemap_box entities as sampling points to generate these textures, which are then integrated into the map file. Cubemaps in Source 2 are also parallax corrected if
env_cubemap_box
is used.
Todo: Document about env_cubemap_fog.
Building cubemaps

Command | Description |
---|---|
map map_name |
Loads the map; replace "map_name" with the map's actual name |
buildcubemaps |
Begins building cubemaps. Optionally, specify the number of iterations (e.g.: buildcubemaps 2 (default is 1))
|