Collection of cool colour corrections

Which one of these would you recommend for day or night, and have you found a way to have it be time based?

I been looking into this for the past couple days.

Basically looking to create a more eerie feel for the night(blues/purples), and a really bleak day (oranges/yellows)
http://community.bistudio.com/wiki/date

Have a while loop that will check the time every 5 or so minutes.
Code:
_hour = date select 3;
Would return _hour from a format between 0-23
http://opendayz.net/threads/here-you-go-mission-file-with-working-ppeffects.7185/#post-13628
 
I would reccomend running this via:
Code:
    if (!isDedicated) then {
    [] execVM "blabla\effects.sqf";
    };
Unless you don't mind the:
Code:
Error in expression <ffectCreate ["colorCorrections", 1501];
spamming your RPT.
 
Thanks the effects are working, and also the earth quake! :) I just changed the time to 30 minutes to start the earthquake.
 
Anyone got effects to work based on time of day? Players have been complaining that the effects that look nice at night are completely shit during the day... Ideally I'd like to run blue/purple night and orange/yellow day and I do not fully comprehend what Kind-Sir has said..
 
Anyone got effects to work based on time of day? Players have been complaining that the effects that look nice at night are completely shit during the day... Ideally I'd like to run blue/purple night and orange/yellow day and I do not fully comprehend what Kind-Sir has said..
I'll work on it.
 
Some of these corrections work really well with ground fog and street lighting :)

Also if anyone could post some screenshots of what they have used that would be great!
 
Anyone got effects to work based on time of day? Players have been complaining that the effects that look nice at night are completely shit during the day... Ideally I'd like to run blue/purple night and orange/yellow day and I do not fully comprehend what Kind-Sir has said..
Script I wrote works, however, it looks very bad when changing. I'll try and make a dynamic change.
I wrote it with the mind of having 5 settings of (cycle (hours)):
  • Morning (0-5)
  • Dawn (6-7)
  • Day (8-17)
  • Dusk (18-19)
  • Night (20-23)
Of course, this can be adjusted and what not.

I will post the code once I get dynamic changing ready.


**EDIT:
Adjusted cycle hours due to a slight bug.
 
Script I wrote works, however, it looks very bad when changing. I'll try and make a dynamic change.
I wrote it with the mind of having 5 settings of (cycle (hours)):
  • Morning (0-6)
  • Dawn (6-7)
  • Day (7-18)
  • Dusk (18-19)
  • Night (19-23)
Of course, this can be adjusted and what not.


I will post the code once I get dynamic changing ready.
Ooh I am waiting with greedy hands for this! :p
 
Here it is. I don't have time to play around with the dynamic feature. I think it could be done by just putting the ppEffectAdjust values into an array relating to the time (0 for morning, 1 for dawn, 2 for day, ... so on).
I had the date set in the video to June 3rd of 2012.
Example mission file (run in Arma 2: OA) is attached, it's what is shown in the video.

**I will try and make a dynamic version, but this will do for now
(I apologize for the utterly wretched quality, I recorded on half resolution)

Code:
//set time arrays: cycle = [begin, end] (measured in-between, so like 6, 6 would mean the hour of 6)
_morning = [0, 4];
_dawn = [5, 5];
_day = [6, 18];
_dusk = [19, 19];
_night = [20, 23];
//Create the color correction effect and enable it
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
//while loop, goes on forever
while {true} do {
    //get the hour in the server
    _hour = date select 3;
    //check against table, rest should be self-explanatory
    if (_hour >= (_morning select 0) && _hour <= (_morning select 1)) then {
        //Clear contrast
        _hndl ppEffectAdjust [ 1, 1, 0, [0, 0, 0, -0.31],[1.9, 1.9, 1.73, 0.7],[0.2, 1.1, -1.5, 1.64]];
        _hndl ppEffectCommit 0;
    };
    if (_hour >= (_dawn select 0) && _hour <= (_dawn select 1)) then {
        //Sandy
        _hndl ppEffectAdjust [ 1, 1, 0, [1.01, -2.46, -1.23, 0],[2.11, 1.6, 0.71, 0.8],[1.43, 0.56, 3.69, 0.31]];
        _hndl ppEffectCommit 0;
    };
    if (_hour >= (_day select 0) && _hour <= (_day select 1)) then {
        //Wasteland
        _hndl ppEffectAdjust [1, 1, 0, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
        _hndl ppEffectCommit 0;
    };
    if (_hour >= (_dusk select 0) && _hour <= (_dusk select 1)) then {
        //Heavy Colour Correction
        _hndl ppEffectAdjust [1, 1.04, -0.004, [0.0, 0.0, 0.0, 0.0], [1, 0.8, 0.6, 0.5], [0.199, 0.587, 0.114, 0.0]];
        _hndl ppEffectCommit 0;
    };
    if (_hour >= (_night select 0) && _hour <= (_night select 1)) then{
        //Operation Flashpoint
        _hndl ppEffectAdjust [1,1,0,[0,0,0,0],[1,1,1.2,0.85],[1,1,-2.5,0]];
        _hndl ppEffectCommit 0;
    };
    //make sure the script checks every 5 minutes, could be increased (in second interval)
    sleep 300;
};

Useful Links:
http://www.armaholic.com/page.php?id=10163
http://community.bistudio.com/wiki/Post_process_effects
http://forums.bistudio.com/showthread.php?75528-ppEffect-collection
http://www.ofpec.com/forum/index.php?topic=33485.0
http://forums.bistudio.com/showthread.php?97766-Colour-Correction&p=1608027&viewfull=1#post1608027
 

Attachments

  • ppeffect_time_switch.Chernarus.zip
    1.7 KB · Views: 61
Nice job! Just a little jumpy on changing but still love it!
It would probably be best with subtle changes, or just a transition between them with dusk/dawn.
I'm pretty sure owners wont be setting it to be blue at dusk, then red at day, and so on. I just put some random filters that seemed to have a showing effect, just for a proof of concept.
 
Back
Top