Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 30-03-2009 , 09:48 PM
Soulrider911's Avatar
Subscriber
Join Date: Jul 2007
Location: California
Posts: 180

Ambient Occlusion setup

Can someone point me to a good tutorial on setting up an ambient occlusion render in maya..thanks Im on maya 09.


Bradysammons.com
New Media Designer
Student: Academy of Art University S.F.
My WIP
# 2 30-03-2009 , 09:56 PM
Registered User
Join Date: Mar 2007
Posts: 1,055
Hi,

1: Assign a Surface Shader to your objects;

2: Assign a mental ray mib ambient occlusion texture to the Surface Shader's "out colour" attribute;

and render with mental ray. No need for final gathering to be activated.

Tweak sample setting in the ambient occlusion texture to improve the quality and vary the distance if you want to change the spread of the occlusion.

cheers

gubar

# 3 31-03-2009 , 07:49 PM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Is the preset gone in the render layers menu for this? I dont have 2009 just yet so....try right clicking a render layer to see if presets are still available on the layer, if so hit ambient occlusion and render away

J

# 4 31-03-2009 , 08:06 PM
Registered User
Join Date: Mar 2007
Posts: 1,055
I think in 2009 the render preset may have gone jay. There may be another quick way to do it via the new pass system but I don't know of it.

The way I mentioned is pretty quick and easy too though.

cheers

gubar

# 5 31-03-2009 , 08:37 PM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Cheers dude just thought I'd ask. Yeah the shader is easy too...

Later
J

# 6 12-04-2009 , 03:52 AM
To La Bomb's Avatar
Registered User
Join Date: Oct 2008
Posts: 56
For AO renders, another option is to go to render layers, then create a new render layer. click on the layer and click attributes go to layer presets click it and select ambient occlusion, then you can add objects to this layer and they will rendered in AO - this is new to maya 2009

# 7 12-04-2009 , 04:23 AM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
I have been trying to figure this out for a little while, so thanks very much for the info. I think the right-click to preset option must be gone, because I can't find it or I am blind, but I was able to find the preset in the attributes for the render layer.

As far as I can see, this causes the same thing as what gubar suggested (i.e. assigning mib amb occlusion texture to the out colour of a surface shader).

Only trouble is... when I try gubar's method, I get a black background with all white where the objects are, similar to what an alpha channel would look like. When I try the render preset method, I do get some shading where there's supposed to be shading, but the background is white, and almost everything else is white too, not much shading going on. I've tweaked some settings, but I can't figure out what's different between these two options; they should do the same thing?

Thanks for any thoughts. I'm looking forward to finally rendering something instead of screenshots all the time.

# 8 12-04-2009 , 05:14 AM
Chirone's Avatar
Subscriber
Join Date: Dec 2007
Location: NZ
Posts: 3,125
make your new render layer

assign all the objects to it (or just select the objects before hand and make a render layer with the selected objects)

then go into your render settings, switch to mental ray

in the passes tab click one of the buttons on the right of the scene passes white box thing
then click on the down arrow beneath it with the +

then hit batch render and you get your occlusion and master beauty pass

that's how it's meant to work i think...




that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
# 9 12-04-2009 , 09:15 AM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287

For AO renders, another option is to go to render layers, then create a new render layer. click on the layer and click attributes go to layer presets click it and select ambient occlusion, then you can add objects to this layer and they will rendered in AO - this is new to maya 2009



I know its not always possible on long threads but on a short one please make sure you read previous posts before replying. I mentioned this earlier as its a Maya2008 option, nice to know they kept it for 2009 though, life is still easy!

Jay

# 10 12-04-2009 , 09:17 AM
Chirone's Avatar
Subscriber
Join Date: Dec 2007
Location: NZ
Posts: 3,125
...just pointing out the other to do it....




that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
# 11 12-04-2009 , 09:19 AM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
Chirone:

was refering to To la Bombs post mate, Ive not highlighted your quote mateuser added image

Jay

# 12 12-04-2009 , 09:21 AM
Chirone's Avatar
Subscriber
Join Date: Dec 2007
Location: NZ
Posts: 3,125
i knew that *whistles innocently and toddles off* :blush:




that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D
# 13 12-04-2009 , 10:00 AM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
LOL top man!!

happy easter btw

J

# 14 12-04-2009 , 03:32 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374

Originally posted by Jay

I know its not always possible on long threads but on a short one please make sure you read previous posts before replying. I mentioned this earlier as its a Maya2008 option, nice to know they kept it for 2009 though, life is still easy!

Jay

Actually this post was helpful for me, because I think it highlights the difference between finding the occ preset in 2008 and 2009 which I was unable to find earlier. I don't mind when people share slightly different variations, but I agree that exact duplicate answers are unnecessary.

And happy easter everyone!

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads