Brazil r/s Tutorials  


Area Lights.

Brazil r/s adds the option of area lights to Max. Area lights provide a more natural type of light which is much softer as lights are in the real world.


1. Getting Started.

MAX 3.x users:
Open the file area_1_start_max3.max. Click here to download this file.

MAX 4.x and 5.x users:
Open the file area_1_start_max4.max. Click here to download this file.

Click on the render button to render the scene. You can see that the scene is lit by a spotlight with the standard hard edged shadows.

This is the standard type of computer generated shadow. Artists often try to avoid this type of shadow as it can look quite unnatural and very harsh.



2. Setting the Area Light options.

Select the light and click modify to display the modify panel.

The parameters for the Brazil light will appear in the rollouts. You should notice that the light appears differently to what you may be used to. The hotspot and the falloff of the light can easily be visualized in the scene with the Brazil light.


Adjusting the hotspot and falloff will change the appearance in the viewport to match. The appearance of the light can be adjusted in the display parameters of the light.



In the General light options, change the light source type from Spot to Area Rectangle. You will see that the appearance of the light changes slightly in the viewport to reflect this change.

At the moment, the area light is set to a very small size. Rendering the scene now would produce an image identical to the standard spotlight. The light is still coming from one small point.





In the Area Light Options, change the X scale to 6. You will see that the Y scale changes to match. You can adjust the dimensions independently by clicking on the Preserve Aspect Ratio button to unlock the X and Y dimensions.





3. Adjusting the Area Light.

The shadow is softer the further away it is from the casting object

Render the scene again.

You will see that the shadow of the cylinder now becomes softer the further away from the cylinder it is.
 



Change the dimensions of the area light to 60 in the Area light options. You should notice that the size of the light is now obvious in the viewport.

This makes scene visualization much more easy. Try panning and rotating around the scene and you will see that the shaded display is much nicer.
 



Re-render the scene. You can see that the shadow is more spread out, but it has become noisy and needs some changes with the sampling.
 


 

In the Area Light Options, you'll see that sampling type is Adaptive Halton and the below Adaptive option is ticked. Adaptive sampling uses pre-defined low-discrepancy sequences to sample light surface and during this sampling process it uses some parameters to check how complete the illumination is. When the given criteria is reached the sampling is terminated and gathered illumination is used.

The most important parameter of adaptive sampling is the "max error (%)" parameter. It's currently set to 10% which means if it's determined that the illumination is 90% accurate, the sampling process is terminated. Now change the max error value to 0.5.
 



Now re-render the scene. The shadow should be much more smooth now. Please note that fully lit areas are rendered quite rapidly yet render takes longer on shadowed areas.



Area lights are a very useful tool for removing the hard edged look of traditional computer renders. Area lights can also be used to create caustics and Global Illumination.



All trademarks and copyrights on this page are owned by their respective owners.
Everything else: ©2002  SplutterFish, LLC. All Rights Reserved. Privacy