Jump to content

Shadow Color to Cd through Vops

Recommended Posts

I am trying to create color on an object based on the location of a central point. I have achieved this so far through using the normals of an object the position the central point as well as the dot product to specify where color will be. Works great. However, now I want to make it so that objects occluded by other objects do not get the color, sort of like a show but I do not want to calculate it at rendertime, instead I want it to be seen in the Cd value as I did above. I was messing around with the intersect Vop, but have had no luck. Any help here?





Link to comment
Share on other sites

  • 2 weeks later...

Here you go.


There were a couple of problems.

The input geo path for the intersect vop needs to have the op: prefix, and the expression needs to be insode backticks: op:`opinputpath(".", 0)`

Intersect VOP seems to be prone to self-intersection by the shooting surface, use a small bias by adding in a bit of the surface normal to the ray start position.



  • Like 1
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.

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