Screen Capture From Multiple Cameras

Hi,

I am trying to place multiple cameras into a scene and take screen captures from all those cameras at the same point in time, i.e. something like a HighResShot all in the exact same frame from different cameras. This is an offline thing, so performance is not really an issue. I see the code to do a HighResScreenshot, and I am able to switch the current viewport to a different camera in a different tick, but how do I cycle the viewport through a bunch of cameras in the same tick (either that, or change the position/orientation of the current viewport without ticking anything in the world, though I assume this would be architecturally harder) ? The point of this is to dump the screen capture to files, so what is displayed on screen or performance doesn’t matter; also I am working in the source code, so any limitations from blueprints, etc. shouldn’t matter either.

Seeing as how the HighResShot does something vaguely similar; creating a dummyviewport and re-rendering the world a 2nd time to take the screenshots, I would think this is feasible, as long as I can move the viewport or change to different camera in the same tick.

Thanks :slight_smile:

Apparently, if I were to get the pc’s camera, and change the position, then call GWorld->Tick and GameViewport->Tick with delta time of 0.0f, it appears to work. But not sure if there are any side effects. Any thoughts? :slight_smile: Thanks!