4
$\begingroup$

Let's assume I have a 10x10 array of columns of varying height. I have a node flow to equip them with a color gradient depending on their height. But is there any way to have an absolute reference, meaning that a height of 1 corresponds to white and then it goes towards black? Right now every column goes through the whole gradient, but the smaller ones should be only in the dark region. If something is unclear I am happy to clarify. Please see a render and the nodes below. Render enter image description here. Thank you,

Steffen

$\endgroup$
3
  • 1
    $\begingroup$ Related blender.stackexchange.com/questions/7222/… $\endgroup$
    – Mr Zak
    Commented Sep 22, 2017 at 19:37
  • 1
    $\begingroup$ Either use the Vector Transform node, or use Object texture coordinates, if your objects have applied scale values. $\endgroup$ Commented Sep 22, 2017 at 20:19
  • $\begingroup$ nice, the geometry+separate RGB node in the post mentioned by @MrZak did it. Thanks $\endgroup$
    – Steffen
    Commented Sep 22, 2017 at 22:06

1 Answer 1

3
$\begingroup$

You can make the texture coordinates depend on another object, or an empty.

enter image description here

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .