Hello!
I am writing a simulation that requires a camera to render different viewmodes each frame and ultimately save the render to a file. Ultimately it’ll be a first person camera in a scene and I want to export various things each frame such as depth map, lighting, texture only, etc, all as separate images.
I want to save the typical render, texture only viewmodes, lighting only viewmode, and a couple of other renders with specific post processing shaders (e.g. a depth shader). I prefer to use the built in viewmodes rather than write custom shaders for everything, if possible. I already have it set up to toggle between each view mode via key press.
It seems the best way is to use a render target and then save that to a file. But should there be one render target for each ‘type’ of render? Should I use multiple identical cameras or one camera and re-render multiple times each frame? Anything else to consider?
I am very new to unreal so I appreciate any help or suggestions. I am aware the FPS will probably be low, that is not a concern.
Thanks!