Env cubemap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates. removed the section about placement because that's already detailed on cubemaps.)
(wording fix)
Line 1: Line 1:
{{lang|Env cubemap}}
{{lang|Env cubemap}}
[[File:Cubemap_build_result.jpeg|thumb|right|A cubemap example containing the white static prop car, a sprite and decals. Note that the blue physics prop car is not visible in the cubemap because it is not static.]]
[[File:Cubemap_build_result.jpeg|thumb|right|A cubemap example containing the white static prop car, a sprite and decals. Note that the blue physics prop car is not visible in the cubemap because it is not static.]]
{{base point|env_cubemap|internal=1|sprite=1}} It specifies a location for which a [[cubemap]] will be generated when the {{ent|buildcubemaps}} console command is executed. Objects with {{ent|$envmap}} [[material]]s will use the nearest cubemap as their reflection.
{{base point|env_cubemap|internal=1|sprite=1}} It specifies a location for which a [[cubemap]] will be generated when the {{ent|buildcubemaps}} console command is executed. [[Material]]s with {{ent|$envmap}} will use the nearest cubemap as their reflection.


{{intent}}
{{intent}}

Revision as of 11:56, 23 September 2018

English (en)Deutsch (de)Français (fr)한국어 (ko)Português do Brasil (pt-br)Русский (ru)中文 (zh)中文(臺灣) (zh-tw)Translate (Translate)
A cubemap example containing the white static prop car, a sprite and decals. Note that the blue physics prop car is not visible in the cubemap because it is not static.

Template:Base point It specifies a location for which a cubemap will be generated when the buildcubemaps console command is executed. Materials with $envmap will use the nearest cubemap as their reflection.

Template:Intent

Note.pngNote:Cubemaps will contain static props, sprites and decals, such as enemy blood and user sprays.

Keyvalues

Comparison of reflection quality. 1x1 is not included because it does not reflect at all.
Cubemap Size (cubemapsize) ([todo internal name (i)]) <choices>
The resolution of each face of the cubemap. Remember that the actual number of pixels stored will be your selection times six!
  • 0: Default (usually 32x32, depending on the game)
  • 1: 1x1
  • 2: 2x2
  • 3: 4x4
  • 4: 8x8
  • 5: 16x16
  • 6: 32x32
  • 7: 64x64
  • 8: 128x128
  • 9: 256x256
  • 10: 512x512 !FGD
  • 11: 1024x1024 !FGD
  • 12: 2048x2048 !FGD
  • 13: 4096x4096 !FGD
Brush faces (sides) ([todo internal name (i)]) <sidelist>
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.

See Also