Page History
...
The V-Ray installation with 3ds Max, Maya, and MODO includes a standalone denoising tool called vdenoise that can be used to denoise still images or animations outside of the V-Ray host application. This is especially useful for animations because the standalone tool can look at multiple frames at once and produce a better denoising result.
The vdenoise tool runs from the command promptis both a command-line utility and a GUI application. It works with either .vrimg or multichannel OpenEXR files and writes out files with the same format.
The vdenoise tool requires certain render elements in order to work correctly. These render elements can be generated easily with the VRayDenoiser Render Element.
Location
...
To open a command prompt in the folder where the vdenoise tool is located, use go to Start Menu > Programs > Chaos Group > [Host Application] > Tools > Denoiser tool. This opens a up the vdenoise GUI along with its associated command prompt window, navigates to the folder where vdenoise is located, and runs the command vdenoise -help to give a full list of vdenoise options. Here you may type the desired command into the command prompt window. If you prefer not to use the vdenoise GUI, you can navigate to the vdenoise executable through any command-line interface and run it with one of the possible commands listed below.
The folder to which the Denoiser Tool ordinarily navigates is navigates to, by default, is: C:\Program Files\Chaos Group\V-Ray\[host_application]/tools or C:\Program Files\Chaos Group\V-Ray\[host_application]/bins, depending on the platform being used.
Excerpt | ||||||
---|---|---|---|---|---|---|
Required Render ElementsThe required render elements are listed below. Add the VRayDenoiser or Denoiser Render Element to your scene to generate the necessary render elements automatically.The standalone denoiser will still run when some or all of these render elements are missing, but results might be too blurry. For single pass RGB denoising:
GUI UsageRunning vdenoise without any parameters, or from the Start Menu on Windows, will open the GUI version of the tool. This allows you to denoise still images or animations; as well as save and load preferred denoise configurations. Input File... – Specifies the .vrimg/.exr image or sequence of images to denoise. Wildcards (?) can be used to define a sequence. Additional render elements for multipass per-render elements denoising: Fancy Bullets | | |||||
|
Switch | Description |
---|---|
-inputFile="<fileName.ext>" | Specifies the input . vrimg or .exr file. Can contain paths and wildcards such as a question mark (?) to indicate digits in file names. Examples: vdenoise -inputFile="c:\renderoutput\render.exr" - Denoise a single image named render.exr located in the c:\renderoutput folder. Note that in order to denoise a sequence of images you must have all frames already rendered, as the denoiser needs to look at several frames at the same time. |
-outputDirectory="string" | Specifies the full or relative path to an output directory for the denoised files. If the directory does not exist, it is created. If no output directory is specified, the output directory is the directory of the input files. |
-mode=strong|default|mild | Sets one of three predefined presets for the radius/threshold/noise level multiplier. |
-elements=0|1 | Specifies the method for denoising render elements. 0 - Colors in the final image are denoised in one pass. (default) 1 - Render elements are denoised separately and then composited together. |
-boost=0|1|2 | Boosts the effect of the selected preset. |
-skipExisting=0|1 | Determines the file-processing behavior when a corresponding output image already exists. 0 - Do not skip: The input image is processed and the existing output image is overwritten. (default) 1 - Skip: The input image is skipped and the existing output image is not affected. |
-frames=bN[-eN[,sN]]{;bN[-eN[,sN]]} | Specifies the frames and/or frame intervals to process. bN - N denotes start frame. eN - N denotes end frame. sN - N denotes frame increment. If not specified, all frames in the sequence are processed. |
-display= 0|1 | Specifies whether to display a preview window with the denoising result. 0 - Do not display preview window. 1 - Display preview window. (default) |
-autoClose=0|1 | Specifies whether to automatically close the preview window after denoising is complete. 0 - Wait for user to close preview window. (default) 1 - Automatically close preview window. |
-useCpu=1 | Forces usage of CPU version even if OpenCL support is found. |
-useGpu=0|1|2 | Specifies when to use GPU (OpenCL) or CPU version for denoising. 0 - Use CPU. (default) 1 - Attempt to use the best OpenCL device available, and fall back to CPU if unsuccessful. (experimental) 2 - Attempt to use all suitable OpenCL devices, and fall back to CPU if unsuccessful. |
-verboseLevel=0|1|2|3|4 | Specifies the verbose level of information printed to the standard output. 0 - Print no information. 1 - Print only errors. 2 - Print only errors and warnings. 3 - Print only errors, warnings, and informational messages. (default) 4 - Print all output. |
Advanced Options
Switch | Description |
---|---|
-abortOnOpenCLError=0|1 | Specifies the behavior of the denoiser when an error is encountered while attempting to use OpenCL. 0 - If an error is encountered, fall back to CPU. (default) 1 - Denoising is canceled upon any OpenCL error. |
-strength=N | Sets the strength of the denoising based on the noise present in the noiseLevel Render Element. Larger values remove noise more aggressively but might blur the image too much. This is the main parameter for controlling the level of denoising. The default is 1.0, which uses the noise in the noiseLevel Render Element as is without adding any additional strength. |
-abortOnOpenCLError=0|1 | Specifies the behavior of the denoiser when an error is encountered while attempting to use OpenCL. 0 - If an error is encountered, fall back to CPU. (default) 1 - Denoising is canceled upon any OpenCL error. |
-strength=N | Sets a value for the strength of the denoising based on the noise present in the noiseLevel Render Element. Larger values remove noise more aggressively but might blur the image too much. The default is 1.0, which uses the noise in the noiseLevel Render Element as is without adding any additional strength. |
-radius=N | Specifies pixel radius for denoising. Larger values slow down the denoiser but might produce smoother results. The default is 10 pixels, which corresponds to the Default preset. |
-frameBlend=N | Specifies the number of adjacent frames to use when denoising animations. Higher values help reduce flickering between adjacent animation frames. The default is 1, which uses one frame before and one frame after the current frame. |
-oclquery="<string>" | Explicitly specifies which OpenCL devices should be used for denoising. Examples: -oclquery="nvidia" - Use only NVIDIA OpenCL devices. -oclquery="fiji" - Use only Fiji-based AMD OpenCL devices. |
-strips=N | Forces image to be split into N strips for processing. The default is -1 (negative 1), which uses an algorithm to automatically determine the optimum number of strips. |
-autoRadius=0|1 | Specifies whether to automatically adjust the denoising radius based on the level of noise present in the noiseLevel Render Element. 0 - No adjustment. Fixed radius is used for the entire image based on the -radius switch if set, or the default value of 10 if not set. (default) 1 - Automatically adjusts the denoising radius. For very noisy images, this setting might slow down the denoiser significantly. |
-threshold=N | Specifies a threshold for denoising when the noiseLevel Render Element is missing. This value is typically equal to the noise threshold for antialiasing in V-Ray. If this switch is not set, the denoiser relies on the noiseLevel Render Element and a threshold of 0.001 is used. |
-memLimit=N | Forces the GPU memory usage limit to N gigabytes. The default value of 0 specifies that all available memory be used. |
Output
When the standalone Denoise tool is run in the command prompt window, it outputs information about the process, including settings, warnings, progress, and files written in the command prompt window.