2
$\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$
  • $\begingroup$ Related blender.stackexchange.com/questions/7222/… $\endgroup$ – Mr Zak Sep 22 '17 at 19:37
  • 1
    $\begingroup$ Either use the Vector Transform node, or use Object texture coordinates, if your objects have applied scale values. $\endgroup$ – Duarte Farrajota Ramos Sep 22 '17 at 20:19
  • $\begingroup$ nice, the geometry+separate RGB node in the post mentioned by @MrZak did it. Thanks $\endgroup$ – Steffen Sep 22 '17 at 22:06
0
$\begingroup$

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

enter image description here

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.