Mental Ray – Ambient Occlusion Shader

by put3d on ก.ย..25, 2009, under 3ds Max Tutorials, Mental Ray, Tutorial

In 3dsmax7 Mental Ray 3.3 gained a new shader called “Ambient / Reflective Occlusion” what can this be used for? Well, traditionally within Mental Ray GI has been handled photon mapping and Final Gather. In this case a GI effect can be generated via a shader, and in this way this system opens up some flexibility in how you generate your GI.

So what does this shader do? Quite simply it shoots out rays from the pixel that is being shaded in a hemisphere based on the normal of the pixel. It then traces these rays to the scene bounds or to a fixed distance defined in the shader and if it hits a piece of geometry the ray is flagged as occluded. Mental Ray then works out the average number of rays that were occluded and uses this to work out a blend colour between the BRIGHT and DARK values setup in your shader. On the right is a diagram of a typical pixel being shaded.

In the example shown you can see that our shader has thrown out a total of 5 rays. If the BRIGHT colour were white, and the DARK colour Black, we would have two DARK rays and three LIGHT rays. So our pixel would be shaded as 40% occluded, or in other words a grey of 40% black would be used. Due to the way Monti-Carlo sampling works, 5 rays would not give us a very good average, pretty much in the same way as a sampling of 5 people in a survey would not give a very good average opinion of Mr man in the street. So for a better quality render you would expect to use 24+ samples.

goto Tut0rial :

http://www.christopher-thomas.net/pages/free_tutorials/tut_ambient_occlusion_shader/ct_tut_mentalray_ambientocclusion_shader.htm

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
:, , ,
12 comments for this entry:
  1. Gregory Despain

    This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like ‘Mixview’ that let you quickly see related albums, songs, or other users related to what you’re listening to. Clicking on one of those will center on that item, and another set of “neighbors” will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune “Social” is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  2. wifes pussy

    I dont usually comment on blogs but i have to tell you well done

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  3. Air Jordan Retro 2010

    Every teeny, tiny minute I spend on your blog page are worthwhile. The information from your article are really helpful. In contrary to spam messages on some blog, you pages are bookmarked on my website browser.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  4. free xbox live codes

    I agree with your post. However, do you have any sources I can cite for my paper?

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  5. Etha Thommarson

    Hello , just Love Ur Site , I ‘m an ordinary reader of it and subscribed it on. Would need a serious help from u. I recently updated my template similar to your template but it showed up slow loading time. I fined tune it a bit by by taking off HTML images and all and time improved but still it is quite slow. I know the theme is heavy, yet still if u can tweak it for me probably would be gr8. Pls help me out… I can mail u my XML, if u agree… Expecting in anticipation. thanks

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  6. article spinner

    keep up this good work. Excellent post

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  7. vimax

    Just thought i would comment and say neat design, did you code it yourself? Looks great. sbbhs2011

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  8. Good Travel Offers

    Man I like your article and it is so good and I am definetly going to bookmark it. I Have to say the Indepth analysis this article has is trully remarkable.No one goes that extra mile these days? Well Done!!! Just another suggestion you shouldget a Translator for your Worldwide Readers !!

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  9. Alec Gelen

    I really liked the way you put the information together as it showed a true grasp of what people are looking for in this subject.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  10. Earnestine Johnsrud

    Just wish to say your article is as surprising. The clearness in your post is simply spectacular and i could assume you are an expert on this subject. Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please carry on the enjoyable work.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  11. Delora Broomell

    I am totally agree with your oppinion.this blog post is very encouraging to people who want to know these topics.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  12. rtyecript

    I really liked the article, and the very cool blog

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Leave a Reply

Adobe Education - Free Shipping

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...