View Single Post
Old 11th November 2013, 19:28   #23
Nitorami
Major Dude
 
Join Date: Mar 2008
Location: Erlangen
Posts: 856
Hi Great Who

I like the surprising shapes in addicted, but find them a bit too flashy. But then, maybe that is just because me and my eyes are getting old.

A hint at this place: To soften brightness steps, in other words to adjust the gamma value, do not use the log10, which is negative for inputs < 1, has a nasty zero singularity and is undefined for negative values. The usual way to map an input between 0... infinity, as may be the outcome of calculations, to the valid range 0...1, is

ret = 1 - exp(-a x ret + b);

where a>0 and b is often zero but may be slightly negative to decrease contrast, or positive to increase it.

Martin
Nitorami is offline   Reply With Quote