THE GAME CUSTOMIZATION NETWORK: FPSB | RTSB | RPGB |
SUBSCRIBE
 
 

Adding Color Correction
Added by...




Brought to you by...
Key Authors
SGT_kick_ur_ass
Category: CS:S > Mapping
Tags: color, correction, mapping, source
Added 2 years ago - last modified 6 months 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 Storm
Half Life Storm Studio

Example Maps
-SGT_kick_ur_ass


Feedback
Page of 4   1 2 3 4 Next Page
6 months ago
Impossible9



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.

Color_correction
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/subway_in.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
8 months ago
Shirk



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

Banned
8 months ago
Rusty9k



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.


Bananite
11 months ago
Shirk



I cant get it to work

Banned
12 months ago
abominable37



Very helpful :) I just don't get why if you want the whole map to have the correction you need to change those 2 values to 450/1000, why can't you just put -1 (everywhere)


just realized motto was christmasrelated
1 year ago
branman10000



Is there a way to change the color back to default or to another color?


Bananite
1 year ago
TresDelConwayJuan



Does this fix errors such as model blackouts when one walks into shaded areas? I have been trying to figure this out. Maybe its the way I have my env lighting set up. I dont know.

Desinger/Player
1 year ago



Is there a specific way to get the entity "Color_correction". Cause i dont got it. Is it because i use the "Gflyer"?


blow your ass
1 year ago
Semp



Just to make sure, the "Fuzziness" slider on the colorcorrectionui would be similar to adding HSV noise to your map. So this would be used to create a similar effect as the pre-round time in DoD:S?


I have a girlfriend, lolwut?
1 year ago
ivar



Posted by SGT_kick_ur_ass

Posted by ivar

Is it possible to add it with pakrat?


Yes, that's what you need to use.

ok... And, another thing I noticed was that when I created the color correction file, it showed up in every map, in every server... When I toggled color correction off in options, it was off again... Is this right? I don't want people to have my color correction in every map :).


Bananite
35 records
Page of 4   1 2 3 4 Next Page
Add Feedback
Please provide constructive feedback and adhere to FPSB's Posting Rules.
You cannot post yet! Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login
Assessment
You cannot assess yet! Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login
User Rating [+]
10/10
bScore
10.0/10
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Helpful & Informative
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Helpful & Informative
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Helpful & Informative