View Full Version : reflection falloff?
Brent Turbo 10-30-2003, 06:02 AM Not to be confused with blurred reflections, I'm interested in a way to have raytraced reflections lessen over distance. I've toyed around with doing this in MEL, but I can't find an appropriate selection of nodes to measure the distance between a point being rendered, and the point it is reflecting.
Any help or suggestions on this?
Thanks!
| |
lazzhar
10-30-2003, 07:08 PM
I think it could be done with help of the utility Sampler Info. I didnt use it for this purpose but I think it's "doable" ;)
I wished asking this question a long time agao but I didnt, here is the time to ask with you Brent Turbo about that.
Brent Turbo
10-31-2003, 05:15 PM
Thanks for the reply, lazzhar. It doesn't appear that samplerInfo is the lone answer to this riddle. Using it, and other nodes, I'm able to find the coordinates of the rendered point in world space, and find the coresponding tangent to that surface, but figuring out another world space coordinate for the point at which the ray terminates is the tough part, because I can't find anything relevant to that in either saplerInfo, or the reflect node. This is frustrating, because it's obvious that Maya HAS to calculate this exact thing in order to raytrace in the first place. The end goal is coming up with a float value for distance between the rendered surface and the reflected surface.
Thanks!
Brent
BigSky
11-02-2003, 02:20 AM
You need the wonderNode:
createNode distanceBetween
hint:
connect the world inverse matrix of your surface which is measured from as inmatrix
and the point world of a sampler info node. There's an example here, where this info is generated for a shading network:
http://www.cgtalk.com/showthread.php?s=&threadid=97893
There's also a wonderful PIXHO tutorial on this
issue:http://www.3dluvr.com/pixho/toolbox/mel/refBox/refBox_doc.htm
Hi!
If you want to render a vry fine controlable reflection blur,
download the ReflectionUtility written by Horwatth Szabolcs, it's on highend:
http://www.highend3d.com/maya/shaders/
It's very fast and very cool, a must for realistic reflections.
It works under mental ray.
regards
daniel
CGTalk Moderation
01-16-2006, 01:00 PM
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.
vBulletin v3.0.5, Copyright ©2000-2009, Jelsoft Enterprises Ltd.