About Store Forum Documentation Contact



Post Reply 
amblient light
Author Message
guoruiqiubai Offline
Member

Post: #1
amblient light
In the class Display there are some methods relatated to amblient light, but I'm confused about what are they used for, the methods lists here:
ambMode
ambSoft
ambJitter
ambNormal
ambHalfRes
ambPower
ambColor
ambContrast
ambRange
ambScale
ambBias

Could u tell me some principles behind those pls ? Otherwise It will be nice if U could tell me which articles to read to learn those. With the background knowledge I can use them better.

3x
02-22-2010 07:55 AM
Find all posts by this user Quote this message in a reply
Kevin Offline
Member

Post: #2
RE: amblient light
(02-22-2010 07:55 AM)guoruiqiubai Wrote:  In the class Display there are some methods relatated to amblient light, but I'm confused about what are they used for, the methods lists here:
ambMode
ambSoft
ambJitter
ambNormal
ambHalfRes
ambPower
ambColor
ambContrast
ambRange
ambScale
ambBias

Could u tell me some principles behind those pls ? Otherwise It will be nice if U could tell me which articles to read to learn those. With the background knowledge I can use them better.

3x

1. It's called ambient wink

2. Look into the headers:

Code:
// Ambient Light
   Display& ambMode    (Byte mode    );   Byte ambMode    (){return _amb_mode       ;} // set/get Ambient Mode            (AMBIENT_MODE, default=AMB_FLAT)
   Display& ambSoft    (Byte soft    );   Byte ambSoft    (){return _amb_soft       ;} // set/get Ambient Softing         (  0..2      , default=       1)
   Display& ambJitter  (Bool jitter  );   Bool ambJitter  (){return _amb_jitter     ;} // set/get Ambient Jittering       (true/false  , default=    true)
   Display& ambNormal  (Bool normal  );   Bool ambNormal  (){return _amb_normal     ;} // set/get Ambient Normal Map Use  (true/false  , default=    true)
   Display& ambHalfRes (Bool half_res);   Bool ambHalfRes (){return _amb_half_res   ;} // set/get Ambient Half Resolution (true/false  , default=    true)
   Display& ambPower   (Flt  power   );   Flt  ambPower   (){return _amb_color.avg();} // set/get Ambient Power           (  0..1      , default=     0.4), this is equivalent to using ambColor with 1 value
   Display& ambColor   (Vec &color   );   Vec  ambColor   (){return _amb_color      ;} // set/get Ambient Color           (  0..1      , default=     0.4)
   Display& ambContrast(Flt  contrast);   Flt  ambContrast(){return _amb_contrast   ;} // set/get Ambient Contrast        (  0..Inf    , default=     1.2)
   Display& ambRange   (Flt  range   );   Flt  ambRange   (){return _amb_range      ;} // set/get Ambient 2D Range        (  0..Inf    , default=     0.3)
   Display& ambScale   (Flt  scale   );   Flt  ambScale   (){return _amb_scale      ;} // set/get Ambient 3D Scale        (  0..Inf    , default=     2.5)
   Display& ambBias    (Flt  bias    );   Flt  ambBias    (){return _amb_bias       ;} // set/get Ambient Bias            (  0..1      , default=     0.3)
(sry for bad formatting, Display.h)

regards,
Kevin
02-22-2010 04:17 PM
Find all posts by this user Quote this message in a reply
Rofar Offline
Member

Post: #3
RE: amblient light
Kevin,

Does the comment "set/get Ambient Jittering" really explain what it is to you? I'm with the OP on this. I looked in the code headers and still don't really know what it does.
02-22-2010 11:47 PM
Find all posts by this user Quote this message in a reply
guoruiqiubai Offline
Member

Post: #4
RE: amblient light
(02-22-2010 11:47 PM)Rofar Wrote:  Kevin,

Does the comment "set/get Ambient Jittering" really explain what it is to you? I'm with the OP on this. I looked in the code headers and still don't really know what it does.

Agree, pls give some detail infomation about those
02-23-2010 02:26 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #5
RE: amblient light
i would assume its jittering of the ao shadows.
02-23-2010 05:20 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: amblient light
for more info about the parameters you can launch WE,
load some level
disable sun light
put ambient light to maximum
and play around with the parameters of AO
youll see what it does.
02-23-2010 04:34 PM
Find all posts by this user Quote this message in a reply
Rofar Offline
Member

Post: #7
RE: amblient light
Thanks for the tip smile
02-24-2010 12:02 AM
Find all posts by this user Quote this message in a reply
Post Reply