How to add transparent background to scene capture 2d?

Hello. I’m trying to add transparent background to scene capture 2d. The problem is I’m using post processing so I need to use Final Color (LDR) for scene capture. But in my material I don’t have anything (as I think) in alpha channel:
image
I’m using “before tonemapping” in post processing materials. Always persist rendering is enabled. How can I fix that?

The Pro SceneCapture2D plugin makes it easy to capture transparent backgrounds in scene captures.

First, set Enable alpha channel support in post processing to Linear color space only and set EnabledWithStencil to Enabled with Stencilin the project settings,

Then, set the Actor’s CustomDepth Stencil Value to an appropriate value (for example, 1).

Next, create a post-process material as shown below. Set the material’s Material Domain to Post Process, and enable Output Alpha.

Apply this post-process material to the Pro SceneCapture2D, and you’re all set.


1 Like