Adding Color Correction

Credits

Submitter
  • P2: Drudge
    Points: 5,334
  • E1: Helper
    EF: 10
  • C1: Member
  • A6: Elder
    Account Age: 7 years
SGT_kick_ur_ass (Creator/Co-creator)
Studio
Half Life Storm
Key Authors
SGT_kick_ur_ass

Rating

9.9/10
Based off 11 rating(s)

Additional Info

Genre
Mapping
Difficulty Level
Advanced

Stats

Post Count
45
ViewCount
17,077
Date Added
5 years ago
Date Modified
3 years ago
Welcome to another one of my mapping tutorials. In this tutorial, I will be teaching you how to set up Color Correction in your maps. What is Color Correction? Color Correction is a technique used by most cinematographers in order to help give a movie or a video a certain effect. Color Correction usually lets the viewer know what the feel of the movie/video is like, if it's cold or if it's warm, etc. The Source engine now supports these kinds of effects, so you can do the same thing with your maps. Color Correction, along with HDR, has been available for mappers ever since the release of Half Life 2 Episode 1, and today, I'm going to be teaching you how to add Color Correction to your maps using 2 methods; The Point entity, and the brush entity. Let's get started!
Creating the .RAW file
    First thing's first. In order for Color Correction to work, it requires a .raw file, which is what you need to create first.
  1. So, Open up Counter Strike Source, and create a server with any of the default maps. I've gone ahead and used cs_assault.
  2. In order for Color Correction to work, you must have Color Correction Enabled in your Video Options, so don't forget it!
  3. Now, open up your console, and type in the following commands:
    • sv_cheats 1
    • colorcorrectionui
    Once done so, you should get something like this:
  4. The ColorCorrectionUI editor is similar to using Adobe Photoshop. It allows you to create/delete layers, edit Color Balance, Color Levels, Brightness, Contrast, Hue, Saturation and much more, so if you're experienced with Photoshop, this shouldn't really be much of a problem for you. If you don't want to use the same settings as me, skip to step 5.
  5. I'm going to be editing the Layer settings, so that the map ends up looking Black n White. So go ahead and create a new layer with the Selected HSV Tool Filter and call it whatever you want. Use these settings:
  6. Note: If you can't see any changes and you have Color Correction enabled in your Video Options, you must Check Enable in the Color Correction Tools Window.
  7. Now, I've gone ahead and created another layer with the Levels Filter. Once again, name it what you want, it doesn't matter as long as you know what it is. I used the following Settings:
  8. All that did was just darken it a little bit. Those are the only settings that I'm going to change, but you can change as many as you like, until you get what you want.
  9. Once you have the settings you want, you need to save the .raw file. So in the bottom right corner of the Color Correction Tools Window, press Save.
  10. The .raw file must be saved in the Cstrike/Materials/Correction folder. If the folders don't exist, you must create them.
  11. You now have a .raw file ready for use in your maps!
Using the Entities
Now that you have the .raw file created, you need to incorporate it into your map. This can be done by using 2 entities: color_correction_volume and color_correction.
Color_correction_Volume
The entity color_correction_volume is a brush entity, which acts like a trigger. Once you enter the brush, the color correction will be enabled. This is good for when you want to add Color Correction to selected parts of your map. Setting it up in your map
  1. Open up your map, or just quickly create one for this tutorial.
  2. Now, create a brush covered in the tools/toolstrigger texture and tie it to color_correction_volume.
  3. Now, while the Properties window is Opened, edit the following Options:
    • Lookup Fade Duration: 0.1
    • Lookup Table Filename: materials/correction/cc_tut.raw
    Lookup Fade Duration is the speed at which the Color Correction fades in once the player enters the trigger. You can set it to whatever you want, but in order for it to fade in quickly, I have mine set to 0.1. Lookup Table Filename is where you enter the directory of your .raw file you created earlier in relation to the cstrike folder. Since mine was called cc_tut.raw, I typed in materials/correction/cc_tut.raw. There rest of the settings can remain at default. That's it for setting up the color_correction_volume entity. Test it out, and when the player enters the brush, it should trigger the Color Correction.
