Jump to content

ASAD light question


Recommended Posts

Hi everybody,

I am using a ASAD light shader on a sphere in order to use this sphere's point as cone lights, but I wonder how I can assign a color ramp to this ASAD light shader.

For example I would like to have the top point to be blue and the bottom point to be red, basically asigning a Color on the Y axis.

Do I have to use an image map, even though that is not very flexible ? or maybe an expression in an attrib Create Sop ?

Thanks in advance

Julien

Link to comment
Share on other sites

Hey Julien,

Assign a Point SOP to the Sphere & turn on "Add Color". Use the following in the fields:

R = 1-$BBY
G = 0
B = $BBY

which should make the bottom half of the sphere red & the top blue. If this doesn't work for you, you can always use a Paint SOP.

Finally, in the AttribCreate SOP, replace the colour values with

$CR $CG $CB

Cheers!

steven

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...