Pages

 

November 07, 2014

[Freebies] MAXScript: Rendering AO Pass Made Easy

109 comments
As you all know, there are many ways to create an Ambient Occlusion Pass. We can use the default Ambient Occlusion Pass in Render Element, use the mr_shader_element with AO shader set on it, or use the Material Override and do the render. The first two is much faster to do, but resulting in solid black background image that might be quite annoying when in compositing process. The last one needs some steps to do before doing the render, but we can set the background to solid white.

MaxScript Render AO Pass
MAXScript: Rendering AO Pass made easy
So I took some time learning MAXScript and decided to create this simple one that might help me do the task. So, what does this script do? This script is actually doing the third method mentioned above, in automatic way:

  • switch the renderer to mental ray
  • remove all lights
  • turning off FG (to speed up render a little bit)
  • create an AO material and apply it on ALL objects (you might want to hidden the objects you don't want to render)
  • set the background environment to white
  • set the gamma to 1.0 (so you won't get a washed-out AO)
  • do the render
  • saving the file (only if you set the Save File on your Render Setting)
  • then set everything back as if nothing happened

One nice thing about this script is you don't need to worry about what render engine you use for your main renderer. As long as mental ray is (by default) come as one package with your 3ds Max, then this will work. When you run this script, it will render the AO pass and leave your scene back as it was before the rendering process.

INSTALLATION
The installation is very easy. First you need to download the .ms file (link available below). Run your max, click on MaxScript - Run Script, then browse the downloaded file. Nothing happened but don't be panic, click on Customize - Customize User Interface. Then click on Toolbars tab, choose Main UI on the Group dropdown menu, and find ariespranata on the Category.


You should find the renderAO in the Action as shown in image above. Just drag it to your toolbar on top and the button will be created automatically there. Just click on that render AO button, and new window will appear.

Render AO Pass parameter dialog
There are some parameters that you might want to set to define the quality of your AO pass. The parameter setting is actually the same as the mental ray AO shader and I guess they are pretty much self-explained.

The "-suffix Name" is the text that will be used as a -suffix in your filename. This will only apply when you check the Save File on your Render Setting. No worries, if this script find the same file name, it will ask your permission first whether to replace it or not. Say that you have a file named "Interior.jpg", then the AO will be saved as "Interior_AO.jpg" at the same directory.

DOWNLOAD: MAXScript: Render AO Pass
NOTE: you might need to temporarily turn off your ad blocker. If you find this script useful, I'd be very grateful if you share this blog post instead of the direct link. :)

MAXScript: Render AO Pass version release
ver 1.0
- Initial Release, tested and developed on Max 2011. Update: tested also on Max 2013 and 2015.

If you have some idea to improve this script, please comment below. I'd love to hear that and I'll try to improve this script in my free time.

Cheers!

109 comments :

  1. This comment has been removed by the author.

    ReplyDelete
  2. cool thank you! How to render to texture in AO with this tool? Is possible?

    ReplyDelete
    Replies
    1. Hi, sorry but that feature is not available at this moment :)

      Delete
  3. I found this to be very useful as I'm still new to all of this. It didn't set everything back as advertised, granted that could be due to the version I'm running (2012), but I just got around that by doing the AO pass last. Still, thanks for the script.

    ReplyDelete
  4. Thanku soo much....

    ReplyDelete
  5. God bless you for that sharing. It hepled me a lot, appreciate it. For those who are looking for good scripts or tools for 3ds max like this one I recommend to visit 3d-kstudio.com/product/trackscripts/ where you can find some. Once more, thx for the script.

    ReplyDelete

  6. I found this to be very useful as I'm still new to all of this.

    ReplyDelete
  7. God bless you for that sharing. It hepled me a lot, appreciate it.

    ReplyDelete
  8. excellent put up complete of useful pointers! My site in all fairness new and that i actually have a hard time. Analytics indicates they may be coming to the site but i have a feeling "nobody desires to be first". buy gmod

    ReplyDelete
  9. Excellent website design come in many forms, it all depends on what your criteria is for the best web design. gmod no download just play

    ReplyDelete
  10. I already have a great looking website, why put all that extra time into a blog, what's the benefits? OK, a Blog as part of your overall internet marketing strategy is important for a number of reasons which include.shoes brands in Pakistan

    ReplyDelete
  11. Almost all will agree success in internet marketing will often hinge around whether or not a decent website is employed as a promotional tool. Most do understand the necessity of creating an excellent website. Formal Shoes Men

    ReplyDelete
  12. As a blogger, I am sure that you would like your blog to make some serious noise online. You want people to talk about it and you want your visitors to recommend it to their friends and family members.best shoes

    ReplyDelete
  13. Starting a blog is nowhere near difficult but creating a successful blog may be another story for you. An excellent blogging how-to should tell you all the basics you will need to become successful blogging.Pakistani shoes

    ReplyDelete
  14. Many business owners don't realize this but a blog can actually do so much for one's marketing plan. Free information services like free reprint article sites and blogs can often provide free answers to the problems you're trying to solve.see more

    ReplyDelete
  15. Amazing data! i lately came throughout your weblog and had been reading alongside. I notion i might depart my first remark. I don’t know what to mention besides that i have. Gmod game

    ReplyDelete
  16. Unprecedented article. I believe you will continue having numerous such incredible articles to bestow to us. I acknowledge numerous people will be shocked to scrutinize this article. thank you. Roofer Toldedo OH

    ReplyDelete
  17. Thanks for your post. I've been thinking about forming a genuinely proportional post all through the latest barely any weeks, I'll apparently keep it straightforward and association with this fairly if that cool. Roofer Pueblo CO

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. The craving to bring in cash online using social stages is totally typical. So as to accomplish this journey, an ideal blogging framework is required. A sound blogging framework would permit its client to embrace a deliberate way to deal with extinguish his blogging attempts Smith Plastic Surgery Center in Las Vegas

    ReplyDelete
  20. Incredible occupation for distributing such a valuable blog. Your blog isn't just valuable yet it is furthermore extremely inventive as well. I truly cherished perusing your blog. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome. Special Print Shop

    ReplyDelete
  21. Stunning, superb post. I'd prefer to draft like this as well - taking the time and genuine difficult work to make an extraordinary article. This post has urged me to think of certain posts that I will compose soon. HVAC Contractor Review

    ReplyDelete
  22. I'm playful I discovered this blog! From time to time, understudies need to mentally the keys of beneficial insightful papers framing. Your first-rate data about this extraordinary post can transform into a suitable purpose behind such people. Professional Limousine Service

    ReplyDelete
  23. Exceptional article! I need people to know precisely how extraordinary this information is in your article. Your viewpoints are a ton of like my own concerning this subject. I will visit step by step your blog since I know. It may be incredibly important to me. HVAC Contractor Review

    ReplyDelete
  24. I love visiting destinations in my extra time. I have visited numerous destinations yet didn't discover any site more proficient than yours. Much obliged for the push! Expert Naturopathic practitioner

    ReplyDelete
  25. I am thankful to you for sharing this with a lot of accommodating data. I found this benefit of most incredibly helpful for me. Much appreciated a ton for your troublesome work. Moving And Storage Review

    ReplyDelete
  26. This blog website, basically Finding some blog locales, appears to be an, in reality, the prominent system you're using. I'm legitimately using WordPress for two or three my web diaries yet attempting to change among them over to a structure like yours as a training. Roofing Contractor Review

    ReplyDelete
  27. Your blog has incited a huge amount of certified interest. I can see any motivation behind why since you have done such incredible employment of making it entrancing. I esteem your endeavors truly. Page & Eichenblatt Service

    ReplyDelete
  28. I need to invest some energy in finding a lot of extra or perceiving contained. I'm eventually not particularly data about the region you are getting your data, yet incredible subject. Much obliged for the remarkable information I abused to be looking for this data for my target. Professional Optometrist

    ReplyDelete
  29. Set aside my effort to peruse all the remarks, however I truly delighted in the article. It ends up being Very useful to me and I am certain to all the analysts here! It's consistently decent when you can not exclusively be educated yet in addition engaged! Hot Water Supplier Review

    ReplyDelete
  30. This article was composed by a genuine deduction essayist doubtlessly. I concur with huge numbers of the strong focuses made by the author. I'll be back day in and day for additional new updates. Real Estate Consultant Review

    ReplyDelete
  31. There are a ton of sites on the Internet. Yet, I can most likely say that your blog is astonishing taking all things together. It has all the characteristics that an ideal blog ought to have. Medical Center Specialist

    ReplyDelete
  32. This is a bewildering message. I like this subject. This site has heaps of perfect positions. I discovered heaps of shocking spotlights on this site. It encourages me to different methodologies. Much required for dispersing this once more. Expert Mechanic

    ReplyDelete
  33. To state reality, I am intrigued by what you told. You share huge amounts of intriguing information, the perfect and astounding plan you have here. It's absolutely one of the most educational stuff on this point I've at any point perused. Family Law Expert Attorney

    ReplyDelete
  34. I can't think centering sufficiently long to investigate; substantially less compose this sort of article. You've beaten yourself with this material indeed. It is perhaps the best substance. Auto Body Shop Review

    ReplyDelete
  35. Awesome article. Intriguing to peruse. I love to peruse such a great article. Much obliged! It has made my undertaking more and extra simple. Continue shaking. Medical Office Review

    ReplyDelete
  36. Predominant post, stay aware of this excellent work. It's ideal to realize that this theme is as a rule additionally secured on this site so applauds setting aside the effort to examine this! Much appreciated over and over! Best Divorce Lawyer

    ReplyDelete
  37. You realize your tasks stand apart from the group. There is something exceptional about them. It appears to me every one of them is truly splendid! The Hearing aid store

    ReplyDelete
  38. I truly glad discovered this site inevitably. Truly useful and broken, Thanks for the post and exertion! It would be ideal if you continue sharing all the more such a blog. Presently I spared it to my bookmarks so I can keep me in contact with you. Expert Real Estate Consultant

    ReplyDelete
  39. I can't think centering sufficiently long to explore; substantially less compose this sort of article. You've beaten yourself with this material indeed. It is probably the best substance. Best Locksmith

    ReplyDelete
  40. This article is an engaging abundance of enlightening information that is fascinating and elegantly composed. I praise your difficult work on this and thank you for this data. You have the stuff to get consideration. Professional Chiropractor

    ReplyDelete
  41. I am shocked by the way in which you have explained things in this article. This article is interesting and I am foreseeing examining a more noteworthy measure of your posts. An obligation of appreciation is all together for offering this article to us. Special Family Law Attorney

    ReplyDelete
  42. I can't think focusing adequately long to investigate; significantly less make this sort out of the article. You've beaten yourself with this material undoubtedly. It is most likely the best substance. Professional Web Designer

    ReplyDelete
  43. I am stunned by the manner by which you have clarified things in this article. This article is fascinating and I am anticipating inspecting a more essential proportion of your posts. A commitment of thankfulness is all together for offering this article to us. Financial Planner Expert

    ReplyDelete
  44. These could be moreover permed, diminished, haircut up, along with industrialized similarly as you'll use your all-normal polish. Hairpieces in this manner created have a considerably more common show up and furthermore consequently are smoother when differentiated to their particular settled on decisions. Prime Mold Services Review

    ReplyDelete
  45. This article was formed by a real allowance writer surely. I agree with immense quantities of the solid centers made by the creator. I'll be back day in and day for extra new updates. Internet Special Marketing Service

    ReplyDelete
  46. I have truly viewed a couple of the reviews on your web website at present, and furthermore in like manner, I in reality like your plan. An abundance of thanks a million, besides, to please keep up the viable work. Skirting Boards Review

    ReplyDelete
  47. You are making this data enabling and brilliant. You give perusers a ton to consider and that I regard such a making. Dermatologist Service

    ReplyDelete
  48. Much gratefυlness for you actually for some of your answers and needing each last idea around one of your to the achievement tο the undertaking recuperation that will be authority. Law Firm Specialist

    ReplyDelete
  49. I am truly intrigued by this blog! Extremely away from of issues is given and it is available to everybody. Thanks for sharing this post. This is awesome! Skin Cancer Service

    ReplyDelete
  50. Thanks for picking a chance to inspect this, I feel mind-boggling about it and love focusing more on this topic. It is unimaginably valuable to me. Thanks for such huge help again. Waste Management Review

    ReplyDelete
  51. This comment has been removed by the author.

    ReplyDelete
  52. This article is a connecting with a wealth of edifying data that is captivating and carefully made. I acclaim your troublesome work on this and thank you for this information. You have the stuff to get through. Law Firm Review

    ReplyDelete
  53. Incredible post yet I was considering whether you could create somewhat more with respect to this issue? I’d be appreciative for the remote possibility that you could elucidate to some degree further. Real Estate Consultant Service

    ReplyDelete
  54. I bookmark your web sign considering I discovered dazzling data on your weblog, Thanks for sharing Criminal Defense Special Lawyer

    ReplyDelete
  55. You understand your assignments stand separated from the gathering. There is something uncommon about them. It appears to me all of them is really astonishing! Professional Dental Clinic

    ReplyDelete
  56. Thanks for some other magnificent article. What other place may just anyone get that kind of data in such an ideal technique for composing? Defense Attorney Review

    ReplyDelete
  57. You have worked eminently in this article. It’s altogether important and especially sharp. You have even made sense of how to make it legitimate and easy to scrutinize. You have some real creating capacity. Much obliged to you Criminal Attorney Service

    ReplyDelete
  58. Blog makers fathom that they have included something valuable to the field wide web! were checking for this close to kind of set up for past reliably and barely showed up all through this. Garage Door Special Builder

    ReplyDelete
  59. A decent pioneer knows about his characteristics but then doesn’t wear a quality of prevalence. He is a social butterfly’s and is anything but difficult to approach. Professional Music School

    ReplyDelete
  60. Thanks for some other awesome article. What other place may just anyone get that sort of data in such an ideal strategy for composing? Element Expert Homebuyers

    ReplyDelete
  61. This article was shaped by a genuine stipend essayist clearly. I concur with massive amounts of the strong focuses made by the maker. I’ll be back day in and day for extra new updates. Expert Rental Agency

    ReplyDelete
  62. Genuinely I benefit as much as possible from your site with ground-breaking and supportive data. It is consolidated an outstandingly charming post with a great deal of our advantages. thanks for share. I value this post. Acupuncture Clinic Service

    ReplyDelete
  63. This is such a data I’ve for a long while been endeavoring to find. Much obliged to you Injury Attorney Service

    ReplyDelete
  64. Extraordinary post yet I was considering whether you could form somewhat more with respect to this issue? Professional Dermatologist

    ReplyDelete
  65. Hi, I am Incheon Office, I am the best site. I welcome you to an interesting world. Expert Divorce Lawyer

    ReplyDelete
  66. Really valuable and broken, Thanks for the post and effort! You should keep sharing even more such a blog. Special Family Law for Men

    ReplyDelete
  67. Engaging, post. I just uncovered your weblog and expected to express that I have delighted in examining your blog sections. Bail Bonds Service Expert

    ReplyDelete
  68. I Really Like seeing a blog site that recognizes the worth. I cheer to have found this message as its such an intriguing one! Professional Staffing Agency

    ReplyDelete
  69. The post is in an awesome way about the separation Reiki and has a lot of valuable data for me. Thanks The Sun Air Services

    ReplyDelete
  70. Thanks for your post. I’ve been pondering shaping a truly corresponding post all through the most recent scarcely any weeks, I’ll obviously keep it direct and relationship with this reasonably if that cool. Special General Contractor

    ReplyDelete
  71. It is staggeringly helpful to me. Thanks for such critical help again. Professional Plumber

    ReplyDelete
  72. you are making this information empowering and splendid. You give perusers a ton to consider and that I respect such a creation Dental Clinic Service

    ReplyDelete
  73. Searching for some more updates from your side on this intriguing method. if you don’t mind share. The Best Appliance Repair

    ReplyDelete
  74. I planned to hold it just an IG angle, in any case, a couple of individuals said they would peruse a blog distribute moreover, so here we’re. Personal Injury Review

    ReplyDelete
  75. I agree with colossal quantities of the solid centers made by the creator. I’ll be back day in and day for extra new updates. Garage Door Supplier Service

    ReplyDelete
  76. you are making this data engaging and wonderful. You give perusers a ton to consider and that I regard such a making. Professional Divorce Lawyer

    ReplyDelete
  77. I’d be thankful for the slim chance that you could explain genuinely further. Justified, despite all the trouble Special Fence Contractor

    ReplyDelete
  78. I’m as often as possible looking for first class blog entries and moreover articles so I expect I’m fortunate to have in truth discovered this! Court Reporter Review

    ReplyDelete
  79. Your top notch information about this exceptional post can change into an appropriate reason behind such individuals. Special Rehabilitation Center

    ReplyDelete
  80. I never found any fascinating article like yours. It’s really worth enough for me. Thanks Professional Orthodontist

    ReplyDelete
  81. This blog site, fundamentally Finding some blog areas, has all the earmarks of being an, in all actuality, the unmistakable framework you’re utilizing. Expert Security System Installer

    ReplyDelete
  82. You give perusers a ton to consider and that I respect such a creation. Oral Surgeon Service

    ReplyDelete
  83. I really loved examining your blog. I have bookmarked it and I am envisioning examining new articles. The Bail Bonds Service

    ReplyDelete
  84. This blog site, essentially Finding some blog districts, seems, by all accounts, to be an, in all actuality, the conspicuous framework you’re utilizing. Estate Planning Law Firm

    ReplyDelete
  85. As I might want to think, if all site administrators and bloggers made extraordinary substance as you did, the web will be substantially more accommodating than some other time in ongoing memory. Special Injury Attorney

    ReplyDelete
  86. Connecting with, post. I simply revealed your weblog and expected to communicate that I have savored the experience of inspecting your blog areas. Real Estate Consultant Review

    ReplyDelete
  87. Connecting with, post. I simply revealed your weblog and expected to communicate that I have savored the experience of inspecting your blog areas. Read More

    ReplyDelete
  88. I have bookmarked it and I am anticipating investigating new articles. Visit Us

    ReplyDelete
  89. I need individuals to know correctly how phenomenal this data is in your article. Expert Music School

    ReplyDelete
  90. I have to look for destinations with essential information on a given point and offer them to the educator our inclination and the article. DDS - Dentist Service

    ReplyDelete
  91. Put aside my push to scrutinize all the comments, be that as it may, I really took pleasure in the article. Special Electrician

    ReplyDelete
  92. I am continually scanning on the web for a story that can oblige me. There is clearly a various to comprehend about this. Professional Court Reporter

    ReplyDelete
  93. It would be ideal if you let me know whether you’re searching for an article essayist for your site. You have some truly extraordinary posts and I believe I would be a decent resource. Special Dentist

    ReplyDelete
  94. Your blog isn’t simply important yet it is moreover very imaginative also. I genuinely loved examining your blog. House Cleaning Best Service

    ReplyDelete
  95. I’ve been riding on the web more than four hours today, yet I never found any captivating article like yours. It’s really worth enough for me. Personal Injury Law Firm

    ReplyDelete
  96. Your blog isn’t simply significant yet it is besides incredibly creative too. I really loved scrutinizing your blog. Professional Mortgage Broker

    ReplyDelete
  97. As I might want to think, if all site administrators and bloggers made extraordinary substance as you did, the web will be significantly more accommodating than some other time in ongoing memory. Psychiatrist Service

    ReplyDelete
  98. I will visit bit by bit your blog since I know. It might be amazingly essential to me. Personal Injury Attorney Review

    ReplyDelete
  99. As I might want to think, if all site administrators and bloggers made incredible substance as you did, the web will be substantially more accommodating than some other time in late memory. Absolute Special Door Service

    ReplyDelete
  100. I’m perky I found this blog! Every once in a while, understudies need to intellectually the keys of helpful savvy papers encircling. Expert Dentist

    ReplyDelete
  101. Much gratefυlness for you actually for some of your answers and needing each last idea around one of your to the achievement tο the undertaking recuperation that will be expert. Insurance Agency Service

    ReplyDelete
  102. Do you have any tips and pieces of information for longing creators? I'm needing to start my own site soon yet I'm to some degree lost on everything. Visit Us

    ReplyDelete
  103. Much appreciation to you for this bewildering post, I am stunning I saw this site on Google. Substance, truly, nonetheless, the entire site is furthermore amazing. This company

    ReplyDelete
  104. Much appreciation to you for this confusing post, I am stunning I saw this site on Google. Substance, truly, regardless, the entire site is staggering. This company

    ReplyDelete
  105. Pleasant post. I learn something a lot harder on unmistakable web journals ordinary. Most normally it is invigorating to see content off their authors and utilize a little something from their site. I'd would prefer to utilize a few while utilizing content on my weblog whether you wouldn't fret. Normally I'll give a connection on your web blog. Much obliged for sharing. Near me

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...