Results 1 to 7 of 7

Thread: Just Another Lighting

  1. #1
    Just a simple try to play with lighting settings, not (yet)genious but *** it's just to show you where and how...

    I was searchng it for my Everon, cause i don't like default lighting in Arma, but i don't have enough of time to work on both at the same time.

    So i give you an idea and i hope here will be one smart ass to make the lighting more realistic.

    Changes -

    Sunet (sunrise) is a littlebit more redish, some another light gamma changes, changed brightnes of global light.

    Noon - Added more blue light in the default gamma, some another light gamma changes.

    I don't say i'we made more realistic lighting than BiS , but i hope someone will do !!!

    So it's open project, i invite everyone who have some knowledge in 3d lighting to make it better !

    So here it is 18.9kb

    http://rapidshare.com/files/138536238/lighting.pbo.html





    PS

    Here is some explanations, i hope the things i'we found are right -

    Exemple of code -


    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches {
    class Ca_Lighting {
    units&#91;&#93; = {};
    weapons&#91;&#93; = {};
    requiredVersion = 0.1;
    requiredAddons&#91;&#93; = {CAData};
    };
    };

    class CfgWorlds {
    initWorld = &#34;Intro&#34;;
    demoWorld = &#34;Intro&#34;;
    class DefaultClutter; // External class reference

    class DefaultWorld {

    class DefaultLighting ***{
    access = 3;
    groundReflection&#91;&#93; = {0.085000,0.068000,0.034000 };
    moonObjectColorFull&#91;&#93; = {0.900000,0.900000,1.000000,0.700000 };
    moonHaloObjectColorFull&#91;&#93; = {0.900000,0.900000,1.000000,0.010000 };
    moonsetObjectColor&#91;&#93; = {0.900000,0.750000,0.400000 };
    moonsetHaloObjectColor&#91;&#93; = {0.900000,0.500000,0.200000 };
    nightAngle = 5;
    sunSunset = 20;
    endSunset = 10;
    };
    *** class Lighting &#58; DefaultLighting
    *** {
    };

    class DayLightingBrightAlmost ***{
    deepNight&#91;&#93; = {-15,{0.050000,0.050000,0.060000 },{0.001000,0.001000,0.002000

    },{0.020000,0.020000,0.050000 },{0.003000,0.003000,0.003000 },{0.001000,0.001000,0.002000 },{0.001000,0.001000,0.002000 },0

    };
    fullNight&#91;&#93; = {-5,{0.050000,0.050000,0.060000 },{0.020000,0.020000,0.020000

    },{0.040000,0.040000,0.040000 },{0.040000,0.040000,0.040000 },{0.010000,0.010000,0.020000 },{0.080000,0.060000,0.060000 },0

    };
    sunMoon&#91;&#93; = {-3.750000,{0.040000,0.040000,0.050000 },{0.040000,0.040000,0.050000

    },{0.040000,0.040000,0.050000 },{0.040000,0.040000,0.050000 },{0.040000,0.035000,0.040000 },{0.110000,0.080000,0.090000

    },0.500000 };
    earlySun&#91;&#93; = {-2.500000,{0.480000,0.200000,0.280000 },{0.150000,0.080000,0.001000

    },{0.320000,0.240000,0.280000 },{0.080000,0.060000,0.070000 },{0.120000,0.098000,0.150000 },{0.500000,0.070000,0.080000 },0

    };
    sunrise&#91;&#93; = {0,{0.990000,0.380000,0.150000 },{{0.420000,0.650000,0.6900000 },&#34;1+&#40;-4&#41;&#34;

    },{{0.600000,0.470000,0.250000 },&#34;1.2+&#40;-4&#41;&#34; },{{0.100000,0.090000,0.100000 },&#34;4.4+&#40;-4&#41;&#34; },{{0.990000,0.480000,0.100000

    },&#34;4.5+&#40;-4&#41;&#34; },{{0.970000,0.450000,0.240000 },&#34;6+&#40;-4&#41;&#34; },1 };
    earlyMorning&#91;&#93; = {1,{{0.750000,0.300000,0.420000 },&#34;1.5+&#40;-4&#41;&#34; },{{0.080000,0.090000,0.110000

    },&#34;2.0+&#40;-4&#41;&#34; },{{0.800000,0.510000,0.520000 },&#34;5.75+&#40;-4&#41;&#34; },{{0.920000,0.600000,0.250000 },&#34;4.75+&#40;-4&#41;&#34;

    },{{0.500000,0.400000,0.400000 },&#34;7.5+&#40;-4&#41;&#34; },{{0.880000,0.510000,0.240000 },&#34;8.75+&#40;-4&#41;&#34; },1 };
    midMorning&#91;&#93; = {15,{{0.980000,0.850000,0.800000 },&#34;10.5+&#40;-4&#41;&#34; },{{0.080000,0.090000,0.110000

    },&#34;6.5+&#40;-4&#41;&#34; },{{0.870000,0.470000,0.250000 },&#34;9.5+&#40;-4&#41;&#34; },{{0.090000,0.090000,0.100000 },&#34;7.5+&#40;-4&#41;&#34;

    },{{0.500000,0.400000,0.400000 },&#34;9.5+&#40;-4&#41;&#34; },{{0.880000,0.510000,0.240000 },&#34;9.75+&#40;-4&#41;&#34; },1 };
    morning&#91;&#93; = {25,{{1,1,0.900000 },&#34;15.5+&#40;-4&#41;&#34; },{{0.170000,0.180000,0.190000 },&#34;12.5+&#40;-4&#41;&#34;

    },{{1,1,0.900000 },&#34;14.5+&#40;-4&#41;&#34; },{{0.170000,0.180000,0.190000 },&#34;13+&#40;-4&#41;&#34; },{{0.150000,0.150000,0.150000 },&#34;14.5+&#40;-4&#41;&#34;

    },{{0.170000,0.170000,0.150000 },&#34;15+&#40;-4&#41;&#34; },1 };
    noon&#91;&#93; = {70,{{1,0.980000,0.850000 },&#34;17+&#40;-4&#41;&#34; },{{0.850000,0.900000,0.990000 },&#34;13+&#40;-4&#41;&#34; },{{1,1,1

    },&#34;15+&#40;-4&#41;&#34; },{{0.360000,0.370000,0.380000 },&#34;12.75+&#40;-4&#41;&#34; },{{0.400000,0.600000,0.800000 },&#34;16+&#40;-4&#41;&#34;

    },{{1.000000,1.000000,0.900000 },&#34;17+&#40;-4&#41;&#34; },1 };
    };

    class DayLightingRainy
    {
    deepNight&#91;&#93; = {
    -15, {0.020000, 0.020000, 0.050000}, {0.003000, 0.003000, 0.003000}, {0.020000,

    0.020000, 0.050000}, {0.003000, 0.003000, 0.003000}, {0.001000, 0.001000, 0.002000}, {0.001000, 0.001000, 0.002000}, 0
    };
    fullNight&#91;&#93; = {
    -5, {0.030000, 0.030000, 0.030000}, {0.020000, 0.020000, 0.020000}, {0.030000,

    0.030000, 0.030000}, {0.020000, 0.020000, 0.020000}, {0.010000, 0.010000, 0.020000}, {0.080000, 0.060000, 0.060000}, 0
    };
    sunMoon&#91;&#93; = {
    -3.750000, {0.040000, 0.040000, 0.050000}, {0.040000, 0.040000, 0.050000}, {0.040000,

    0.040000, 0.050000}, {0.040000, 0.040000, 0.050000}, {0.040000, 0.035000, 0.040000}, {0.110000, 0.080000, 0.900000}, 0.500000
    };
    earlySun&#91;&#93; = {
    -2.500000, {0.097000, 0.097000, 0.110000}, {0.060000, 0.060000, 0.070000}, {0.097000,

    0.097000, 0.110000}, {0.060000, 0.060000, 0.070000}, {0.080000, 0.070000, 0.080000}, {0.140000, 0.100000, 0.120000}, 0.500000
    };
    earlyMorning&#91;&#93; = {
    0, {{1, 1, 1}, &#34;&#40;-4&#41;+4.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+3.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+4.5&#34;}, {{1,

    1, 1}, &#34;&#40;-4&#41;+3.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+4&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+4.5&#34;}, 1
    };
    morning&#91;&#93; = {
    5, {{1, 1, 1}, &#34;&#40;-4&#41;+6.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+5.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+6.5&#34;}, {{1, 1,

    1}, &#34;&#40;-4&#41;+5.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+7&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+7.5&#34;}, 1
    };
    lateMorning&#91;&#93; = {
    25, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+10.25&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;},

    {{1, 1, 1}, &#34;&#40;-4&#41;+10.25&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12.5&#34;}, 1
    };
    noon&#91;&#93; = {
    70, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+10.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;},

    {{1, 1, 1}, &#34;&#40;-4&#41;+10.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12.25&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12.75&#34;}, 1
    };
    };

    }; [/QUOTE]


    Will take just one line for ex - oon[] = {70,{{1,0.980000,0.850000 },"17+(-4)" },{{0.850000,0.900000,0.990000 },"13+(-4)" },{{1,1,1

    },"15+(-4)" },{{0.360000,0.370000,0.380000 },"12.75+(-4)" },{{0.400000,0.600000,0.800000 },"16+(-4)"

    },{{1.000000,1.000000,0.900000 },"17+(-4)" },1 };


    Where - 70 - is a global ligting force
    1,0.980000,0.850000 - colour of global light

    17+(-4) Radiosity or HDR force of global light

    0.850000,0.900000,0.990000 - colour of ambient (fill) light

    13+(-4) Radiosity or HDR force of ambient light

    1,1,1 - Don&#39;t know what it is

    15+(-4)" ***- Don&#39;t know neither

    0.360000,0.370000,0.380000 - don&#39;t know

    12.75+(-4) -- No ideas

    0.400000,0.600000,0.800000 - Haze and Fog colour

    16+(-4)" - Haze and Fog Radiosity or HDR force

    1.000000,1.000000,0.900000 - Sun halo colour - small part of the sky around of the sun

    17+(-4)" ***- Sun halo Radiosity or HDR force


    Voila that&#39;s all folks, and i wait for your researches


    PSS one more thing - More redish sky but with inverted gamma - (older version)

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches {
    class Ca_Lighting {
    units&#91;&#93; = {};
    weapons&#91;&#93; = {};
    requiredVersion = 0.1;
    requiredAddons&#91;&#93; = {CAData};
    };
    };

    class CfgWorlds {
    initWorld = &#34;Intro&#34;;
    demoWorld = &#34;Intro&#34;;
    class DefaultClutter; // External class reference

    class DefaultWorld {

    class DefaultLighting ***{
    access = 3;
    groundReflection&#91;&#93; = {0.085000,0.068000,0.034000 };
    moonObjectColorFull&#91;&#93; = {0.900000,0.900000,1.000000,0.700000 };
    moonHaloObjectColorFull&#91;&#93; = {0.900000,0.900000,1.000000,0.010000 };
    moonsetObjectColor&#91;&#93; = {0.900000,0.750000,0.400000 };
    moonsetHaloObjectColor&#91;&#93; = {0.900000,0.500000,0.200000 };
    nightAngle = 5;
    sunSunset = 20;
    endSunset = 10;
    };
    *** class Lighting &#58; DefaultLighting
    *** {
    };

    class DayLightingBrightAlmost ***{
    deepNight&#91;&#93; = {-15,{0.050000,0.050000,0.060000 },{0.001000,0.001000,0.002000 },{0.020000,0.020000,0.050000 },{0.003000,0.003000,0.003000 },{0.001000,0.001000,0.002000 },{0.001000,0.001000,0.002000 },0 };
    fullNight&#91;&#93; = {-5,{0.050000,0.050000,0.060000 },{0.020000,0.020000,0.020000 },{0.040000,0.040000,0.040000 },{0.040000,0.040000,0.040000 },{0.010000,0.010000,0.020000 },{0.080000,0.060000,0.060000 },0 };
    sunMoon&#91;&#93; = {-3.750000,{0.040000,0.040000,0.050000 },{0.040000,0.040000,0.050000 },{0.040000,0.040000,0.050000 },{0.040000,0.040000,0.050000 },{0.040000,0.035000,0.040000 },{0.110000,0.080000,0.090000 },0.500000 };
    earlySun&#91;&#93; = {-2.500000,{0.380000,0.200000,0.280000 },{0.080000,0.060000,0.070000 },{0.320000,0.240000,0.280000 },{0.080000,0.060000,0.070000 },{0.500000,0.070000,0.080000 },{0.550000,0.080000,0.300000 },0 };
    sunrise&#91;&#93; = {0,{{0.990000,0.380000,0.150000 },&#34;1+&#40;-4&#41;&#34; },{{0.420000,0.650000,0.9900000 },&#34;1+&#40;-4&#41;&#34; },{{0.600000,0.470000,0.250000 },&#34;1.2+&#40;-4&#41;&#34; },{{0.100000,0.090000,0.100000 },&#34;4.4+&#40;-4&#41;&#34; },{{0.990000,0.480000,0.100000 },&#34;4.5+&#40;-4&#41;&#34; },{{0.970000,0.450000,0.240000 },&#34;6+&#40;-4&#41;&#34; },1 };
    earlyMorning&#91;&#93; = {1,{{0.750000,0.300000,0.420000 },&#34;1.5+&#40;-4&#41;&#34; },{{0.080000,0.090000,0.110000 },&#34;2.0+&#40;-4&#41;&#34; },{{0.800000,0.510000,0.520000 },&#34;5.75+&#40;-4&#41;&#34; },{{0.920000,0.600000,0.250000 },&#34;4.75+&#40;-4&#41;&#34; },{{0.500000,0.400000,0.400000 },&#34;7.5+&#40;-4&#41;&#34; },{{0.880000,0.510000,0.240000 },&#34;8.75+&#40;-4&#41;&#34; },1 };
    midMorning&#91;&#93; = {15,{{0.980000,0.850000,0.800000 },&#34;10.5+&#40;-4&#41;&#34; },{{0.080000,0.090000,0.110000 },&#34;6.5+&#40;-4&#41;&#34; },{{0.870000,0.470000,0.250000 },&#34;9.5+&#40;-4&#41;&#34; },{{0.090000,0.090000,0.100000 },&#34;7.5+&#40;-4&#41;&#34; },{{0.500000,0.400000,0.400000 },&#34;9.5+&#40;-4&#41;&#34; },{{0.880000,0.510000,0.240000 },&#34;9.75+&#40;-4&#41;&#34; },1 };
    morning&#91;&#93; = {25,{{1,1,0.900000 },&#34;15.5+&#40;-4&#41;&#34; },{{0.170000,0.180000,0.190000 },&#34;12.5+&#40;-4&#41;&#34; },{{1,1,0.900000 },&#34;14.5+&#40;-4&#41;&#34; },{{0.170000,0.180000,0.190000 },&#34;13+&#40;-4&#41;&#34; },{{0.150000,0.150000,0.150000 },&#34;14.5+&#40;-4&#41;&#34; },{{0.170000,0.170000,0.150000 },&#34;15+&#40;-4&#41;&#34; },1 };
    noon&#91;&#93; = {70,{{1,0.980000,0.850000 },&#34;17+&#40;-4&#41;&#34; },{{0.850000,0.900000,0.990000 },&#34;13+&#40;-4&#41;&#34; },{{1,1,1 },&#34;15+&#40;-4&#41;&#34; },{{0.360000,0.370000,0.380000 },&#34;12.75+&#40;-4&#41;&#34; },{{0.400000,0.600000,0.800000 },&#34;16+&#40;-4&#41;&#34; },{{1.000000,1.000000,0.900000 },&#34;17+&#40;-4&#41;&#34; },1 };
    };

    class DayLightingRainy
    {
    deepNight&#91;&#93; = {
    -15, {0.020000, 0.020000, 0.050000}, {0.003000, 0.003000, 0.003000}, {0.020000, 0.020000, 0.050000}, {0.003000, 0.003000, 0.003000}, {0.001000, 0.001000, 0.002000}, {0.001000, 0.001000, 0.002000}, 0
    };
    fullNight&#91;&#93; = {
    -5, {0.030000, 0.030000, 0.030000}, {0.020000, 0.020000, 0.020000}, {0.030000, 0.030000, 0.030000}, {0.020000, 0.020000, 0.020000}, {0.010000, 0.010000, 0.020000}, {0.080000, 0.060000, 0.060000}, 0
    };
    sunMoon&#91;&#93; = {
    -3.750000, {0.040000, 0.040000, 0.050000}, {0.040000, 0.040000, 0.050000}, {0.040000, 0.040000, 0.050000}, {0.040000, 0.040000, 0.050000}, {0.040000, 0.035000, 0.040000}, {0.110000, 0.080000, 0.900000}, 0.500000
    };
    earlySun&#91;&#93; = {
    -2.500000, {0.097000, 0.097000, 0.110000}, {0.060000, 0.060000, 0.070000}, {0.097000, 0.097000, 0.110000}, {0.060000, 0.060000, 0.070000}, {0.080000, 0.070000, 0.080000}, {0.140000, 0.100000, 0.120000}, 0.500000
    };
    earlyMorning&#91;&#93; = {
    0, {{1, 1, 1}, &#34;&#40;-4&#41;+4.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+3.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+4.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+3.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+4&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+4.5&#34;}, 1
    };
    morning&#91;&#93; = {
    5, {{1, 1, 1}, &#34;&#40;-4&#41;+6.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+5.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+6.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+5.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+7&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+7.5&#34;}, 1
    };
    lateMorning&#91;&#93; = {
    25, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+10.25&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+10.25&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12.5&#34;}, 1
    };
    noon&#91;&#93; = {
    70, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+10.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+11.75&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+10.5&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12.25&#34;}, {{1, 1, 1}, &#34;&#40;-4&#41;+12.75&#34;}, 1
    };
    };

    }; [/QUOTE]




  2. #2

  3. #3
    nice.. i like the kegetys sky for ofp.. wish arma sky was the same, good trying




    MattXR ( MxR )

    Check out my Twitter BIS Fans and Sub!
    -- MRKCCO Twitter --


  4. #4

  5. #5
    Staff Sergeant
    Join Date
    Dec 12 2007
    Location
    C:\Program Files\Bohemia Interactive\ArmA 2
    Posts
    309
    Thanx m8,

    I &#39;ve been thinking of tinkering with these settings to achive a more South-East Asian look for VTE.
    You have worked out more than i did so i will work off your settings to try and get something happening for VTE,And of course i will credit you for your fantastic research and knowledge.
    I cannot stand the pinkish look of sunrise in ARMA .Your sunrise is better looking than default bis.
    Maybe this "fix" should be forwarded to Bis developers .I am sure everyone would prefer a more redish look than a strange pink glow to everything.

    Thanx again.

    *** ***




  6. #6
    Master Sergeant
    Join Date
    Oct 12 2001
    Location
    France (Paris)
    Posts
    733
    Hey, that looks better. I really didn&#39;t like the pink dawn lighting. I&#39;ll give it a try &#33;

    Malick

  7. #7
    Master Sergeant Serclaes's Avatar
    Join Date
    Nov 27 2005
    Location
    this town right here
    Posts
    775
    I&#39;ve also been trying to figure that out, thanks for sharing the results of your work&#33;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •