Skip to main content
High Resolution Rendering

Render on Another Machine or a Farm

Render OWL 360 and 180 jobs from the command line, generate jobs for a render farm with a script, prepare direct renders for a farm, use Deadline, and render from packaged projects.

Last updated About 4 hours ago

This article covers rendering an OWL 360 or 180 render away from the open editor: from the command line, on a render farm such as Deadline, and from inside a packaged project. It also covers generating the jobs for a farm with a script, and preparing a direct render to be split across machines.

Render from the Command Line

You can run Unreal Engine from the command line so that only the render runs, without the Unreal Editor open. This saves graphics and system memory and can speed up renders.

  • You need a render job already saved in Movie Render Queue or Movie Render Graph. For a 180 or 360 render split into jobs, that is the queue Generate Jobs makes, in the editor or from a script (see Generate Jobs from a Script below).

  • The render's Output Directory is the one saved in the queue.

  • When you run the command, an instance of Unreal Engine opens and renders the queue.

Run the command in Windows PowerShell (one line; in PowerShell, start it with &):

& "C:\Program Files\Epic Games\UE_5.6\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" D:\UEProjects\MRQCommandLine\MRQCommandLine.uproject Minimal_Default1 -game -MoviePipelineConfig="/Game/Cinematics/myRenderQueue" -renderoffscreen -Log -StdOut -allowStdOutLogVerbosity -Unattended

The Command Explained

Here is what each part of the command means, and how to change it for your render:

  • path\to\your\UE5installation\Engine\Binaries\Win64\UnrealEditor-Cmd.exe: where Unreal Engine is installed on the rendering computer. The path is in quotes because it contains spaces (Program Files): any path with a space needs quotes, or Windows reads the part after the space as a separate parameter.

  • \path\to\your\project\project.uproject: the project to load. Windows uses backslashes (\); other operating systems may need forward slashes (/).

  • Map_To_Load: the map to load when the project opens.

The parameters:

  • -renderoffscreen: starts the graphics card and renders the frames, but opens no windows on the desktop. This is the standard "headless" mode for rendering, and uses far fewer resources than a preview window. The alternatives are -windowed, which runs in a window, and -fullscreen, which takes over the whole display (not normally wanted for remote renders).

  • -game: runs with uncooked content, so the render uses the editor's content.

  • -log: as a switch (-log), opens a separate window that shows the log as it is written. As a setting (LOG=filename.log), writes the log to that file name, which is where to set it if you capture the log to a file.

  • -StdOut: sends the log to StdOut, which many render managers read to follow the job. This helps you set up job checks in the render manager you use.

  • -allowStdOutLogVerbosity: makes the StdOut log more detailed.

  • -Unattended: tells Unreal it is running from the command line with no user present. Blueprints can check for this with the Is Unattended node.

  • -MoviePipelineConfig="/Game/path/to/the/myRenderQueue": the saved Movie Pipeline Queue asset to render. In the example above it is /Game/Cinematics/myRenderQueue.

Generate Jobs from a Script

Generate Jobs needs the Unreal Editor, because it reads your map and Level Sequence to find the 360 cameras, so it can't run inside a render started with -game. Instead, generate the jobs first with a script, save them in a queue, then send that queue's jobs to your farm.

  1. Save the jobs you want to render, with the OWL 180 / 360 Renderer (Movie Render Queue) or the OWL 180 / 360 Renderer node (Movie Render Graph) set up, in a Render Queue asset, for example /Game/Farm/SourceQueue.

  2. Save the script below as generate_owl_queue.py and run it with the editor in the background (no window):

    & "C:\Program Files\Epic Games\UE_5.6\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" D:\UEProjects\MyProject\MyProject.uproject -run=pythonscript -AllowCommandletRendering -unattended "-script=D:/Farm/generate_owl_queue.py /Game/Farm/SourceQueue /Game/Farm/FarmQueue"

    Use forward slashes (/) in the -script path. With arguments after it, Unreal reads a backslash as the start of a special character.

  3. The script generates each enabled job in the source queue on its own, and saves every generated job in /Game/Farm/FarmQueue, named after its source job. It works for both Movie Render Queue and Movie Render Graph jobs.

  4. Render the farm queue as in Render from the Command Line above, with -MoviePipelineConfig="/Game/Farm/FarmQueue". Each capture and tile job is an ordinary job your farm can hand out. Each Final360Stitch job must start after the capture jobs listed before it have finished.

  • For Movie Render Graph jobs, Generate also saves new graphs beside your graph (<YourGraph>_OWL_Face and <YourGraph>_OWL_Stitch). Make sure they reach your farm machines along with the queue.

  • Generate again if you change the 360 camera or the sequence. The farm queue keeps the settings it was generated with.

