0
$\begingroup$

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. enter image description here

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

$\endgroup$
  • $\begingroup$ Are you wanting the to switch between cameras in the animation? $\endgroup$ – Millard Sep 1 at 13:39
  • $\begingroup$ 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. $\endgroup$ – AvivSham Sep 1 at 14:13
  • $\begingroup$ 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? $\endgroup$ – Millard Sep 1 at 14:15
  • $\begingroup$ In order to create stereo video and depth. Do you know how can I render both of the cameras to separate files? $\endgroup$ – AvivSham Sep 1 at 18:48
  • $\begingroup$ 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. $\endgroup$ – Leander Sep 4 at 17:10
0
$\begingroup$

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

$\endgroup$
  • $\begingroup$ 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? $\endgroup$ – AvivSham Sep 3 at 17:44
  • $\begingroup$ I'm not even sure what a JSON file is, so I probably can't help you ;\ $\endgroup$ – Millard Sep 3 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.