Passing colors to a SHOP

   8581   2   0
User Avatar
Member
7 posts
Joined: July 2005
Offline
Simple enough question (I hope).

In a SOP:
Create a sphere
Add a Paint SOP
Paint some pretty colors
Render - Viola, its grey. (the OpenGL window shows the colors)

How do you pass the diffuse colors to the renderer? None of the SHOPs seem to pick the colors up from the object, they just override them. I tried setting the colors to the appropriate SOP channel, but nothing.

Help?

P.S. My real geometry is data that is generated by an external program with colors per vertex, but the answer to the above should work for this case as well.
User Avatar
Member
1634 posts
Joined: July 2005
Offline
Hi Mark,

You have to append an Attribute SOP to the Paint SOP and rename 'Cd' to 'diff' under the Point tab.

You can go here [odforce.net] for more details.

I hope the above helps!

Cheers!
steven
User Avatar
Member
7 posts
Joined: July 2005
Offline
I usually just use a VEX Layered Surface SHOP. It uses the Cd attribute so doesn't require any finagling to get to convert between OGL and VMantra.

Your mileage may vary.

- Brask
  • Quick Links