Jump to content

Rendering Using Point Colors


Recommended Posts

Hi all--

I have a basic rendering question, using Houdini Apprentice. I have some colored points in my SOP network. How can I get Mantra to render them as point using the colors they have in the SOP network? I tried using a constant shader and putting $CR $CG $CB in the color parameters but I guess those per-point attributes are not available on the shader level... What do I do?

thanks

markus

Link to comment
Share on other sites

Hi, use an Attribute SOP to rename the Cd attribute to diff. This will override the diffuse parameter of your shader. You can do the same thing with other parameters, for example renaming Cd to amb will use the point colors for Ambient lighting. Or you can override the refraction/reflection values of raytracing shaders, you get the idea...

Link to comment
Share on other sites

Thanks, I'll give that a try!!

Hi, use an Attribute SOP to rename the Cd attribute to diff. This will override the diffuse parameter of your shader. You can do the same thing with other parameters, for example renaming Cd to amb will use the point colors for Ambient lighting. Or you can override the refraction/reflection values of raytracing shaders, you get the idea...

21473[/snapback]

Link to comment
Share on other sites

  • 1 year later...
Hi, use an Attribute SOP to rename the Cd attribute to diff. This will override the diffuse parameter of your shader. You can do the same thing with other parameters, for example renaming Cd to amb will use the point colors for Ambient lighting. Or you can override the refraction/reflection values of raytracing shaders, you get the idea...

It worth knowing as well that you can do this same trick with detail and primitive attributes as well as point ones, so if you want to effect the entire surface you can use a detail attribute and if you want to change primitive colours you a primitive attribute and so on...

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...