DMMultimedia

3D Graphics, Tutorials and Tips
Using 3DS Studio Max and Mental Ray

Latest Capri MK IV updates
Latest Cortina updates
Latest Escort MK1 updates

DMMultimedia | 3d tutorials | Rounded Corners & AO

Quick Links 3D Tutorials
Latest RS500
Latest RS500
Latest BMW F32
Latest BMW F32
Latest Escort MKII
3D Studio Max Studio - Arch&Design Rounded corners and AO detailing in Mental Ray (Max 2009)

The Arch&Design material (introduced in Max 9, but here shown in Max2009 Design) gives some excellent additional parameters over the standard Max material. It gives us the ability to add rounded corners to sharp edges (this is a visual effect and does not alter the geometry) and also allows us to add local Ambient Occlusion detailing. If used carefully these effects can subtley add more realism to a render. Try yourself with this scene file (Max 9 Max 2009 - 26 kb) - see below.

Standard scene in 3ds max
Default scene using an mr Area Spot, Skylight and Draft Final Gather (FG)

The above image shows a simple scene made up of simple geometry (spheres and boxes). A single mr Area Spot Light and Skylight are added and units set to metres (set to unitless - see Tutorial 10) and Final Gather (FG) enabled with draft settings. As you can see it is quite sharp and flat. We will now add AO Detailing.

Arch&Design Ambient Occlusion detailing

Load in an Arch&Design material. Open the "Special Effects" panel. Enable Ambient Occlusion. The panel shown below is from Max 9, Max 2009 has an additional option : Use Color from other materials which we won't be using.

Mental Ray Special Effects Panel

Enabling Ambient Occlusion will produce additional shadows dependent on how close this material is to other geometry. It is controlled by the Max Distance value (default 0.1m) and the Samples value (default 16). Small values for Max Distance will only add a slight additional shadow, while greater values will make this effect more pronounced. Samples adds more resolution to the AO shadows. Normally the default value for Samples is perfectly OK as most AO shadows are only used for subtle effects - so leave this at default.

Why use AO detailing ?

It is very good for enhancing the FG lighting. For speed FG is not so refined in solving illumination and therefore is not good for showing really fine shadows. An example of this is if we place a sphere and a 2 cylinders on a surface (this could also be a table leg on a floor, or a tyre on a road). Enabling just a Skylight and FG you can see that the sphere and cylinder look like they are floating (See below).

Mental Ray and Skylight and FG only
A sphere and 2 cylinders placed ON a plane - looks like they are floating with a Skylight and Draft FG

We could adjust the settings of FG to higher (and much slower) settings and this will improve slightly - but is some cases it may require VERY high values with VERY slow rendering times.

A much better result is achieved with enabling Ambient Occlusion for adding detail. If we apply this Arch&Design material with AO enabled we get the following result. Remember that it is best practice to set up your scene in units (m), it makes it easier to calculate how far you want the AO to spread out in metres.

Water and Caustics in Mental Ray
Same scene and FG settings as above image - but Arch&Design material and AO detailing added to the ground plane

If we add an Arch&Design AO detail enhancement to our default scene we get the following:

Arch&Design Ambient Occlusion Added
Arch&Design Ambient Occlusion detailing added

As you can see this adds a nice degree of detail to sharp corners or contact points. It is very useful when you want to create a simple "Clay Render" image.

TIP: You can add a simple Arch&Design material with AO enabled and low reflectivity to the Material Override slot in the Processing tab under render options. Enable Final Gather in Draft mode and you will get a quick and detailed "Clay Render".

Material override used to create Clay Render
Add an Arch&Design material with Ambient Occlusion to the Material Override slot, enable and all your materials in a scene will use the material - excellent for quick "Clay Renders"

Arch&Design Rounded Corners

One of the easiest ways to spot a computer rendered image are the razor sharp edges on corners. If you are modelling an object you will take time to add geometry to slightly soften these edges. But for a quick and simple effect the Rounded Corners effect can be used. This does not alter the geometry and is a bump shader - so should be used for subtle effects only. Using this effect carefully can add an extra level of realism to your images for very little work.

Again you should set your scene up in metres (m) so you know what level you are applying. It should ALWAYS be a subtle effect - just adding a slight roundness to an edge, it should not be used to put a large round radius on an object.

Arch&Design Mental Ray Rounded Corners
Rounded Corners enabled

The fillet radius sets the rounded corner effect - best to keep this relatively small in comparison with the size of your object.

By default the "Blend with other materials" is not enabled - so by default any object assigned this material will also create rounded objects if the objects are touching or intersecting, but NOT other objects which have different materials. So if we create a Lego style brick using simple geometry (a simple box and simple cylinders) and apply a red Rounded Corners to the parts of teh brick (but NOT to the ground plane) we get this effect : where all the objects with the red material have rounded corners which blend with each other.

Simple scene to add Arch&Design Rounded Corners in Mental Ray

Arch&Design Rounded Corners added to Red Brick only - also using AO detailing

If you want the red material to blend with all other objects we enable "Blend with other materials" and the red material will now also blend with the blue material and ground plane.

Arch&Design Rounded Corners  blending in Mental Ray
Note how the red brick blends with rounded corners into the blue material with "Blend with other materials" enabled

Quickly add a smooth edge with rounded corners to Logos or text created with text input and extrude without using Bevel.

Logo using rounded corners in Mental Ray

Adding some rounded edges to our default scene we get this :

Arch&Design Rounded Corners in Mental Ray
Arch&Design Ambient Occlusion and Rounded Corners in Mental ray

The effect is slightly exaggerated for this shot, but you can see the nice rounding effect it has on the sharp edges of the boxes and where the sphere intersects the floor (this effect can also be used to simulate the capillary action of water curving around objects).

If we add some simple textures to our scene we get the following image. Nothing special, but lots of these added details all add up to more realism. The water material will be explained in Tutorial 12.

Ambient Occlusion and Rounded Corners in Mental ray
Simple box geometry, rendered with Final Gather and Arch&Design materials using Ambient Occlusion detailing and Rounded Corners. Quick rendering times. See this scene animated here


Overview of AO Detailing and Rounded Corners.

Try yourself with this scene file (Max 9 Max 2009 - 26 kb). The scene is setup with material over-ride enabled using material slot 2 when you load it (See above for description of material override). Adjust material 2 ("Arch&Design AO Over ride"), enabling/disabling AO and Rounded corners to test. Disable over-ride to play with the coloured materials.

Default scene with FG in Mental Ray
Default scene with skylight, mr AreaSpot and FG in Mental Ray
Default scene with skylight, mr AreaSpot and FG in Mental Ray & AO detailing
Default scene with skylight, mr AreaSpot and FG in Mental Ray & AO detailing
Default scene with skylight, mr AreaSpot and FG in Mental Ray & AO detailing  & Rounded Corners
Default scene with skylight, mr AreaSpot and FG in Mental Ray & AO detailing & Rounded Corners