avizzle Posted February 3, 2018 Share Posted February 3, 2018 Hello all, I'm trying to find a way to create a thickness mask - I'd like to use it on a mesh surface to generate a faked subsurface look. My general idea is that I would fire a ray from the camera position to each point of the mesh, then measure the distance to the next surface each ray hits. I'm sure you could then fit range that, and store it in @Cd or a custom float attribute. Does anyone have any hints on how to go about that (or maybe there is already a prebuilt method of doing so?). Thanks! Quote Link to comment Share on other sites More sharing options...
Vexosaur Posted February 5, 2018 Share Posted February 5, 2018 You could use the intersect function in VEX Quote Link to comment Share on other sites More sharing options...
Entropy Posted February 5, 2018 Share Posted February 5, 2018 Hi Aren, you can have a look at the file of how to use the intersect function to cast light rays with vex i think you should use the intersect_all for your thickness mask Quote Link to comment Share on other sites More sharing options...
avizzle Posted February 12, 2018 Author Share Posted February 12, 2018 Thanks! - I did find a rather hacky way of doing this using the ray sop, but I think using intersect_all will be faster and more flexible. 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.