Cubemaps (Source 2)

From Valve Developer Community
< Zh
Revision as of 22:44, 22 June 2025 by POCIX (talk | contribs) (Created page with "{{subst:#if: Translation of 'Cubemaps (Source 2)' to '中文' via Template:LanguageBar buttons * * * * * * * * * * * * * * * * * * * * * * * * * * * *...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{subst:#if:|||

Important step for replacing wikilinks after you've created this page

After you click 'Edit' do what the image shows. If you can't see editing toolbar you need to enable it in 'Preferences' -> Editing -> checkbox 'Enable the editing toolbar'

Preload - Language Links Replace.jpg
参见:  {{LAuto}}

--- DON'T JUST BLINDLY DELETE THIS PART. DO REPLACE THE LINKS AND CATEGORIES. THE PICTURE SHOWS HOW TO USE IT ! ---

SEARCH FOR: \[\[(?!#|File(?:[ _]talk)?:|Image(?:[ _]talk)?:|Media:|Template(?:[ _]talk)?:|MediaWiki(?:[ _]talk)?:|Talk:|Category[ _]talk:|Project[ _]talk:|Valve[ _]Developer[ _]Community[ _]talk:|Help[ _]talk:|User(?:[ _]talk)?:|c:|commons:|Dictionary:|Google:|GoogleGroups:|IMDB:|M:|Meta:|Metawikipedia:|MW:|SdkBug:|SourceForge:|Steampowered:|W:|Wiki:|WikiBooks:|Wikipedia:|Wikiquote:|Wiktionary:|WP:)(:?(?:Category|Category|Help|Project|Valve[ _]Developer[ _]Community|Special|)(?:[^\|\]]+))(\|?.*?)\]\]

REPLACE WITH: {{subst:LAuto|$1$2}}

}}
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

Info content.png
This page is being translated.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
English (en)中文 (zh)Translate (Translate)
Env cubemap.png
An example of specular reflections on some models (exaggerated by overriding prop materials with materials/dev/spheretest.vmat texture).

A cubemap is a texture that represents a three-dimensional rendering of an area. 起源2 起源2 has env_cubemap, env_cubemap_box and/or other cubemap 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.

待完善: Document about env_cubemap_fog.

Entities

Preview in Hammer (存在于 反恐精英2 之中)

You can preview cubemaps by going to "Preview Baked Lighting" menu > Bake All Cubemaps. You can also use "Bake Selected Cubemaps" to preview the selected cubemaps.

Building cubemaps

Note.png注意: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.
Note.png注意:Unlike 起源, which displays the building cubemaps process by showing the captured image on each sides, Source 2 will instead hangs while building cubemaps, so look at the console log (in VConsole) instead for progress.

If you didn't enable the option to automatically build cubemaps through Hammer, submit the following commands into the game's console in order to build cubemaps manually:

Command Description
map map_name Loads the map; replace "map_name" with the map's actual name
buildcubemaps Begins building cubemaps. The map will be automatically reloaded, and the new cubemap texture will be shown.
Note.png注意:Source 2 does not support building cubemaps with number of iterations (e.g.: buildcubemaps 2).(confirmed on 半衰期:爱莉克斯 反恐精英2)