View Full Version : ao in opposite direction

01 January 2008, 10:33 AM
is there any mr-shader out there which can calculate the occlusion in the opposite direction of the normal for effects similar to translucence?
so that a sphere which is behind a plane is darkening the plane.
camera ---> || O

any ideas?

01 January 2008, 10:46 AM
You may try my p_scatter_wrap shader from shaders_p set.
It compute some kind of occlusion inside object toward light direction.

You may download shaders_p here:

P.S. p_scatter_wrap will works only for volume objects, but not for flat like polyplane.

01 January 2008, 11:11 AM
nice one!
thanks for the quick response! i was just using your MegaTK shader and it's refraction max dist values in a complete uncommon way - to get rid of intersections in my feather system.
it would be so helpful to have an aocc-node which could (just) sample the other side of the normal and a node which just samples the raylength after intersecting a surface.
btw. the mia falloff color doesn't work correctly.
thanks for your help puppet!

CGTalk Moderation
01 January 2008, 11:11 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.