Skip to main content
Rendering Settings

Rendering Hooks and Burn-Ins

Run your own Blueprint or C++ steps during an OWL 360 render, add extra layers to the output, and add a burn-in or 360 HUD to your renders.

Last updated About 4 hours ago

Rendering Hooks let you run your own Blueprint or C++ steps during a 180 or 360 render, such as a burn-in, per-camera post-process changes, or extra layers in the output.

  • In Movie Render Queue they are in the OWL 180 / 360 Renderer setting, under Rendering Hooks.

  • In Movie Render Graph they are on the OWL 180 / 360 Renderer or OWL Stitch node.

  • Rendering hooks need a Pro license, or add a watermark.

Rendering Hooks

A hook is a class you write that the render calls at set points. Add it as an element of the Rendering Hooks list; you can add more than one.

  • For Movie Render Queue, subclass UOWLMRQ360Hooks. The full C++ header is OWLMRQ360Hooks.h, in the plugin's Source/OWLMRQPipeline/Public/OWL360Camera folder.

  • For Movie Render Graph, subclass UOWLMovieGraph360Hooks (OWLMovieGraph360Hooks.h in Source/OWLMRQPipeline/Public/OWLMRG) and add it to the Rendering Hooks list on the OWL 180 / 360 Renderer or OWL Stitch node. It has the same methods, with the graph's pipeline and node types.

  • Adding passes (AddRenderPass_...) is Movie Render Queue only, and hooks don't run on Object IDs nodes.

Blueprint Hooks

The hook class is Blueprintable, but only some of its methods are available in Blueprints, because Unreal only runs Blueprints on the game thread:

  • Setup_GameThread: called while the pipeline is being set up. Use it to set up any objects or variables your class needs later.

  • TearDown_GameThread: called when the pipeline is being destroyed. Use it to clean up variables and data.

  • PreRenderCamera_GameThread: called for each camera found.

    • Cameras are sometimes not rendered (for example when Fade is 0), so check the bSkipRendering flags.

    • With Composite Cameras on, this hook is called for every camera, but PostComposite_TaskThread is only called once, for the composited output. Check Settings.Output.bCompositeCameras on the OWL pass for this.

  • ModifyTilePostProcess_GameThread: called for each file of each face on each camera. It gives you the Post Process Settings to change, for example to add a Blend Material with face- or tile-specific material parameters.

C++ Hooks

C++ can use all the methods above by overriding them with the _Implementation suffix. It also has:

  • PostStitch_TaskThread: runs at the same time on different task threads, and lets you change the raw pixel data.

  • PostComposite_TaskThread: runs at the same time on different task threads, after stitching and any compositing or adjustment for Fade values.

  • PostStitchAddedLightLayer_TaskThread: called with the AddedLight layer when Seamless Post Process Output writes one, after PostComposite_TaskThread. A hook that masks or crops the beauty can do the same to this layer.

  • PostTileRender_RenderThread: runs on the render thread after each tile or face is rendered, with an FTextureRHIRef tile you can use in your own C++ shaders. This happens before the surface is read.

Add Extra Layers to the Output

You can add your own passes to the render (Movie Render Queue only). These passes are pure C++ and can do calculations or add layers to the output.

  • To add a pass, call one of the three AddRenderPass_... methods from inside your class: AddRenderPass_8Bit, AddRenderPass_16Bit or AddRenderPass_32Bit.

  • Each takes a PassIdentifier (Unreal's struct for naming the EXR layer or output file) and a callback of this form:

bool YourCallback32Bit(const FMoviePipelineRenderPassMetrics& SampleState, int CameraIndex, const FGuid& CameraGuid, const FIntPoint& OutputResolution, TArray64<FLinearColor>& OutData) { return true; }
  • For developers writing their own video writer: set bMaintainFrameOrder on the OWL pass from script to write frames in order (Unreal's own video outputs already do this; it uses more memory).

Burn-Ins

Use Rendering Hooks to add a Blueprint that draws a burn-in or HUD on your 180 or 360 renders.

  • It works on direct renders and through Generate, in Movie Render Queue and Movie Render Graph. For Movie Render Graph, use UOWLMovieGraphBurnInHooks.

  • Use it instead of Unreal's UI Renderer, which is distorted by the 360 output.

  • You can set the size of the burn-in (up to 8192x8192) and its position on your render.

  • By default the burn-in isn't full screen, but if your render is smaller than 8192x8192 you can make it full screen to make a 180 or 360 HUD.

Add a Burn-In to Your Render

In Rendering Hooks, add an array element and select a burn-in hook Blueprint, such as the example OWL_MRQ_Example_BurnInHook. You can add more than one.

Change the Burn-In Settings

The burn-in's size, position and widget are set on the hook Blueprint.

  1. Click the File Explorer icon to find the OWL_MRQ_Example_BurnInHook Blueprint Class in your Content Browser, then double-click it:

  2. Click Class Defaults to open the Details panel on the right:

In the Details panel you can set:

  • Alignment: where on the rendered frame the burn-in is drawn.

  • Width and Height: the size of the burn-in in pixels, up to 8192x8192.

  • Export as Separate Pass: tick this to write the burn-in as a separate EXR layer (on its own, with transparency) instead of drawing it on top of the frame. It works in Movie Render Queue and Movie Render Graph, including Generate.

  • Widget Type: the Widget Blueprint drawn as the burn-in. We recommend changing the OWL_360_BurnIn_Base widget selected here (see below).

Update the Widget Data

To update the data shown on the widget, your Blueprint Class needs a public method with a parameter for the data. In our example Widget Blueprint, this method is called Set Data:

  • During the render, the Widget Type selected above is created as the Widget To Render.

  • In your Blueprint, check that it is valid, cast it to your Widget Blueprint class, then call any public methods on it.

  • You can copy and change the OWL_360_BurnIn_Base Widget Blueprint as you need. Each piece of data is a public variable. In the widget's Graph, open the Set Data method to see the data available and how it is connected to the variables on the UI.

Make Your Own Burn-In Widget

You can change the existing OWL_360_BurnIn_Base Widget Blueprint, or make a copy to change separately.

  1. Select the OWL_360_BurnIn_Base Widget Blueprint in the Content Browser and double-click to open it:

  2. Make your changes in the Designer, then save and compile:

  3. If you only changed the existing OWL_360_BurnIn_Base, it works straight away. If you made a new widget (by copying the original), open the OWL_MRQ_Example_BurnInHook Blueprint Class and, in Details, change Widget Type to your new widget: