Env cubemap: Difference between revisions
Jump to navigation
Jump to search
Son1cpr00wer (talk | contribs) No edit summary |
JensTrolldom (talk | contribs) No edit summary |
||
Line 33: | Line 33: | ||
{{KV|Brush faces|sidelist|An optional override for individual brush faces, forcing them to use this cubemap instead of one closest to them.<br/> 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.}} | {{KV|Brush faces|sidelist|An optional override for individual brush faces, forcing them to use this cubemap instead of one closest to them.<br/> 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.}} | ||
==How to place cubemaps properly== | |||
# Place the env_cubemap in the center of the rooms you want it in (unless there is a reason not to, e.g if the cubemap will be placed inside a prop, or there is a better place to place it). | |||
# Make a brush that is 64 units high and place it beside one of the env_cubemaps. | |||
# Go top map->Entity Report and mark all your env_cubemap entities. | |||
# When marked, move the one beside the brush you made upwards, until it reaches the top line of the brush. | |||
# Delete the brush you made. | |||
# Compile-> And in game open the console and type "buildcubemaps". | |||
[[file:http://i.gyazo.com/336c66a1eaabd7283a2080ede7217d75.png|thumb|Example of how the env_cubemap should look when placed in the correct height]] | |||
The map will now reload with the new cubemaps built. The reason you want to raise the cubemaps by 64 units is because this is the height that the players see in. |
Revision as of 08:30, 5 March 2016
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.
Keyvalues
- Cubemap Size ([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!
- Default (usually 32x32, depending on the game)
- 1x1
- 2x2
- 4x4
- 8x8
- 16x16
- 32x32
- 64x64
- 128x128
- 256x256
Comparison of reflection quality (1x1 is not included because it does not reflect at all):
- Brush faces ([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.
How to place cubemaps properly
- Place the env_cubemap in the center of the rooms you want it in (unless there is a reason not to, e.g if the cubemap will be placed inside a prop, or there is a better place to place it).
- Make a brush that is 64 units high and place it beside one of the env_cubemaps.
- Go top map->Entity Report and mark all your env_cubemap entities.
- When marked, move the one beside the brush you made upwards, until it reaches the top line of the brush.
- Delete the brush you made.
- Compile-> And in game open the console and type "buildcubemaps".
File:Http://i.gyazo.com/336c66a1eaabd7283a2080ede7217d75.png
Example of how the env_cubemap should look when placed in the correct height
The map will now reload with the new cubemaps built. The reason you want to raise the cubemaps by 64 units is because this is the height that the players see in.