I’m trying to use SceneCapture.
I need to:
-
clear the rendertarget
-
do multiple captures on the same rendertarget (without clearing its content) and with an additive/translucent blend mode for alpha channel (calling USceneCaptureComponent2D::CaptureScene)
-
get the results.
However I see that:
-
alpha channel is inverted. Where does this happens?
-
if the material output is A, what the output will be in Overwrite, Additive, Composite Mode?
-
does scenecapture clear the colorbuffer in Overwrite, Additive, Composite Mode?
-
FDeferredShadingSceneRenderer::CopySceneCaptureComponentToTarget is called once per capture or just on the “get results”
-
Is the bug connected to Draw Material To Render Target node has inverted alpha - Rendering - Epic Developer Community Forums relative to mobile platforms only?
-
I see that there is an expected way to use compositing (from the previous linked post). However what is the expected clear color at the beginning?
.
Hi Marco,
I’m currently investigating this issue and there seems to be a few bugs related to the scene capture 2D. I will try to list the known issues for you but I need some clarification.
I’m a little confused about this: Are you using the scene capture 2d to draw to the render target or are you using the Draw Material to Render Target feature? Or Both?
Or did you link that post thinking that the issue with draw material to render target was a related issue? I just want to make sure I know everything you are working with before adressing your issue.
BTW the inverted alpha for Draw Material to Render target is expected and the fact that it is different on mobile platforms is also known.
,
Ed
I am using the SceneCapture2d only: I create some actors in the world and USceneCaptureComponent2D::CaptureScene.
I assumed that the material opacity [0,1] would be output as alpha [0,1] while I get an inverted range [1,0]. I was asking you if the inverted range was a 4.12/4.13 bug or if this is the expected behavior. Know I know that it’s expected and I will modify my following rendering pass accordingly.
.