I am using the method (adviced by Georgi..) to render Foam and Splash by using a Vray instancer (with my own bubble-geometry as well as my own Vray materials…) to be able to render my ocean scenes with Vray GPU. All this works fine. Only thing I cannot figure out is how to detect the foam and splash particles that are “underwater”. Since my Vray shader dows not know any realtion in bewtween it´s geometry and the liqouid surface: Is there any way to e.g. render out a path or something else that would let me have this information for postproduction/compositing? i was thinking of WorldPosition information but anything I tried does not work. Any help appreciated guys!
Unfortunately I can’t think of way to do that yet. The Particle shader has such functionality but it still has to be ported on the GPU.
Georgi,
thank you for the quick reply!
perhaps you can use distance texture, i think it has separate color for inside/outside.
The distance texture is still not implemented on the GPU though..