Blender Git Loki
Git Commits -> Revision b891385
December 2, 2009, 07:56 (GMT) |
Changes to Color Management After testing and feedback, I've decided to slightly modify the way color management works internally. While the previous method worked well for rendering, was a smaller transition and had some advantages over this new method, it was a bit more ambiguous, and was making things difficult for other areas such as compositing. This implementation now considers all color data (with only a couple of exceptions such as brush colors) to be stored in linear RGB color space, rather than sRGB as previously. This brings it in line with Nuke, which also operates this way, quite successfully. Color swatches, pickers, color ramp display are now gamma corrected to display gamma so you can see what you're doing, but the numbers themselves are considered linear. This makes understanding blending modes more clear (a 0.5 value on overlay will not change the result now) as well as making color swatches act more predictably in the compositor, however bringing over color values from applications like photoshop or gimp, that operate in a gamma space, will give identical results. This commit will convert over existing files saved by earlier 2.5 versions to work generally the same, though there may be some slight differences with things like textures. Now that we're set on changing other areas of shading, this won't be too disruptive overall. I've made a diagram explaining the pipeline here: http://mke3.net/blender/devel/2.5/25_linear_workflow_pipeline.png and some docs here: http://www.blender.org/development/release-logs/blender-250/color-management/ |
Commit Details:
Full Hash: b89138564eee9b576263518df0ed5dc045668f75
SVN Revision: 25065
Parent Commit: c758f65
Lines Changed: +273, -159
30 Modified Paths:
/release/scripts/ui/properties_material.py (+1, -1) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_colortools.h (+0, -6) (Diff)
/source/blender/blenkernel/intern/colortools.c (+0, -46) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/blenlib/BLI_math_color.h (+19, -3) (Diff)
/source/blender/blenlib/intern/math_color.c (+58, -3) (Diff)
/source/blender/blenloader/intern/readfile.c (+41, -1) (Diff)
/source/blender/editors/interface/interface.c (+4, -0) (Diff)
/source/blender/editors/interface/interface_draw.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+12, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_regions.c (+17, -3) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+25, -2) (Diff)
/source/blender/editors/space_view3d/drawmesh.c (+20, -6) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+9, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_color.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+1, -1) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -1) (Diff)
/source/blender/render/intern/source/convertblender.c (+2, -4) (Diff)
/source/blender/render/intern/source/pixelshading.c (+4, -13) (Diff)
/source/blender/render/intern/source/shadeinput.c (+6, -32) (Diff)
/source/blender/render/intern/source/sss.c (+4, -7) (Diff)
/source/blender/render/intern/source/texture.c (+32, -15) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_colortools.h (+0, -6) (Diff)
/source/blender/blenkernel/intern/colortools.c (+0, -46) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/blenlib/BLI_math_color.h (+19, -3) (Diff)
/source/blender/blenlib/intern/math_color.c (+58, -3) (Diff)
/source/blender/blenloader/intern/readfile.c (+41, -1) (Diff)
/source/blender/editors/interface/interface.c (+4, -0) (Diff)
/source/blender/editors/interface/interface_draw.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+12, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_regions.c (+17, -3) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+25, -2) (Diff)
/source/blender/editors/space_view3d/drawmesh.c (+20, -6) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+9, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_color.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+1, -1) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -1) (Diff)
/source/blender/render/intern/source/convertblender.c (+2, -4) (Diff)
/source/blender/render/intern/source/pixelshading.c (+4, -13) (Diff)
/source/blender/render/intern/source/shadeinput.c (+6, -32) (Diff)
/source/blender/render/intern/source/sss.c (+4, -7) (Diff)
/source/blender/render/intern/source/texture.c (+32, -15) (Diff)