This page provides information on the Image sampler rollout under the V-Ray tab.
In V-Ray, an image sampler refers to an algorithm for calculating a pixel's color based on the colors within and around it.
Each pixel in a rendering can have only one color. To get the color of a pixel, V-Ray calculates it based on the object's material, direct light striking the object, and indirect lighting in the scene. But within a single pixel there might be multiple colors, which may come from multiple objects whose edge intersect at the same pixel, or even difference in brightness on the same object due to changes in object shape or falloff and/or shadowing of light sources.
To determine the right color for such a pixel, V-Ray looks at (or samples) colors from different parts of the pixel itself as well as the pixels around it. This process is called image sampling. V-Ray includes two main image samplers, each with its own approach to sampling and its own parameters: Progressive and Bucket.
UI Path: ||Render Setup window|| > V-Ray tab > Image sampler (Antialiasing) rollout (Renderer set to V-Ray)
Image courtesy of Tuna Unalan
Multiple colors within a single pixel. What color should the pixel be?
Example: What is anti-aliasing?
One of the purposes of sampling is to improve anti-aliasing. The following example shows the difference between an image with Image Sampler Subdivs locked to 1 and an image with the default Max Subdivs value of 24.
In the image with anti-aliasing (Default Max Subdivs of 24), the edges appear smoother than in the image without anti-aliasing (Locked to 1).
V-Ray performs anti-aliasing by sampling colors in areas where one color meets another, as with the edges touching the background. The choice of image sampler and the parameter settings determines the effectiveness of anti-aliasing for any particular scene.
Anti-aliasing within a material can also be affected by filters, such as those included with 3ds Max. V-Ray image samplers support most 3ds Max filters.
Type – Specifies the image sampler type. Depending on this choice, an additional rollout opens up below the Image sampler (Antialiasing) rollout with specific settings for that sampler type.
Progressive – Progressively samples the entire image and refines the details over time. For more information, see the Progressive Image Sampler page.
Bucket – Takes a variable number of samples per pixel depending on the difference in the intensity of the pixels. For more information, see the Bucket Image Sampler page.
Lock noise pattern - When enabled, the sampling pattern is the same from frame to frame in an animation. Since this may be undesirable in some cases, you can disable this option to make the sampling pattern change with time. Note that re-rendering the same frame produces the same result in both cases.
Render mask – Enables the use of a render mask to determine which pixels of the image are calculated. The rest of the pixels are left intact. This feature works best with the V-Ray Frame Buffer as the render window and Type set to Bucket. The following choices are available:
None – A render mask is not used.
Texture – Render mask is a texture. Black values in the map define pixels which are not rendered. Pixels with any other values are rendered. The texture should use the screen mapping type.
Selected – Only pixels that belong to the currently selected object(s) are rendered. V-Ray still calculates the entire image, but only renders parts that belong to the selected object(s). This mode is useful if you want to isolate or re-render just some objects from the scene.
Include/Exclude list – Same as Selected, but objects are selected by list.
Layers – Renders only objects that belong to the currently selected layer.
Object IDs – Renders only objects with specified Object IDs. Separate Object IDs with a comma (,).
For more information on how to use the Render mask feature see the Render Mask tutorial.
If the semi-transparent objects are in front of the Render-Masked ones, they still appear in the render.
Min shading rate – Controls the number of rays shot for Anti-aliasing (AA) versus rays for other effects like glossy reflections, GI, area shadows, etc. This setting is especially useful with the Progressive image sampler. Higher values mean that less time is spent on AA, and more effort is put in the sampling of shading effects. For more information, see the Min Shading Rate Example.
? button – Opens Chaos documentation on Image Sampler.
Example: Min Shading Rate
The Min shading rate of the first image is set to 1, while that of the second image is set to 16.
Both of the images above rendered with the Progressive image sampler for the same amount of time. With Min Shading rate set to 16, at least 16 GI rays are shot for each AA ray, which produces smoother GI, but overall leads to less samples left for the DOF effect.
Choosing the Best Image Sampler for the Situation
No image sampler is best for all scenes or workflows. Choosing the best image sampler is usually a matter of experimentation, but there are a few guidelines you can follow. For additional information, see the Progressive Image Sampler and Bucket Image Sampler pages.
- Setting Image Sampler Type to Bucket is the same as the Adaptive Type in previous versions of V-Ray.
- With the Bucket type, disabling Max. Subdivs also disables the Noise threshold and matches the Fixed sample behavior in earlier versions of V-Ray.
- Progressive is useful when it is necessary to see overall results quickly (like when placing light, building shaders, or general Look Development work) because it generates the whole image at once and progressively cleans up the noise in it. Additionally, the render can be stopped at any time before resolving completely.
- Progressive is also helpful when a set amount of time to spend per render is needed. This can also be useful when rendering test animations, where the entire sequence must be rendered within a certain time frame.
- Combining the VRayDenoiser with Progressive renders can help with cleaning up render noise. If the Denoiser's Update button is used when manually cancelling a render, the noise levels will be adequate enough to use the denoiser to avoid splotches and/or other unwanted effects. Also note that in 3ds max 2017, there is a Stop button in addition to the Cancel button in the progress window. After clicking Stop, V-Ray begins denoising the render.
- Using Bucket when running Distributed Renders can be helpful for cutting down on network traffic and reducing the loss of information if work is not completed by one or more DR machines.
Image Samplers and RAM Usage
Image samplers require a substantial amount of RAM to store render information. This is especially true for the Progressive sampler, which stores the entire image in memory before beginning the rendering process. The Bucket sampler, on the other hand, stores only the summed result of all sub-samples for a pixel and so usually requires less RAM. Using large bucket sizes might require more memory.