Color_correction
Unlike the color_correction_volume entity, the color_correction entity displays the Color Correction Effect throughout the entire map.
  1. Open up your map, or quickly whip up a new one.
  2. Using the entity tool(Shift+E), add in the entity color_correction and open up it's properties window.
  3. You will need to change the following settings:
    • Lookup Falloff Start Distance: -1
    • Lookup Falloff End Distance: -1
    • Lookup Table Filename: materials/correction/cc_tut.raw
    Lookup Falloff Start Distance is used to determine at what distance will the entity be at full intensity. Keep it at -1 and it will show everywhere. Lookup Falloff End Distance is The Distance from the entity at which the Color Correction will no longer take effect. Keep it at -1 just like the Lookup Falloff Start Distance. Lookup Table Filename is where you enter the directory of your .raw file you created earlier in relation to the cstrike folder. Since mine was called cc_tut.raw, I typed in materials/correction/cc_tut.raw. You're done! Compile your map, and you should notice that no matter where you go, the Color Correction should be enabled.
Thank you for reading my tutorial, if you have any questions, please do not hesitate to PM me or leave a comment. Half Life StormHalf Life Storm StudioExample Maps -SGT_kick_ur_ass
  • You must be a member

Comments

    • P1: Beggar
      Points: 833
    • C1: Member
    • A5: Veteran
      Account Age: 5 years

    Good tut 10/10

    There's one problem I get and it's a real pain... When you get the ColorCorrectionUI editor up and setup the settings you want they are not the game same ingame when you quit and load the map again.

    E.G. you choose a nice blue and save the raw file, but when you load the map again the blue is so much darker (not the same as when you choose on ColorCorrectionUI editor)

    To guess and check each time I really hate this... :( Any work around to fix this? when I choose my ColorCorrectionUI editor colour setting I want them to stay that way grrr....

    Mapper
    • P1: Beggar
      Points: 163
    • C1: Member
    • A3: Apprentice
      Account Age: 2 years

    If i open up a .RAW file i have made, should the effects pop up instantly? I am guessing there is some problems with Color Correction and the new CS:S.

    Brush it off!
    • P2: Drudge
      Points: 4,731
    • E1: Helper
      EF: 3
    • C1: Member
    • A5: Veteran
      Account Age: 5 years

    So, I just tried this. It simply does not work. Color Correction is enabled. The "Enable" box is checked. But it does not give a live preview, and will not apply even when I try to make it in blind. Please help me!

    Do you like waffles?
  • Anonymous

    That's pretty damn much to read, but it goes very well into detail. I feel like I'm a pro after reading all this, lol. Great usefulness, I've already used it in some of my neon-maps, but never assesed yet.

    • P1: Beggar
      Points: 30
    • C1: Member
    • A4: Graduate
      Account Age: 4 years

    If you are experiencing problems, try renaming the .raw file to cc*. raw and keeping the amount of characters low. Color Correction didn't show for me before, too, and after I renamed the raw from tehredtraining to cc_red it worked.

    Also, try actually setting the fade distance instead of using -1 for both keys.

    • P1: Beggar
      Points: 90
    • C1: Member
    • A3: Apprentice
      Account Age: 2 years

    Can this work for hl2 maps? i cant seem to get it to work...

    Zombies!
    • P2: Drudge
      Points: 1,109
    • E1: Helper
      EF: 7
    • C1: Member
    • A4: Graduate
      Account Age: 4 years

    I'm having a problem. I have created my own color correction .raw file, saved it under Materials/correction/subway_in.raw

    Then, i have used a color_correction entity to put the color correction all over the map.

    Colorcorrection Entity Properties: Name: correction Start Disabled: No Lookup Falloff Start Distance: -1 Lookup Falloff End Distance: -1 Maximum Weight: 1.0 Lookup Table Filename: materials/correction/subwayin.raw Lookup Fade In Duration: 0.1 Lookup Fade Out Duration: 0.1

    When i compile and start the map, the color correction does not show. I have color correction enabled in the video settings, and color correction did show up in the Color Correction UI if i created a tool.

    However, it may have something to do with the fact that when i use the lookup tool to lookup my table, i encounter the same problem, the color correction does not show. Additionally, i have not yet PakRatted it.

    What did i do wrong and what should i do to solve this problem? Many thanks in advance.

    Junior Mapper
    • P1: Beggar
      Points: 172
    • C1: Member
    • A4: Graduate
      Account Age: 4 years

    I cant get the colorcorrection to show up in game when i change the settings with the colorcorrectiongui thing

    Banned
    • P1: Beggar
      Points: 684
    • E1: Helper
      EF: 1
    • C1: Member
    • A4: Graduate
      Account Age: 3 years

    Really good tutorial.

    I had trouble at first because I was using DoD:S for this, please not that the DoD:S maps do not have color correction and you will have to make your own.

    • P1: Beggar
      Points: 172
    • C1: Member
    • A4: Graduate
      Account Age: 4 years

    I cant get it to work

    Banned
  • You must be a member