I was playing with this idea of raytraced booleans. Basicly a material that checks if its in/outside certain objects to determine its opacity/visibility.
Shouldn't be too hard to do something like this right? They only problem I can see is how to check if point is inside an object. Is there any usefull VRay raytracing function for this? (Tracing ray into random direction [0,0,1] and count number of intersection with the object, odd = inside, even = outside). The second would be feeding the list of objects to the material, I'm not quite sure how this could be done in VRay (maxsdk)?
Shouldn't be too hard to do something like this right? They only problem I can see is how to check if point is inside an object. Is there any usefull VRay raytracing function for this? (Tracing ray into random direction [0,0,1] and count number of intersection with the object, odd = inside, even = outside). The second would be feeding the list of objects to the material, I'm not quite sure how this could be done in VRay (maxsdk)?
Comment