Make Cd greyscale vex

   3922   5   0
User Avatar
Member
27 posts
Joined: June 2016
Offline
Hey,

simple one hopefully.

How can I make my Cd greyscale in vex?

@Cd = relbbox(0, @P.y); Returns a color value.

Just want to remap those values to greayscale, something like hsvtorgb?

Thanks!
User Avatar
Member
2561 posts
Joined: June 2008
Offline
Just assign the same value to all three RGB parts.

v@Cd = set(@P.y,@P.y,@P.y);
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
27 posts
Joined: June 2016
Offline
Awesome thanks!
User Avatar
Staff
2593 posts
Joined: July 2005
Offline
ludwigvon
Hey,

simple one hopefully.

How can I make my Cd greyscale in vex?

@Cd = relbbox(0, @P.y); Returns a color value.

Just want to remap those values to greayscale, something like hsvtorgb?

Thanks!

@Cd = luminance(relbbox(0, @P.y));
User Avatar
Member
4531 posts
Joined: Feb. 2012
Offline
Or you can just do:

@Cd = relbbox(0, @P).y;
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
27 posts
Joined: June 2016
Offline
All great options, thanks!
  • Quick Links