PDA

View Full Version : ao in opposite direction


Starrider
01-15-2008, 10:33 AM
hi!
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?
cheers!
daniel

Puppet|
01-15-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.

http://www.puppet.cgtalk.ru/scatter_shadow.jpg

http://www.puppet.cgtalk.ru/download/images/scatter_wrap_render.jpg

http://www.puppet.cgtalk.ru/download/video/drag_result.mov

You may download shaders_p here: http://www.puppet.cgtalk.ru/download/shaders_p_e.shtml

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

Starrider
01-15-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-15-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.