how to convert SOP pre-point color to shader ?

   2992   2   2
User Avatar
Member
21 posts
Joined:
Offline
I want render out with SOP point color, how to convert SOP point color to shader ? Cd–>Cf
User Avatar
Member
2199 posts
Joined: 7月 2005
Online
You need to check the parameter name of the diffuse component of your shader. Generally it's called “diff” just hover the mouse over it and it it should tell you. Then use this name in an attribute sop and rename the point colour attribute - which should be “Cd” to the paramter name, probably “diff”

If you then middle mouse button on the sop you should see that you have an attribute with the same name as the shader parameter - this is called overriding. You can do it with any shader parameter and it works for points, prims, detail and I believe now vertices.

When you render the diffuse colour should now be replaced with your point colours.

Be aware if you set up your point colours with attribute create and you only want some points changed that you need to use a point group and change the default values from 0,0,0 to the normal colour you want for the rest of your object. Otherwise it will render black where you haven't set your colours up.
The trick is finding just the right hammer for every screw
User Avatar
Member
21 posts
Joined:
Offline
o THANK YOU !!!
  • Quick Links