Color correction (entity)

From Valve Developer Community
Jump to navigation Jump to search

Template:Base point It loads a color correction lookup table (.raw) and controls its strength. Correction is applied in a sphere surrounding the entity, with a configurable amount of falloff. By default the effect fades in gradually and only reaches peak intensity at the entity's exact location.

Left 4 Dead seriesLeft 4 Dead series In Left 4 Dead and Left 4 Dead 2, this entity will behave like color_correction in previous Source-based games if there is at least one fog_volume brush entity textured with the fogvolume material. The flags "Master" and "Simulate client-side" must be checked in the main color_correction entity. There can only be one master color_correction. It is recommended that the other color_correction entities be triggered with fog_volume with an override of the master. The override is done by setting the fog_volume entity property called ColorCorrection Name to a color_correction targetname of your choice.

Icon-Bug.pngBug:In Team Fortress 2, color_correction causes control point HUD icons to display improperly. (example).  [todo tested in ?]

Keyvalues

Lookup Falloff Start Distance <float>
Lookup Falloff End Distance <float>
Distance from the entity at which the effect should begin and end fading out.
Maximum Weight <normal>
The intensity of the effect before falloff.
Lookup Table Filename <path\file>
The path and filename of the lookup table to load. Starts in the game root and should include file extension.
Lookup Fade In Duration <float>
Lookup Fade out Duration <float>
How fast the effect should fade in/out when the entity is enabled/disabled.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

filename  !FGD
change the Lookup Table filename

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

Template:O EnableDisable

Flags

  • 1 : Master (Default color correction when used with L4D fog_volume)
  • 2 : Simulate client-side (Must be set when used with L4D fog_volume) Template:L4D add

See also

Hammer Tutorial Video Color Correction

http://www.youtube.com/watch?v=KnPhtS6W6pg

Fix color being too intense

Fix for too much color: 1. create a neutral .raw file (i.e. delete all .raw files, open your map, open the color correction ui and click save without creating filters)

2. create your desired color correction and save it.

3. open both .raw files in Photoshop, paste your .raw over the neutral one, set the layer opacity to 50% for your color correction and then save it as a .raw with the appropriate filename (i.e. the one your map will be looking for)