Table of Contents

LENS EFFECTS V-RAY NEXT 3DS MAX MAYA SKETCHUP RHINO REVIT MODO HOUDINI

This guide explains how to apply Lens Effects on already completed renders.

For more information on Lens Effects, check the corresponding product page for: 3ds Max | Maya | SketchUp | Rhino | Revit | Unreal | Modo | Houdini



Overview


There are cases when a render is complete, but you may need to apply Lens Effects to your images afterwards. The decision may have been made at later stage in the production, or you may simply have forgotten to enable them before rendering.

There are a couple of ways to apply Lens Effects without to re-rendering. This page discusses how to do this.


Using the VFB


This approach is only suitable for still images only.

You can use the VFB to load an image, apply Lens Effects to it and save it again.

This approach is suitable for still images with just a few camera outputs.


  1. Load an image to the VFB. You can load an image from the History panel or use Load Image option to load an image from disc.



2. Enable Lens Effects and set the desired parameters.



3. Save the image from the Save options in the VFB.




Using the denoiser tool


This approach is suitable for animations.

Applying Lens Effects is also possible with the standalone Denoiser Tool.

This approach is that it can also be used for animations. It uses a Lens Effects preset file (.vle) saved from the VFB. Then, the standalone denoiser tool uses the preset to apply Lens Effects to your images.

Note that with this approach, the denoiser tool can denoise and apply Lens Effects at the same time, provided that the images contain the image channels needed for denoising. If the images don't contain the necessary channels, no denoising will be performed, but Lens Effects can still be applied.


1. Load a rendered image to the VFB.



2. Enable Lens Effects and set the desired parameters.


 

3. Save a Lens Effects preset file (.vle) using the Save button in the Lens effects panel.



Alternatively, you can export a .vrscene. The .vrscene will contain information about the Lens Effect Parameters. The standalone denoiser tool can work with both .vrscene and .vle files for reading the Lens Effects parameters.


 

4. Use the windows command prompt (or a terminal on Linux/macOS) to run vdenoise.exe. Set the paths to your image (with the -inputFile=<image>) flag, and the .vle/.vrscene file (with the -lensEffectsparams=<file> flag). VDenoise will denoiser the image and apply Lens Effects.

Example: Single image
"\\path\to\vdenoise.exe" -inputFile="\\path\to\image.vrimg" -lensEffectsparams="\\path\to\scene.vle" -useGpu=2


 

To process an  image sequence, you can replace the frame padding characters in the filename of the input file with ? symbols.

 

Example: Image sequence
"\\path\to\vdenoise.exe" -inputFile="\\path\to\image_????.vrimg" -lensEffectsparams="\\path\to\scene.vle" -useGpu=2

 

To process multiple files, which are not a sequence, you can save a Windows .bat file (or a Linux bash script). In this case, it's recommended to use -autoClose=1 command which forces VDenoise tool to automatically close the denoised frame without waiting for user input.

Example: Windows Batch script
"\\path\to\vdenoise.exe" -inputFile="\\path\to\image.vrimg" -lensEffectsparams="\\path\to\scene.vle" -useGpu=2 -autoClose=1
"\\path\to\vdenoise.exe" -inputFile="\\path\to\anotherImage.exr" -lensEffectsparams="\\path\to\scene.vle" -useGpu=2 -autoClose=1
"\\path\to\vdenoise.exe" -inputFile="\\path\to\yetAnotherImage.exr" -lensEffectsparams="\\path\to\scene.vrscene" -useGpu=2 -autoClose=1