I have a bunch of packed objects that I wish to (in the shader) vary the hue of per (packed) point. What's the suggested workflow?
The way I'd approach it in Mantra (very crudely) is
- make random 'shift' attr with shift value -1 to 1.
- take Cd (or color map) input in shader, RGBtoHSV, then add the 'shift' value, convert back to RGB and plug into the shader.
To do the same in VRay I'm struggling because I can't seem to find a way to do something as simple as splitting a vector into 3 floats a-la
https://www.sidefx.com/docs/houdini/...ectofloat.html
Open to other ways of doing this, just wanted to know if there's an equivalent to vector to float, AS WELL as the suggested method for hue shifting.
Cheers
Ben
The way I'd approach it in Mantra (very crudely) is
- make random 'shift' attr with shift value -1 to 1.
- take Cd (or color map) input in shader, RGBtoHSV, then add the 'shift' value, convert back to RGB and plug into the shader.
To do the same in VRay I'm struggling because I can't seem to find a way to do something as simple as splitting a vector into 3 floats a-la
https://www.sidefx.com/docs/houdini/...ectofloat.html
Open to other ways of doing this, just wanted to know if there's an equivalent to vector to float, AS WELL as the suggested method for hue shifting.
Cheers
Ben
Comment