Blender Git Commit Log

Git Commits -> Revision c81e6ff

Revision c81e6ff by Sergey Sharybin (master)
December 31, 2015, 15:40 (GMT)
Fix T46915: Non-intuitive behavior of Vector Curve Mapping node

Vector mapping node was doing some weird mapping of both original and mapped
coordinates. Mapping of original coordinates was caused by the clamping nature
of the LUT generated from the node. Mapping of the mapped value again was quite
totally obscure -- one needed to constantly keep in mind that actual value will
be scaled up and moved down.

This commit makes it so values in the vector curve mapping are always absolute.
In fact, it is now behaving quite the same as RGB curve mapping node and the
code could be de-duplicated. Keeping the code duplicated for a bit so it's more
clear what exact parts of the node changed.

Reviewers: brecht

Subscribers: bassamk

Differential Revision: https://developer.blender.org/D1672

Commit Details:

Full Hash: c81e6ffdf942a7e8ac58ef3a48ca1bcab78f01fd
Parent Commit: 70fa2f6
Lines Changed: +88, -30

8 Modified Paths:

/intern/cycles/blender/addon/version_update.py (+16, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+6, -1) (Diff)
/intern/cycles/blender/blender_util.h (+14, -15) (Diff)
/intern/cycles/kernel/shaders/node_vector_curves.osl (+24, -5) (Diff)
/intern/cycles/kernel/svm/svm_ramp.h (+15, -7) (Diff)
/intern/cycles/render/nodes.cpp (+11, -1) (Diff)
/intern/cycles/render/nodes.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021