Global ents.vmf (Portal 2)

From Valve Developer Community
Jump to: navigation, search

Contains the basic global entities needed to set up a map, with various triggers to adjust the tonemapping and fog. It is typically found in: C:\Program Files\Steam\steamapps\common\portal 2\sdk_content\maps\instances\

See Working with instances for information on how to activate the environment preset triggers.

Instance IO Proxy

Outputs

Target Entity Target Input Parameter Delay Only Once
environment_testchamber Trigger 0.00 No
environment_destroyed Trigger 0.00 No
environment_bts Trigger 0.00 No
environment_underground Trigger 0.00 No
environment_mines Trigger 0.00 No
environment_lake Trigger 0.00 No
environment_darkness Trigger 0.00 No
environment_bottomless_pit Trigger 0.00 No
environment_jailbreak Trigger 0.00 No
environment_fan Trigger 0.00 No
environment_wheatley_z Trigger 0.00 No
environment_destroyed_b Trigger 0.00 No
environment_glados_intro Trigger 0.00 No
environment_bottomless_pit_falling Trigger 0.00 No
environment_lake_b Trigger 0.00 No
environment_act4_01 Trigger 0.00 No
environment_act4_02 Trigger 0.00 No
environment_act4_03 Trigger 0.00 No
environment_tuberide Trigger 0.00 No

Inputs

None.

Notable Entities

Entity Targetname
func_instance_io_proxy proxy
env_tonemap_controller @tonemapper
logic_autosave @autosave
point_clientcommand @clientcommand
point_servercommand @command
info_node
shadow_control
Shadow Color Maximum Distance Enable Shadows From Local Lights
98 102 106 100 1 (True)

HDR & Fog Presets

These presets are controlled by relays. The func_instance_io_proxy has an output for each relay. Each relay has its own corresponding env_fog_controller, and also sends outputs to "@tonemapper".

There are color_correction and postprocess_controller entities corresponding to each preset, though these do not appear to be used by the relays.

Each color_correction is named after its corresponding preset, with the suffix "_colourcorrection". (e.g. "environment_testchamber_colourcorrection")

Each postprocess_controller is named after its corresponding preset, with the suffix "_postfx". (e.g. "environment_testchamber_postfx")

Trigger
Color corrected/fx? Max Exposure Min Exposure Tonemap Rate  % Bright Pixels
Primary Fog Color Secondary Fog Start End Density
environment_testchamber
No 3 0.5 0.25 5
40 53 64 128 5000 1
environment_destroyed
No 5 1 0.25 5
50 70 80 128 2500 0.9
environment_destroyed_b
No 5 1 0.25 5
50 70 80 128 5000 0.9
environment_bts
No 5 1 0.25 5
56 95 141 41 91 152 1 5000 1
environment_underground
No 3 0.5 0.25 5
37 35 33 0 4500 0.95
environment_mines
No 3 0.5 0.25 5
70 85 100 0 6000 0.9
environment_lake
No 3 0.5 0.25 5
70 85 100 0 10000 0.9
environment_darkness
No 5 1 0.25 5
14 20 22 1 2500 0.9
environment_bottomless_pit
No 3 0.5 0.25 5
70 85 100 0 6000 0.7
environment_bottomless_pit_falling
Yes/Yes 3 0.5 0.25 5
3 6 8 40 45 50 0 3000 0.9
environment_jailbreak
No 3 0.5 0.25 5
100 140 160 128 4000 0.8
environment_wheatley_z
No 3 0.5 0.25 5
0 0 0 10000 11000 1
environment_glados_intro
No 5 1 0.25 5
39 54 63 0 3500 1
environment_lake_b
No 3 0.5 0.25 5
70 85 100 0 4500 0.9
environment_tuberide
No 3 0.5 0.25 5
120 155 170 90 130 150 128 5500 0.8
environment_act4_01
No 5 1 0.25 5
50 70 80 128 2500 0.9
environment_act4_02
No 5 1 0.25 5
50 70 80 128 3500 0.9
environment_act4_03
No 5 1 0.25 5
50 70 80 64 6000 0.9
environment_fan
No 3 0.5 0.25 5
16 19 22 128 3600 0.9