Jump to content

Search the Community

Showing results for tags 'color correction day night pp'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello I wrote this little script for my server which has some colorcorrection effects which are nice during the day, but at night not so much. during the day it will look like this : during the night : how it should look at night : so I wrote this script : graphics.sqf // ventzer0 (c) 2013, leave the credit in! // _sunrise & _sunset determine start and end of the effect based on time private ["_sunrise", "_sunset","_loop"]; "filmGrain" ppEffectEnable true; _hndl = ppEffectCreate ["colorCorrections", 1501]; _hndl ppEffectEnable true; _daytime = daytime; //time at which nighttime effect should kick in _sunset = 18.5; //time at which daytime effect should kick in _sunrise = 7.0; _loop = 0; sleep 1; while { _loop != 6} do { //night while { ( _daytime > _sunset ) and ( _daytime > _sunrise ) } do { _hndl ppEffectAdjust[1,1,0,[0,0.04,0,-0.01],[0,0,0,1.58],[-0.11,-0.11,-0.11,0]]; _hndl ppEffectCommit 0; "filmGrain" ppEffectAdjust [0.01, 1, 1, 0.1, 1, true]; "filmGrain" ppEffectCommit 0; sleep 1200; //check all x seconds }; sleep 1; while { ( _daytime < _sunset ) and ( _daytime < _sunrise ) } do { _hndl ppEffectAdjust[1,1,0,[0,0.04,0,-0.01],[0,0,0,1.58],[-0.11,-0.11,-0.11,0]]; _hndl ppEffectCommit 0; "filmGrain" ppEffectAdjust [0.01, 1, 1, 0.1, 1, true]; "filmGrain" ppEffectCommit 0; sleep 1200; //check all x seconds }; sleep 1; // day while { ( _daytime > _sunrise ) and ( _daytime < _sunset ) } do { _hndl ppEffectAdjust[1,1,0,[0,-0.12,0.05,0.03],[0,0,0,1.23],[-0.11,-0.11,-0.11,0]]; _hndl ppEffectCommit 0; "filmGrain" ppEffectAdjust [0.0225, 1, 1, 0.1, 1, true]; "filmGrain" ppEffectCommit 0; sleep 1200; //check all x seconds }; sleep 1; _loop = _loop + 1; }; put this code in a file called graphics.sqf and place it somewhere into your missionfile to execute the script put this: execVM "pathto\graphics.sqf"; after the if (!isdedicated) {...}; part in your init.sqf something like this: if (!isDedicated) then { [... ect ... a lot of code which is not important for this] }; execVM "pathto\graphics.sqf"; // different colorcorrection for day and night [... etc ... left out the rest because not important] I hope someone finds this useful :)
×
×
  • Create New...