|
This node allows the user to convert an input value range into a destination range.
One important use case is to easily map the z channel from its original range in real world meters (i.e.: 0 - 150) to a more usable range of 0-1 (or similar) for use as a matte for colorization or filtering operations.
Currently there are two options to acchieve this
a) through the use of the normalize node, however this node is not animation safe since the color values will jump whenever a close or far away object enters on frame
b) through the use of the map value node which is based on scaling and offsetting of the original values. This is an unintuitive method that requires a large amount of trial and error
Sample test file (after patch):
http://www.pasteall.org/blend/17478
Screenshot:
http://www.pasteall.org/pic/40381
Patch by Daniel Salazar (idea, tests) and me (implementation).
Developed during the BlenderPRO 2012, in BrasÃlia :)
committed on rev. 52214
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+337 lines, -0 lines) |
Patch |
|
|
source/blender/blenkernel/BKE_node.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/blenkernel/intern/node.c
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/compositor/CMakeLists.txt
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/compositor/intern/COM_Converter.cpp
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/compositor/nodes/COM_MapRangeNode.h
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/compositor/nodes/COM_MapRangeNode.cpp
|
View
|
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/compositor/operations/COM_MapRangeOperation.h
|
View
|
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/compositor/operations/COM_MapRangeOperation.cpp
|
View
|
|
1 chunk |
+80 lines, -0 lines |
1 comment
|
Download
|
|
|
source/blender/editors/space_node/drawnode.c
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/RNA_access.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/intern/rna_nodetree.c
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/intern/rna_nodetree_types.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/nodes/CMakeLists.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/nodes/NOD_composite.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/nodes/composite/nodes/node_composite_mapRange.c
|
View
|
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5
|