PDA

View Full Version : Can displacement be controlled by a single color channel?

medicalart
02-11-2014, 09:23 AM
Can displacement be controlled by a single color channel? What would the node set-up be? I watched an old tutorial by W. Vaughan that shows an array of pins whose displacement is controlled by an image. So, the pins rise more where the image is brighter. The node set-up, was: Image color > vector > displacement. It was a grayscale image. Which node would I use to specify a single color channel to be used for the displacement? For example, using only the red channel to displace the object.
Thanks for any ideas.

jeric_synergy
02-11-2014, 09:37 AM
Should be a doddle: find a node that gives separate access to the vector information in a color, split out the red, and wallagh!

Looking: Vector Scalar would work. There's probably (VERY likely) one that gives you simultaneous access to each channel- Vector Scalar only has one output, but you could always use 3 copies to get everything simultaneously.

ninok5
02-11-2014, 09:50 AM
Can displacement be controlled by a single color channel? What would the node set-up be? I watched an old tutorial by W. Vaughan that shows an array of pins whose displacement is controlled by an image. So, the pins rise more where the image is brighter. The node set-up, was: Image color > vector > displacement. It was a grayscale image. Which node would I use to specify a single color channel to be used for the displacement? For example, using only the red channel to displace the object.
Thanks for any ideas.

You might be looking for the Color Scalar in Nodes -> Tools -> Color Scalar. It takes a color and interprets its values and spits out a number from 0 (black) to 1(white). You can use this as a multiplier to drive the size of the vector driving your displacement, probably via the Math -> Vector - > Scale node.

medicalart
02-11-2014, 01:53 PM
Thanks all.

jeric_synergy
02-11-2014, 05:37 PM
Vector>Scalar and Color>Scalar both work (see pic).

Haven't found a "breakout box" yet, but I'm sure it's there.... Of course, I could craft a breakout box using a Compound Node, and then I could share it with everyone. But I'm still looking for a native version.

Color>Scalar has few more output options like max/min/avg, than Vector>Scalar does.

120117