Color Ramp in Houdini 16

   9471   5   1
User Avatar
Member
154 posts
Joined: March 2016
Offline
Hello, could someone tell me what is the most recent way to assign a color ramp to a object or a line?
Edited by ALMINA - Feb. 25, 2017 22:05:23
User Avatar
Member
333 posts
Joined: Oct. 2012
Offline
for a curve.
resample with curveu attribute. then just use color sop with ramp from attribute: curveu.

for 3d object you can use a color sop and do bounding box color and then in a vopsop take one of float value of the Cd with a vector to float and remap it with another ramp.

for radial ramp you will need to calculate a distance from a start point to your geo points and normalize it between 0-1. you can do that with a fit01 and take the min and max distance as range inputs.
User Avatar
Member
154 posts
Joined: March 2016
Offline
Is this right? I still don't get a gradient color on the line…
I have added a color sop with bounding box before this.

Attachments:
スクリーンショット 2017-02-26 3.46.20.png (679.7 KB)

User Avatar
Member
333 posts
Joined: Oct. 2012
Offline
seems like you are taking the X value of Cd while you want to do a ramp on Y axis. take the second float input instead which is the Y bouding box mapped to Green channel.
User Avatar
Member
154 posts
Joined: March 2016
Offline
That fixed it! Thank you very much!
User Avatar
Member
1 posts
Joined: Nov. 2016
Offline
Hello!

Sorry I'm having the same issue, but when it comes to the VOP part I'm not fully understanding the comment about

“take the second float input instead which is the Y bouding box mapped to Green channel.”

Could you post a screen shot of what you did to correct it?

Many thanks
  • Quick Links