Bokeh Effect in 3ds Max In this beginner's tutorial we're going to create a bokeh effect in 3ds Max. The term bokeh is familiar from photography. When depth of field is shallow, part of the photo is blurred. Bokeh refers to that blur or the quality of it. There are a few different methods of creating shallow depth of field in 3ds Max, but this time we concentrate on the 'Depth of Field / Bokeh' camera shader which is a new feature in 3ds Max 2011. The Bokeh shader gives us nice tools to control the quality and the look of the out of focus areas. Step 1 Mental Ray Renderer We're going to render the bokeh effect with Mental Ray. By default 3ds Max uses the Scanline renderer so we have to change that. Change the renderer to Mental Ray ( Rendering > Render Setup… > Common tab > Assign Renderer > Production > mental ray Renderer ). Step 2 The Background We're going to create a simple 3d scene and finally add the bokeh effect to it. If you are just interested about the bokeh effect itself, go ahead and skip to step 13. We're going to create a simple scene with some text in it but first we create a background. Create a Plane ( Create panel > Geometry > Standard Primitives > Plane ) in the front viewport . Modify the Plane ( Make a selection > Modify panel ) according to the following parameters: Open Material Editor ( Press 'm' in keyboard ) and create the material for the plane: Roman;">Step 4 Text Create a Text shape ( Create panel > Shapes > Splines > Text ) in the front viewport . Modify the text ( Make a selection > Modify panel ) according to the following parameters: Feel free to select different font or write something different. I chose Century Gothic because those round shapes are good at catching highlights. At this point the text is just a shape and can't even be seen in renderings. Let's turn it to a 3d surface. Add Bevel modifier to the text ( Make a selection > Modify panel > Modifier List > Object-Space Modifiers > Bevel ). Apply the following parameters ( Make a selection > Modify panel ) to the Bevel modifier: Open Material Editor ( Press 'm' in keyboard ) and create the material for the text: Let's prepare the scene for rendering: Now is a good time to render the scene for the first time so hit render ( Main toolbar > Render Production ) and you should see something like the picture below. Let's adjust the sampling settings to get a more polished render. Go to the render setup and increase antialiasing quality by increasing Mental Ray's sampling values ( Rendering > Render setup… > Renderer > Sampling Quality ): Now the aliasing issues are fixed and it's time to illuminate the text. By the way, if rendering time is an issue you could use the default sampling values for now and use these high quality settings only in the final rendering. Step 9 Illumination Create Mental Ray area omni ( Create panel > Lights > Standard > mr Area Omni ) in the front viewport and apply the following parameters to it ( Make a selection > Modify panel ): Place the omni light according to the picture below. Apply Glare Camera Shader ( Rendering > Render Setup > Renderer > Camera Effects > Camera Shaders > Output > Glare ) Just turn the output shader on, the glare shader should be selected by default. Open Material Editor ( Press 'm' in keyboard ) and drag and drop the Glare shader from Camera Shaders to an empty material slot in Material Editor ( make sure to select 'instance' when asked ). Make the following adjustments to the Glare shader: Render the scene the see the effect of these changes. Now shadows are softer and the text is brighter and has a nice glow. At the moment our scene is really flat so there is no point in adding a bokeh effect just yet. First we'll create something that will be out of focus in the final rendering. Let's add some sparkles to the scene. Create a super spray ( Create panel > Geometry > Particle Systems > Super Spray ) in the top viewport and apply ( Make a selection > Modify panel ) the following parameters to it: Step 11 Path for the Particles Next we're going to create a spline and force the particles to travel along it. Create the spline: ( For the sake of this tutorial it's not required to create exactly the same kind of line. However, to be able see Create a path follow object ( Create panel > Space Warps > Forces > Path Follow ), go to the modify panel, and apply the following parameters to it: Bind the super spray to the path follow object: Particles should immediately follow the path like in the picture below. Step 12 Material for the Particles Open Material Editor ( Press 'm' in keyboard ) and create the material for the sparkles: Render the scene the see the particles. The glow is really strong but wait till you see it with the Bokeh effect. Apply 'Depth of Field / Bokeh' Camera Shader ( Rendering > Render Setup > Renderer > Camera Effects > Camera Shaders > Lens > Depth of Field / Bokeh ). Open Material Editor ( Press 'm' in keyboard ) and drag and drop the bokeh shader from Camera Shaders to an empty material slot in Material Editor ( make sure to select 'instance' when asked ). Make the following adjustments to the Bokeh shader: Now we're ready to render the final image with the bokeh effect. I made some adjustments in Photoshop as well: Let's continue in the discussion. Patience with the rendering!

Roman;">Step 3 The Material for the Background Plane

Roman;">Step 5 3D Text
Roman;">Step 7 Prepare the Scene for Rendering
Roman;">Step 8 First Test Render
This is our first render so obviously there are some problems:
When you render the scene you should get something like the picture below. Move the light if necessary.
The illumination is improved but the text is too dark and therefore merges with the background. Let's address these issues with soft shadows and glare. Modify the omni light ( Make a selection > Modify panel ) to get softer shadows:
Step 10 Creating Particles
the effect of a bokeh shader, at least some part of the spline should be close to the camera. )
Tip. If you'd like the particles to stray away from the spline, try increasing the particle speed in super spray and/or adjusting Particle Motion settings in the path follow object.
Step 13 The Bokeh Effect
ghdf
/*'fdgjdfghjkdf'*/
Monday, August 16, 2010
Bokeh Effect in 3ds Max
Interpolation
Parameters
Parameters
Surface
Bevel Values
Level 1
Level 2
Samples per pixel
Filter
Intensity/Color/Attenuation
Area Light Parameters
Particle Generation
Particle Quantity
Particle Motion
Particle Timing:
Particle Size
Particle Type
Move the vertices and adjust the bezier handles to create a spline like in the picture below.
Motion Timing
Subscribe to:
Post Comments (Atom)



1 comments:
Nice work
Post a Comment