Blender Git Commit Log

Git Commits -> Revision 90daa8f

Revision 90daa8f by Matt Ebb (master)
September 16, 2007, 13:50 (GMT)
* Extra lamp falloff options, including custom curve!

This adds some new lamp attenuation options to the Lamp panel, replacing the old 'Quad' button. Yes, the panel layout is still nasty here, but I've ignored it for now to address properly in the panels cleanup work.

* Constant
http://mke3.net/blender/devel/rendering/falloff-constant.jpg
Lamp doesn't decay with distance

* Inverse Linear
http://mke3.net/blender/devel/rendering/falloff-invlinear.jpg
Default, and same as in older Blender without 'Quad' on. Decays linearly, with 'Dist' value as the lamp's half-energy-distance

* Inverse Square
http://mke3.net/blender/devel/rendering/falloff-invsquare.jpg
A sharper, more realistic decay, good for most electric lights (i.e. not sunlight). This is similar to the old Quad option with slight changes.

* Lin/Quad weighted
Exactly the same as in older Blenders with the old 'Quad' button enabled. When this setting is chosen, two sliders are shown, 'Linear' and 'Quad' (previously Quad1 and Quad2), which controls the 'linearness' or 'quadraticness' of the falloff curve. Lamps in old files with the 'Quad' button on will be initialised to this setting.

But much better for precise control over the lamp falloff now is:

* Custom Curve
This shows an extra 'Falloff Curve' panel, where you can use the standard Blender curve UI control to precisely control how the light falls off. The Y axis is intensity, and the X axis is distance, stretched over the length of the 'Dist' value.

Some example curves and renders:
http://mke3.net/blender/devel/rendering/falloff-curve1-curve.png
http://mke3.net/blender/devel/rendering/falloff-curve1.jpg

http://mke3.net/blender/devel/rendering/falloff-curve2-curve.png
http://mke3.net/blender/devel/rendering/falloff-curve2.jpg

http://mke3.net/blender/devel/rendering/falloff-curve3-curve.png
http://mke3.net/blender/devel/rendering/falloff-curve3.jpg (whee)

Commit Details:

Full Hash: 90daa8f81126a86f2cd419a6288b5f0b097d478b
SVN Revision: 12045
Parent Commit: c8fe5a0
Lines Changed: +129, -20

11 Modified Paths:

/source/blender/blenkernel/intern/colortools.c (+7, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+9, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+18, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -0) (Diff)
/source/blender/include/BIF_butspace.h (+4, -4) (Diff)
/source/blender/include/butspace.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_lamp_types.h (+16, -1) (Diff)
/source/blender/render/intern/include/render_types.h (+4, -0) (Diff)
/source/blender/render/intern/source/convertblender.c (+4, -1) (Diff)
/source/blender/render/intern/source/shadeoutput.c (+23, -8) (Diff)
/source/blender/src/buttons_shading.c (+40, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021