tielax11 Posted March 9, 2015 Share Posted March 9, 2015 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? VopTracer.hipnc Quote Link to comment Share on other sites More sharing options...
tielax11 Posted March 23, 2015 Author Share Posted March 23, 2015 No replies, anyone? Quote Link to comment Share on other sites More sharing options...
eetu Posted March 23, 2015 Share Posted March 23, 2015 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. VopTracer_ee.hipnc 1 Quote Link to comment Share on other sites More sharing options...
eetu Posted March 23, 2015 Share Posted March 23, 2015 Also check this nice thread, lots of shadow casting with VOPs.. http://forums.odforce.net/topic/20792-learning-vopsop/?p=124648 Quote Link to comment Share on other sites More sharing options...
tielax11 Posted March 25, 2015 Author Share Posted March 25, 2015 Thanks I will check it out! I appreciate the help as well as the link. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.