Render a scene with parameters from XML

Hello,

I have a task, which may be not the unreal’s strongest side, but I can’t see any better instrument for this.

Let’s assume that we have some scene and two cameras. Parameters of those cameras are stored in some sort of .XML file (it’s easy to parse in C++). Parameters are: position, angles and field of view angle. I need to render images from those cameras with some specific resolution which differs from the screen one.

I’d be glad if anyone could help with my problem, or maybe propose a better tool to achieve this goal.

UCameraComponents can already store positions, angles and field of view angles, since those are properties of the cameras themselves. From what you have described there’s no need to keep those in an XML file too. There’s a console command you can execute for changing screen resolution: “r.setRes 1920x1080”.

janimationd, thank you for your answer. I’ve got a couple of questions:

  1. could r.setRes set resolution to one higher than the screen (i.e. 3k*2k?)
  2. Can cameras switch their positions fast in-game? I have a lot of positions and frames to render (tens of thousands) and I want to be able to do it quickly.