Batch Renderer

You can export batch jobs, and use the batch-renderer command-line program for executing them.

You can also run the batch renderer from your custom scripts, or under the control of a job scheduler or a render manager. It can use a cluster of worker nodes to accelerate a job by employing parallel distributed rendering. This requires connecting the batch renderer to a set of worker nodes running the remote node service.

Alternatively, you can also run the batch renderer alone if the cluster utilization is high, and not enough nodes are available at the same time for parallel distributed rendering.

This task shows you how to:

Execute the Batch Renderer

You can execute the batch renderer as a stand-alone console application on a single machine.

Run the following command:

batch_renderer_3DEXPERIENCE.exe -r <batch job file> -e <task executable path> -o <output directory>

Important: The -r option is mandatory. The -R and -e options are mandatory if the runtime folder and the task executables folder are not in the same directory as the batch-renderer command-line program.

Below is the exhaustive list of the available options. You can specify optional instructions later on when needed.

Option Description
-r <batch job file>
Specifies the path of the batch job file that was produced by the render export.
-e <task executable path>
Configures the location of plug-ins for the distribution system.

Specify the task executables folder containing render_executable-linux64-release.zip and render_executable-linux64-release.md5 for Linux, and render_executable-win64-release.zip and render_executable-win64-release.md5 for Windows.

-o <output directory>
Specifies the path where the images are stored.
-x <override image resolution x>
Defines the override image resolution (x) of the batch rendering.

The default value is 1.

-y <override image resolution y>
Defines the override image resolution (y) of the batch rendering.

The default value is 1.

-t <override iterations>
Defines the override iterations (target quality) of the batch rendering.

The default value is 1.

-i <interface>
Defines the local network interface name or IP address to listen on for connections from worker nodes in a cluster.
-l <localport>
Defines the local listening port for connections from worker nodes in a cluster. A free port is automatically chosen if the value is 0.

The default value is 0.

-m <monitoring port>
Defines the monitoring port.

The default value is 0.

-F <final interval duration ms>
Defines the interval duration of the initial intermediate image update in milliseconds (ms).

The default value is 5000.

-N <nb render threads>
Defines the number of threads used by the renderer. If the value is:
  • 0: Stellar uses all the resources. This is the default.
  • < 0: Stellar uses all threads minus numThreads.
  • > 0: Stellar uses numThreads threads.

This parameter has no impact on the worker nodes. See Start Up a Cluster for more information about how to configure this on worker nodes.

-q <enforce square pixels>
Overrides the camera settings to enforce square pixels to prevent image distortion.

The default value is true.

-Q <override quality>
Overrides the target image quality.
-R <runtime path>
Specifies an optional path to the Stellar runtime folder.
--tile_width <resolution_x>
Uses tiled rendering with the specified tile width. Smaller tiles take longer to render but consume less memory.

Tiled rendering only supports EXR and PNG file formats, and has limited support for global post effects.

To deactivate it, define it to 0.

--tile_height <resolution_y>
Uses tiled rendering with the specified tile height.

When the batch renderer starts, it reads the content of the batch job file, renders the different jobs, and stores the resulting images in the specified directory.

Start a Job - Examples

Below are two examples for starting a job with the batch renderer.

  1. To start a job on a machine where the 3DEXPERIENCE platform is installed, run the following command.

    batch_renderer_3DEXPERIENCE.exe -r c:\temp\myRenderJob.stlr -R ..\..\XCTStellar\StellarRuntime\ -e ..\..\XCTStellar\DStellarExecutables\

  2. To start a job on a cluster machine, run the following command:

    batch_renderer_3DEXPERIENCE.exe –r c:\temp\myRenderJob.stlr

Save and Resume the Rendering States

You can save and resume the rendering states to optimize the quality afterward.

Use the following options:

Option Description
--save state <save name>
Saves additional data with the specified state name to resume the rendering.
--resume <state name>
Continues the rendering starting from the state specified with the --savestate option.

Below are some examples.

To render the recording with a path for the save state:

batch_renderer_3DEXPERIENCE.exe -r house.stlr --savestate house_state -t 200

The image is rendered with a specified number of samples with the option to save.

To resume rendering with a higher iteration count starting from the previously saved state:

batch_renderer_3DEXPERIENCE.exe -r house.stlr --resume house_state -t 300

All recording entries receive 100 additional samples.

Use Parallel Distributed Batch Rendering

You can connect the batch renderer to an additional cluster to accelerate the rendering.

  1. Start a cluster of rendering nodes.

    See Setting Up a Ray Tracing Cluster for more information about how to configure and start a cluster.

  2. Use the following command to connect the batch renderer to the cluster:

    batch_renderer_3DEXPERIENCE.exe -r <batch job file> -h <bridge_node hostname or IP address> -p <bridge_node port number> -e <task executable path> -o <output directory>

    In addition to the options for rendering on a single machine listed above, the following options are available:

    Option Description
    -p 9000
    Configures the port for initial connection to the cluster. Use the bridge node port.
    -h <Bridge Node host name or IP address>
    Configures the host for initial connection to the cluster. Use the bridge node host name.