Cubemaps (Source 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
==Building cubemaps==
==Building cubemaps==
{{Todo}}
{{Todo}}
{| class="wikitable"
|-
! Command !! Description
|-
| {{Command|map}} ''map_name''</code> || Loads the map; replace "''map_name''" with the map's actual name
|-
| {{Command|sv_cheats|1}} || Enables the use of cheat commands; required to build cubemaps
|-
| {{Command|buildcubemaps}} || Begins building cubemaps. Optionally, specify the number of iterations (e.g.: <code>buildcubemaps 2</code> (default is 1))
|-
| {{Command|disconnect}} || Unloads the map and returns to the main menu
|-
| {{Command|quit}} || (optional) Exits the game. On some games, relaunching is required to display newly-built cubemaps
|}

Revision as of 08:12, 27 November 2024

English (en)中文 (zh)Translate (Translate)
Icon-under construction-blue.png
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.
Env cubemap.png
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 Source 2 has Env_cubemap_(Source_2) ent_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

[Todo]

Command Description
map map_name Loads the map; replace "map_name" with the map's actual name
sv_cheats 1 Enables the use of cheat commands; required to build cubemaps
buildcubemaps Begins building cubemaps. Optionally, specify the number of iterations (e.g.: buildcubemaps 2 (default is 1))
disconnect Unloads the map and returns to the main menu
quit (optional) Exits the game. On some games, relaunching is required to display newly-built cubemaps