View Full Version : exposure vs depth of field

06 June 2007, 06:59 PM
hey -
im using physical sky and need exposure control...but there is only 1 slot
in camera MR lens shaders there some way i can layer
in or ADD a depth of field node in addition to the exposure control


06 June 2007, 08:27 PM

Open Hypershade:

1. Place both lens shaders in hypershade view.
2. Create a mib_color_mix node.
3. Plug dof lens shader into color0
4. Plug exposure lens shader into color1
5. Change mode0 and mode1 to mix
6. Plug mib_color_mix into lens slot of camera

FG preview will look weird, but it works.


06 June 2007, 08:58 PM
works great thanks ////

06 June 2007, 09:42 AM
Maya 8.5 (and I guess 8.0 too) supports stacking of lens shaders. You find the input list under cameraShape> mental ray> Lens Shaders, or connect the lens shader's .message to the cameraShape.miLensShaderList[] attribute.

06 June 2007, 11:35 AM
Very good. Thanks Floze.

06 June 2007, 04:13 PM
man i cant believe i didnt see the stacking --- much better...!

CGTalk Moderation
06 June 2007, 04:13 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.