This page provides a step-by-step tutorial on how to create depth of field, vignetting, bloom, and glare effects in your Revit projects.


Page Contents

 

Introduction


In this tutorial we’ll go over how to use the V-Ray camera for the effects vignette and depth of field, as well as the post-effects glare and bloom.

To follow this tutorial, you need to have the V-Ray for Revit plugin installed.

This tutorial page is a companion that goes with the QuickStart video posted on our YouTube channel and available here:

 

 

 

 

Tutorial Assets


To download the files used in this tutorial, please click on the button below.


 

Tutorial Steps


Open the Example Scene

Open the adv_camera.rvt project, which you can download through the link above. In this tutorial, Revit 2017 is being used, however, you will be able to use this project with Revit versions 2016 and up.  This Revit scene is provided by Karam Baki.  If you have the chance, please take a look at our previous videos on Render Channels and Compositing for a good foundation for this video, as we’ll be mentioning Render Channels in this tutorial.

 

 

 

With the project loaded, go into the V-Ray tab, and change the Current View to the viewed titled Render. Leave Quality set to Draft and set Resolution to Crop Region with Printer set to a DPI of 150. Feel free to choose a Resolution setting that fits your system’s comfort level.  Click Render V-Ray RT to start an interactive RT render of the project.

    

 

 

Open the Camera Settings.


 

 

Click as shown below to expand the Effects 

 

 

 

We have a control for Defocuswhich affects depth of field, and a control for Optical Vignetting.

 

 

 

Working with Defocus

Grab the slider for Defocus and change the value to 0.65.

 

 

 

The RT render updates to show the results as you make changes. 

 

 

 

 

Let’s say we want to have the focus on the lamppost in the foreground. We can do that easily using the Plan View we have. While still in the Floor Plan view titled Plan, click the plus symbol to expand the 3D Views in the Project Browser.

 

 

 

Now right click on Render and select Show Camera

 

 

 

In the Plan view, we can see the camera and want to measure the distance from it to the lamppost.

 

 

 

Click on the Annotate tab, and select Detail Line.

 

 

 

Click to select Circle.

 

 

 

Click and drag to create a circle from the camera's location to the lamppost.  This way we can see the radius of the circle from the camera to the lamppost, which is what we want to be in focus. The distance is about 7.3m.

 

 

 

Now enter 7.3m for the Focus Distance in the Camera Settings window.

 

 

 

The lamppost is in focus.

 

 

 

Now let’s try to focus on a corner of the building. Draw a circle from the camera to the front corner of the building to get a distance of about 30m.

 

 

 

Enter that 30m value into the Focus Distance.

 

 

 

Now that corner remains in focus.

 

 

 

Adjust the Defocus slider to see how it effects the render.  Now set the Defocus value to 0.65.

 

 

 

We will move on to Optical Vignettes by simply increasing the value in the slider here. Choose a value of 0.52 for this example.

 

 

 

You can see the corners begin to darken in the VFB.

 

 

 

Using Bloom and Glare

Now, set the Defocus and Optical Vignetting values back to 0.0 and we will move on to making this a nighttime shot. 

 

 

Stop the RT rendering by clicking the Stop icon in the VFB and close the Camera Settings window.

 

 

 

 

Click the V-Ray tab. 

 

 

 

 

Press Escape a couple times to exit out of the circle line tool, if you have not already.  Then click the Settings icon. 

 

 

 

 

Click on the Sharing tab and click Load Settings.

 

 

 

Choose the adv_camera.xml file from the downloaded assets.

 

 

 

 

Click Import Selected to import the settings into the file.

 

 

 

Turn on Artificial Lights.

 

 

 

Then open the Material Browser.

 

 

 

 

Click the Global Materials tab.

 

 

 

Now enable both Material Override check boxes and leave the rest of the stings to default, then close the window. This will help decrease our render times.

 

 

 

 

Click Render with V-Ray.

 

 

 

You will notice a few areas that look a little harsh and unrealistic in this night-time render, like the light from the lamppost looks very even and flat. You can use Lens Effects to make these areas look more like what a camera would capture.  In the VFB, click the Open lens effects settings icon. 

 

 

 

Enable the Bloom Effect first, and enable the Bloom Mask > Intensity.  

 

 

 

Then enable Glare Effect, and turn on Glare Mask > Intensity.

 

 

 

We have a message that there is No channel, please re-render for both the Bloom and Glare for V-Ray to generate these effects.  

 

 

Click to Render with V-Ray to render again. Allow the render to complete without manually stopping it, because these effects apply only when the render has completed. 

 

 

 

When the render does complete, you can see a small flare at the lamppost. Additionally, V-Ray has created a few additional render channels now that the lens effects use that you can see in the VFB.  

 

 

 

Go back to the RGB layer, and now you can affect the settings interactively using the sliders shown below.  

 

 

As you adjust the values, you’ll be able to find the right look for creating a more realistic camera look to the light sources, especially this foreground lamppost.  If you would like to know more about the bloom and glare effects, feel free to visit the Lens Effects section in the V-Ray frame buffer page.