Search - User list
Full Version: Passing colors to a SHOP
Root » Technical Discussion » Passing colors to a SHOP
bolstad
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.
stevenong
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
Brask
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB