Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(869)

Issue 6850047: Tiles: Map Range Node (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by dfelinto
Modified:
11 years, 6 months ago
Reviewers:
jbkkavt, lukas.toenne1, sergey.vfx, bf-codereview
CC:
zanqdo_gmail.com
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

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

Patch Set 1 #

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

Messages

Total messages: 5
dfelinto
11 years, 6 months ago (2012-11-14 03:40:54 UTC) #1
jbkkavt
Hi Dalai, I won't be able to review this patch until christmas. Perhaps someone else ...
11 years, 6 months ago (2012-11-14 05:27:18 UTC) #2
sergey.vfx
Hi, From implementation ans usability point of view it's all fine. However, not sure having ...
11 years, 6 months ago (2012-11-14 14:09:46 UTC) #3
lukas.toenne1
LGTM except for the initialization issue Sergey already found. Just a quick comment: in general ...
11 years, 6 months ago (2012-11-14 14:40:26 UTC) #4
dfelinto
11 years, 6 months ago (2012-11-14 21:42:32 UTC) #5
Thanks everyone for the review.
Committed on rev. 52214 (fixed the initialization of use_Clamp)

As far as removing Map Value, if someone is driving a value of the Map
Value Node I can't see how to doversion it.
-- Dalai
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b