Summary
[Bug] [UE5.8.1] => “SceneCaptureComponent2D” works normally on [Selected Viewport] and [PIE]
but in [Standalone Game] [Standalone Game Mobile] It draws an additional square with a Gradient from the center at launch and creates flickering lines [See image Below]
What Type of Bug are you experiencing?
Level Design & Art Tools
Steps to Reproduce
I’ve Uploaded an edited video [See Below]
with all written steps and shown on screen, here"s a summery of what is shown.
- Create a new project “Third Person” without variant and a new level with the template “Basic”
- Delete the ground, Go to landscape Mode and create one with the default UE5 setting
- Create a post process [Material] named “M_DepthCheck” and apply the following Setup
- Create a [RenderTarget Texture] named “RT_Capture”
- Create a MaterialParameterCollection named “MPC_Capture” with this setup
- Create a landscape Material named “M_Landscape” with this setup and assign it to the landscape
- Back in the blueprint “BP_Capture”, create a new Macro “SnaptoPixelWorldSize” and make this setup.
- Then, create a new Function “MoveCapture” and a new variable “MoveOffset” and make this setup
- Make this setup in the action graph
- In the BP “Third person Character”, activate “render customDepth pass”
At this point, [Selected Viewport] [PIE] [Standalone Game] and [Standalone Game Mobile] all work perfectly
Creating a persistant Capture will then create the bug
- Create a new Render Target named “RT_Persitant”
- Create a new Material named “M_DrawToPersistant”
- In the BP, create a dynamic material Instance + set a promoted new function from it named “DrawMaterial”
- Create a new function named “DrawToPersistant”
- In the M_DepthCheck, add this block of node
- In the BP EventGraph, add the function “DrawToPersistant” to the Event Tick
Now, it works normally on [Selected Viewport] and [PIE]
but in [Standalone Game] [Standalone Game Mobile] It draws a square with a Gradient from the center at launch and flickering lines
- Even with the clear render target at different places in the BP, it doesnt change anything.
Expected Result
[Selected Viewport] [PIE] [Standalone Game] and [Standalone Game Mobile] should have the somewhat same result
Observed Result
[Selected Viewport] and [PIE] works normally and show the traces left behind by the player
While [Standalone Game] and [Standalone Game Mobile] add a Red rectangle in the capture, increase contrast and add flickering Lines
Affects Versions
5.8
Platform(s)
Windows
