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 Queuethey are in theOWL 180 / 360 Renderersetting, underRendering Hooks.In
Movie Render Graphthey are on theOWL 180 / 360 RendererorOWL Stitchnode.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, subclassUOWLMRQ360Hooks. The full C++ header isOWLMRQ360Hooks.h, in the plugin'sSource/OWLMRQPipeline/Public/OWL360Camerafolder.For
Movie Render Graph, subclassUOWLMovieGraph360Hooks(OWLMovieGraph360Hooks.hinSource/OWLMRQPipeline/Public/OWLMRG) and add it to theRendering Hookslist on theOWL 180 / 360 RendererorOWL Stitchnode. It has the same methods, with the graph's pipeline and node types.Adding passes (
AddRenderPass_...) isMovie Render Queueonly, and hooks don't run onObject IDsnodes.
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
Fadeis0), so check thebSkipRenderingflags.With
Composite Camerason, this hook is called for every camera, butPostComposite_TaskThreadis only called once, for the composited output. CheckSettings.Output.bCompositeCamerason the OWL pass for this.
ModifyTilePostProcess_GameThread: called for each file of each face on each camera. It gives you thePost Process Settingsto change, for example to add aBlend Materialwith 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 forFadevalues.PostStitchAddedLightLayer_TaskThread: called with theAddedLightlayer whenSeamless Post Process Outputwrites one, afterPostComposite_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 anFTextureRHIReftile 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_16BitorAddRenderPass_32Bit.Each takes a
PassIdentifier(Unreal's struct for naming theEXRlayer 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
bMaintainFrameOrderon 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, inMovie Render QueueandMovie Render Graph. ForMovie Render Graph, useUOWLMovieGraphBurnInHooks.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
8192x8192you 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.
Click the
File Explorericon to find theOWL_MRQ_Example_BurnInHookBlueprint Class in yourContent Browser, then double-click it:

Click
Class Defaultsto open theDetailspanel on the right:
In the Details panel you can set:
Alignment: where on the rendered frame the burn-in is drawn.WidthandHeight: the size of the burn-in in pixels, up to8192x8192.Export as Separate Pass: tick this to write the burn-in as a separateEXRlayer (on its own, with transparency) instead of drawing it on top of the frame. It works inMovie Render QueueandMovie Render Graph, includingGenerate.Widget Type: theWidget Blueprintdrawn as the burn-in. We recommend changing theOWL_360_BurnIn_Basewidget 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 Typeselected above is created as theWidget To Render.In your Blueprint, check that it is valid, cast it to your
Widget Blueprintclass, then call any public methods on it.You can copy and change the
OWL_360_BurnIn_BaseWidget Blueprintas you need. Each piece of data is a public variable. In the widget'sGraph, open theSet Datamethod 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.
Select the
OWL_360_BurnIn_BaseWidget Blueprintin theContent Browserand double-click to open it:
Make your changes in the
Designer, then save and compile:
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 theOWL_MRQ_Example_BurnInHookBlueprint Class and, inDetails, changeWidget Typeto your new widget: