Iray Programmer's Manual

Rendering options

This section describes the options to be used with the IRender_context class as provided by Iray Blend.

Iray Blend can use two render modes for rendering. It can also blend between the images generated by those two render modes. The selection of the render modes, the blend settings, and the options used by the actually used render modes are done using the following render context options:

const char* preview_render_mode = ""

This specifies the render mode to be used during the preview phase of the rendering.

const char* refined_render_mode = ""

This specifies the render mode to be used during the refinement phase of the rendering.

const char* preview_options = ""

This specifies the options to be used during the preview phase of the rendering. If nothing is given here, the normal scene options will be used.

const char* refined_options = ""

This specifies the options to be used during the refinement phase of the rendering. If nothing is given here, the normal scene options will be used.

mi::Uint32 preview_frames = 2

The number of frames which are rendered using only the preview render mode. After that many frames, the refined render mode will start rendering as well, also the results may be visible to the use only later.

mi::Uint32 start_blending_frame = 5

The number of frames after which blending between the render modes starts. Note that this must be greater or equal to the preview_frames option. If it is greater, then the refined render mode will render already, but the image from that rendering will not be shown, yet. This can be used to avoid getting a lot of noise for the initial blend frames, when the refined render mode is for example the Photoreal render mode.

mi::Uint32 blending_frames = 5

The number of frames over which Iray Blend blends from the preview render mode to the refined render mode.

mi::Float32 blending_exponent = 1.0

The exponent of the blending function, i.e., 1 = linear blending, 2 = quadratic, etc.