# 3D Multiview Rendering

I have the following scene (please see the image below) the right ball is hitting the middle cube which starts to roll and eventually hits the left cube. The depth information is important to me so I use two cameras with side angles to gain the depth of the objects as well.

1) How is it possible to render both of the cameras to one output file? (if you have any other suggestions of how to get the depth of the object I would love to hear about it) 2) If (1) is not possible how is it possible to render both of the cameras to two different files? 3) How can I get the data of an object which wasn't animated? for example in the current scene, I want to know the location of the middle cube in each frame. How can I get JSON file (or any other format) with this data?

Setup: Ubuntu 18.04 Blender 2.8

Thank you in advance, Aviv

• Are you wanting the to switch between cameras in the animation? – Millard Sep 1 at 13:39
• No @Millard I know how to switch between cameras I want to shot from two cameras at the same time and turn them into one output file. – AvivSham Sep 1 at 14:13
• Well, I don't think it's possible to render both cameras to one file, (I could be wrong) why do you need them on the same file? – Millard Sep 1 at 14:15
• In order to create stereo video and depth. Do you know how can I render both of the cameras to separate files? – AvivSham Sep 1 at 18:48
• If youre only interested in the distance of the camera to the center of the cube, you could use python to measure it like (camera.location - object.location).length. – Leander Sep 4 at 17:10

## 1 Answer

You don't need to do that manually, blender already comes with a stereoscopic feature, I don't know much about it, so here's the page on the blender manual.

https://docs.blender.org/manual/en/dev/render/output/multiview/usage.html#introduction

• Thanks! I will look at it. I want to know the location of the middle cube in each frame. How can I get JSON file (or any other format) with this data? – AvivSham Sep 3 at 17:44
• I'm not even sure what a JSON file is, so I probably can't help you ;\ – Millard Sep 3 at 17:48