
Originally Posted by
stephenhazel
well, for SOME reason things seem to be working out for me color wise.
although i've done nooothin.
the regular n*32767/255 seems to work basically.
and for my testing where the laser is right next to an unhuge canvas,
i'm using n*8191/255 cuz at full brightness my eyes feel weird.
I'm guessing at that short distance, even the reflections off the canvas
(a regular oil painting canvas) is pretty dang bright.
when i use 4095 the colors go weird.
prob cuz at low brightness levels the variances get too wide.
well, i would still appreciate a decent logarithmic scale from
0..32767 (or how to calc it).
thanks for tryin tho yall.
Try this for log scale:
For an input range 0-255 and an output range of 0-MaxOut:
Multiplier = MaxOut/LOG(256)
Output = LOG(Input + 1) * Multiplier
In this particular case, the base of the log doesn't matter because the multiplier balances things out. The results are similar to a gamma of 4.
Once milk has been poured over corn flakes, the clock starts ticking.