Ambient Occlusion
1 Attachment(s)
Hey guys, sorry if this isn't the right forum for this question. I'm new here =)
Okay, so I'm learning Maya and building my scene, but when it came time to figure out ambient occlusion, things got a little nuts. I've heard about 10 different ways to pull this off with not just the mib_amb_occlusion node but also the mib_fg_occlusion node. Here's what I've heard: 1. Attach the amb_occ node to the out color on a surface shader. The problem is I want to be able to render out a frame to see what the finished product is going to look like BEFORE compositing. It also sounds tedious to output the passes of a single frame, go to your comp program, combine them there, and then see what tweaking needs to be done. Using Maya for all this is much simpler. 2. Using Maya render layers to render out an amb_occ pass to all objects in that layer. The problem is the same as #1 - in order to see the finished product, I have to go to comp. 3. Attaching the mib_amb_occlusion node to the shader of an area light. I've actually tried to do this, but I honestly didn't see much difference in the finished product. Has anyone had more success? My solution: I've actually gotten the best results by doing the following--take your mib_amb_occlusion node, then take an RGB to Luminance utility and connect them (outValue to value). The reason is that amb_occ uses three values and I needed to make them one value for the next step...connecting the Luminance to the DIFFUSE of your model (since DIFFUSE is a single value). This seems to give me very good results which I can render and tweak in Maya, even though I've never read of anyone doing it this way. So my question is, what's the best way? Has anyone ever heard of the way I did it? I've attached a pic of my model. There only ambient light in the scene is a dome of directional lights set VERY low. Any help or suggestions would be great. Thanks! -D |
I've actually done this before. I don't have Maya open at the moment, but I'll open up the file, and give you a step-by-step.
|
hi Donnie. I wanted to give this a go, but Im no expert with the connection editor and maya utilities. Ive just gone to connect the rgb to luminance utility the amb_occlusion, and I cant see the 'out value' on the rgb to luminance side of the connection editor, but no 'value' on the amb occlusion side. Am i doing it wrong?
|
Quote:
Then, in your hypershade workspace, double click the RGB to Lum to open its att. editor. You should see VALUE as the only input. Next, with the hypershade on one half of the screen and the att. editor for the RGB node on the other, DOUBLE CLICK and HOLD on the amb_occlusion node, then DRAG AND DROP right on the word VALUE of the RGB to Lum utility. Connection made! Then, double click on your blinn (or whatever you're using for your material). Do the same thing (double click and drag) from your Luminance node onto top of the word DIFFUSE in your blinn's att. editor. Connection made. You'll have to play around with the amb_occ settings until you get the look you want (increase your Samples and then play with Max Distance), and make sure there's some kind of ambient light in your scene. ALSO, make sure RAYTRACING is turned on in your mental ray settings (Render Settings>Features>Raytracing. I think that should do it. If you can't get it hit me back =) -D |
Hey, yeah, i did it.
Cheers donnie. Although I had no ambient light in the scene. Had several area lights plus image based lighting. It came out very dark. Im working on something else but I thought id just have a go at this. I put it on the blinn shader on the body. Came out very dark.. |
Quote:
|
Quote:
|
Here's an easy way to achieve these results:
Color: http://i24.photobucket.com/albums/c3...hand_color.jpg Ambient occlusion: http://i24.photobucket.com/albums/c3..._occlusion.jpg Mix (Color + Ambient Occlusion) http://i24.photobucket.com/albums/c3...m/hand_mix.jpg Create two surface shaders. Connect an mib_amb_occlusion node to the default of one of the surface shaders. This will be your ambient occlusion shader. Now, take your normal shader, the one you want to apply the occlusion on to. Display these two in your hypershade's work area. Create a multiply divide node. Attach the normal shader's out color, to input1, and the occlusion shader's out color to input2. Connect the output of this node to the default of the second surface shader you created. Assign this surface shader to your model. The first shader (your normal) will take care of all shading information. Lighting, transparency, etc. The occlusion is just multiplied onto the normal material, much like it would be done in a compositing application. Hope this helps. |
hey donnie, just thought, not sure if i got back to you on this occlusion test. not had alot of spare time,and been trying to progress on my dragon scene with what time i have had.its getting to the point where ive spent so much time looking at it (my scene),its really starting to annoy me.,want to move on. but will try and keep this occlusion in mind. am thinking i need to work more on my lighting and rendering in whatever i do next. the enterprise is looking really cool.very professional
|
1 Attachment(s)
Quote:
Staring at something too long really wears you down. It's good to battle through, but sometimes it helps to take a break and search the internet for new techniques. I can't tell you how many times I've struggled through something, then learned a much better and faster way to do it. You know what they say...the sooner you start, the sooner you can start over =) Def try this occlusion. It give you really good real-time results, even if it does add to your rendering times. Still, I like seeing the final product before batch rendering an entire scene, which could take a week! Make sure you're rendering with mental ray, too. It's better than the maya renderer, no question. If you need any good techniques, let me know. |
that looks wicked
|
That's hot. I don't know if it needed GI though and maybe the blue glow in the front is spread a bit too much.
|
are you gonna bump/normal/displace any of this?
|
1 Attachment(s)
Quote:
|
ah yeah, that is really nice and subtle. By normal, i mean normal map. same as bump mapping really i guess, i think it works a slightly different way, but im no expert at all so i wouldnt take my word for it.
You seem really good are you quite new to maya then? whats the project for/about? apart from it being the enterprise. |
All times are GMT. The time now is 01:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018