import sys
import unreal

source_path, farm_path = sys.argv[1], sys.argv[2]
source = unreal.EditorAssetLibrary.load_asset(source_path)
if not source:
    raise RuntimeError("Could not load the source queue " + source_path)
if unreal.EditorAssetLibrary.does_asset_exist(farm_path):
    farm = unreal.EditorAssetLibrary.load_asset(farm_path)
    farm.delete_all_jobs()
else:
    folder, name = farm_path.rsplit("/", 1)
    farm = unreal.AssetToolsHelpers.get_asset_tools().create_asset(name, folder, unreal.MoviePipelineQueue, None)

queue = unreal.get_editor_subsystem(unreal.MoviePipelineQueueSubsystem).get_queue()
level_editor = unreal.get_editor_subsystem(unreal.LevelEditorSubsystem)

for source_job in source.get_jobs():
    if not source_job.is_enabled():
        continue
    # Generate reads the cameras from the job's level, and works on the editor's queue.
    level_editor.load_level(source_job.map.export_text().split(".")[0])
    queue.delete_all_jobs()
    job = queue.duplicate_job(source_job)
    if job.get_graph_preset():
        node = unreal.OWLMovieGraphLauncherLibrary.find_owl360_pass_node(job)
        generated = node and unreal.OWLMovieGraphLauncherLibrary.generate_owl360_queue(node, job)
    else:
        owl_pass = unreal.OWL360LauncherLibrary.find_owl360_pass(job)
        generated = owl_pass and unreal.OWL360LauncherLibrary.generate360_queue(owl_pass, job)
    if not generated:
        unreal.log_error("No jobs were generated for %s, see the log above." % source_job.job_name)
        continue
    # Generate turns the source job off and adds its capture and stitch jobs after it, in render order.
    new_jobs = [j for j in queue.get_jobs() if j.is_enabled()]
    for new_job in new_jobs:
        # Every source job generates the same job names, so the source job's name keeps them apart.
        farm.duplicate_job(new_job).job_name = "%s_%s" % (source_job.job_name, new_job.job_name)
    unreal.log("%s: generated %d jobs" % (source_job.job_name, len(new_jobs)))

queue.delete_all_jobs()
unreal.EditorAssetLibrary.save_loaded_asset(farm, False)
unreal.log("Saved %d jobs to %s" % (len(farm.get_jobs()), farm_path))

Prepare For Farm

The Prepare Job button, on the Prepare For Farm row, is in the Rendering & Writing section of the OWL 180 / 360 Renderer (in Movie Render Graph, on the OWL 180 / 360 Renderer node).

  • Use it only for a direct render: a job you render without Generate Jobs and split across machines. It prepares the job so each machine renders its part as one continuous render would, with the same particles, physics (when Record Simulations is enabled) and auto exposure.

  • The job then plays a prepared copy of its sequence. Your own sequence is left unchanged.

  • Generate Jobs doesn't use this copy: each time it runs, it makes its own from your original sequence, so you don't need the button for generated jobs.

  • For a farm submitter's pre-job step on a direct render, call unreal.OWL360LauncherLibrary.prepare_for_farm(job) from a script, wait while is_prepare_for_farm_running() returns true, then save the queue. It needs a running editor, not a commandlet.

Deadline and Remote Rendering

  • The OWL 180 / 360 Renderer for Movie Render Queue and Movie Render Graph makes standard Unreal render jobs, so remote rendering tools such as Deadline can hand them to different machines.

  • For tiled high resolution renders, we recommend giving the tiles and the stitch job for a set of frames to a single machine. This avoids problems from moving very large files between different disks.

  • Each frame is large, so disk read and write speed can be a bottleneck, especially if you write final renders to a shared disk.

Stitch on a Machine Without a Graphics Card

  • The stitch job can run on the processor for every projection, so it can run on a machine without a graphics card, launched with the -nullrhi command-line argument.

  • We only recommend this for the cube-based projections: ODS projections stitch several times faster on a graphics card.

  • Each processor stitch uses all of your processor's cores, so a processor with more cores stitches faster.

Object IDs on a Farm

  • Object IDs only render when Unreal opens as the full editor, not with -game. See Render Farms in Object IDs for how to launch those jobs.

Render from Packaged Projects

Once you have set up a 360 render in Unreal Engine, you can start the render from inside a packaged project or game. The machine running the app needs a 360 Camera machine license, or the render has a watermark.

  • Call the Movie Pipeline Queue Engine Subsystem from a trigger such as a key press.

  • The Allocate Job node selects the Sequence to render. You can set it in the Blueprint or let the user choose.

  • The Set Configuration node selects the settings you saved in Movie Render Queue.

  • The Render Job node starts the render.