CG

…::mia_lens_bokeh::…

Bokeh Effect is blah blah blah… lol…  read this info on wiki pedia and get back to see how to use bokeh MR shader in Maya 2009 or less …Wikipedia Bokeh Effect Link    

After the  tecnical stuff  lets see how to get this shader working in maya… I am going to use a very simple scene… as simple as it can get… its got a plane..Oo… few smooth cubes and a MR Physical Sun Sky

[no info about this here…lol]……

mia_Lens_Bokeh needs to be plugged in the camera mentalray Lens shader slot which right now is used up by mia_exposure_simple ..so to append another lens shader we  need to connect the bokeh using connection editor:

  • In your hypershade select your camera and click the input and output connections button. This will load up the other shaders connected to your camera [which is right now : mia_exposure_simple and mia_physicalsky].
  •  Middle Click Drag the Bokeh shader from the utilites tab and drop it on your camera and choose other from the option box
  • Once the connection editor opesn up with left and right display loaded with boken shader and camera respectively make a connection between message in left display to miLensShaderList under MetalrayControls in the right display. Nothing gets selected but if u expand the miLensShaderList you can see miLensShaderList[0] created and in hyper shade a connection is made between them [if u cant see the message option go to left display menu and click show hidden..]

Using the shader

The first option in Boken would be the plane option this means what distance from the camera you want it to remain in focus. Place in a locator as a focus point and on Object Detail under heads up display in Display menu. selecting the locator in the camera view will show us the locator distance from camera. This would be the plane value.

Radius options  tells how quickly blurring will start from the plane distance. 1 being default is to hi try using lower values as your starting point. Higher values will start taking time to render 

Samples can be used to lower the amout of noise or grainyness in the scene which can be teaked in the later stages of  rendering.

Bias is used to amplify the boken effect and not the blurry ness.

Blade Count is number of shutter blade. Think this as a real camera shutter blades, different values of shutter blade will give differnt boken effects and blade angel is the obviously the angle at  which the shutter balades are..you can also pluggin a bokeh map [need to swithc on the boken check box above the map]… 

this is a test render with the shader , to remove the noise samples have to be increased. I also made a texture and plugged it in to get this effect.

and the texture was 

this is a very simple tutorial and my first one also… if any doughts or questions feel free to reply to this post

Ankit.Sharma

Thanks Ankit Sharma

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s