Blender Git Commit Log
Git Commits -> Revision d8b21b0
Revision d8b21b0 by Ton Roosendaal (master) December 30, 2003, 18:03 (GMT) |
Added improved exposure calculation - based at 1.0-exp(-color) trick in Yafray. But to guarantee backwards compatibility, and some more control, Stefano Selleri hacked a useful formula for it. - We now have 2 values to set: - "exp": the exponential correction value (0-1) - "range": the light range that maps on color 1.0 (0-5) - Using exp(x) (is e^x) we can much better prevent overflows from render, which are currently hard-clipped in Blender. Setting a small 'exp' value wil efficiently smooth out high energy and map that back to a color for display. - total formula: newcol= linfac*(1.0-exp(col*logfac)) col, newcol are colors linfac= 1.0 + 1.0/((2.0*wrld.exp +0.5)^10) logfac= log( (linfac-1.0)/linfac )/wrld.range wrld.exp and wrld.range are the button values - default setting: exp=0.0 and range=1.0 give results extremely close to previous rendering. - graph: http://www.selleri.org/Blender/buffer/Image1.png for 'exp' setting ranging from 0-1, and with 'range'=2 Thanks Stefano for the help! |
Commit Details:
Full Hash: d8b21b01c38bf2b7007458c221b2c1685d766cfd
SVN Revision: 1779
Parent Commit: 6c80064
Lines Changed: +45, -14
6 Modified Paths:
/source/blender/blenkernel/intern/world.c (+9, -3) (Diff)
/source/blender/blenloader/intern/readfile.c (+9, -0) (Diff)
/source/blender/makesdna/DNA_world_types.h (+7, -3) (Diff)
/source/blender/render/intern/source/rendercore.c (+12, -3) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+1, -1) (Diff)
/source/blender/src/buttons_shading.c (+7, -4) (Diff)
/source/blender/blenloader/intern/readfile.c (+9, -0) (Diff)
/source/blender/makesdna/DNA_world_types.h (+7, -3) (Diff)
/source/blender/render/intern/source/rendercore.c (+12, -3) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+1, -1) (Diff)
/source/blender/src/buttons_shading.c (+7, -4) (Diff)