I’m trying to get water in deep puddles to kind of “crawl up” the edges a bit via a bump map.
What I thought is just plug in a VRayDistanceTex into the bump slot of the water object (via VRayColor2Bump) which calculates distance from the displaced surface.
What I noticed is that generally it works but only to the extend of giving me the distance between the water and the undisplaced object. Is this a limitation or do I have an error in my thought process?
Plane A at z = 0 (ground)
Plane B at z = -1 (water)
Plane A gets displaced (also in negative range) then the Plane B penetrates at some areas and forms the puddles.
With the VRayDistanceTex I always get a solid color, no edges. I have red as near color and green as far color. When I change the distance, I always get either full red, full green or a full mixture with no edges of the both which leads me to the impression it calculates distance on the undisplaced surface.
If so could we get that changed? I guess it would be useful for some situations.
I’ll try. And you got me thinking about using ambient occlusion, that might work, too. But getting it to work with the VRayDistanceTex would be the best solution ;-).
I ditched the water aspect I was working on there, therefore nothing to report back yet. What would be good to know is if this is an issue being worked on by CG?
So, confirmed, it doesn’t work, but i feel at least with the static geo option it should.
I have absolutely zero idea about potential performance issues, having to trace all those implicit triangles, but that’s luckily for us all out of my hands.