I am trying to export a SceneCapture to file.
I can sucessfully export to PNG as per the solution here: https://answers.unrealengine.com/questions/499570/exporting-a-rendertarget-as-a-png.html
Which works if I set the render target format to “RTF RGBA8”, and the scene capture source to “Final Color (LDR) in RGB”.
However instead of “Final Color (LDR) in RGB”, I want to export as “BaseColor in RGB”:
I followed the instructions here to create a SceneCapture2D and save to RenderTarget, and here is the Blueprint I created to save the RenderTarget to file:
This creates a PNG in the project directory, and as per the thumbnail image, this appears to be exactly what I want (i.e. RGB BaseColor only):
However, when I try to actually open the file, the image is blank:
The file exporting process seems to work for FinalColor:
- Capture Source: “Final Color (LDR) in RGB”
- Render Target Format: “RTF RGBA8”
…but not for BaseColor:
- Capture Source: “BaseColor in RGB”
- Render Target Format: “RTF RGBA8”
However I can’t see why this would make a difference.
I have tried using 4.26.2 and 5.0.0-16682836+++UE5+Release-5.0-EarlyAccess, but get the same problem. I’m wondering if this is a bug.
Has anyone managed to successfully export a BaseColor scene capture to file? If so, could you please share your solution?