Env cubemap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table))
(cleanup)
Line 1: Line 1:
{{wrongtitle|title=env_cubemap}}
[[File:Env_cubemap.png|left]]
{{base_point}}
 
{{base point|env_cubemap}} It specifies a location for which a [[cubemap]] will be generated when the [[buildcubemaps]] console command is executed.
 
Objects with <code>[[$envmap]]</code>-enabled [[material]]s will use the nearest cubemap as their reflection.


==Entity Description==
[[Image:Env_cubemap.png|left]]An env_cubemap specifies the place that pictures will be taken to form a local cubemap. You can specify a specific face for the env_cubemap to apply to, but the general rule still applies that all faces will use the closest cubemap. For more detail read up on [[cubemaps]] themselves for advice on how, when, and where to use them.<br clear="all" />
{{intent}}
{{intent}}


===See also===
==Keyvalues==
* [[Cubemaps]]


==Keyvalues==
; Cubemap Size <code><choices></code>
* '''cubemapsize'''
: The resolution of each face of the cubemap. Remember that the actual number of pixels stored will be your selection times six!
: <choices>
:* Default (usually 32x32, depending on the game)
:{| class=standard-table
:* 1x1
! Literal Value || Description
:* 2x2
|-
:* 4x4
| 0 || Game default (usually 32x)
:* 8x8
|-
:* 16x16
| 1 || 1x1
:* 32x32
|-
:* 64x64
| 2 || 2x2
:* 128x128
|-
:* 256x256
| 3 || 4x4
; Brush faces <code><[[int]]s></code>
|-
: An optional override for individual brush faces, forcing them to use this cubemap instead of one closest to them.
| 4 || 8x8
: To select faces, press the "Pick" button then click on them in the 3D view. Hold {{key|Ctrl}} to toggle a face on or off.
|-
| 5 || 16x16
|-
| 6 || 32x32 (default)
|-
| 7 || 64x64
|-
| 8 || 128x128
|-
| 9 || 256x256
|}
* '''sides'''
: <[[sidelist]]>  
: (Optional) Brushes face indices to directly attach to the env_cubemap.
: Application in Hammer:
:: Press Pick then click on faces in the 3D View to select them.
:: Use CTRL while clicking to add or remove from the selection.

Revision as of 08:35, 29 July 2009

Env cubemap.png

Template:Base point It specifies a location for which a cubemap will be generated when the buildcubemaps console command is executed.

Objects with $envmap-enabled materials will use the nearest cubemap as their reflection.

Template:Intent

Keyvalues

Cubemap Size <choices>
The resolution of each face of the cubemap. Remember that the actual number of pixels stored will be your selection times six!
  • Default (usually 32x32, depending on the game)
  • 1x1
  • 2x2
  • 4x4
  • 8x8
  • 16x16
  • 32x32
  • 64x64
  • 128x128
  • 256x256
Brush faces <ints>
An optional override for individual brush faces, forcing them to use this cubemap instead of one closest to them.
To select faces, press the "Pick" button then click on them in the 3D view. Hold Ctrl to toggle a face on or off.