Save the bounding box position in a text file, and export RGB and depth images

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  02 February 2014
Save the bounding box position in a text file, and export RGB and depth images

this is my first time to use blender as I just have a small question and hope if anyone could advise me. I have a .blend file found here and I'm asking if anyone could assist me in doing two things: 1- I want to save the positions (x y width height) of the bounding box of the moving object for every frame in the file attached, and save them in a text file where each line will have the x y width height of the bounding box in each frame, e.g line one will have x y width and height of the bounding box in frame 1,... and so on. 2- I want to export 2 images for every frame, one RGB and the other Depth image depending on the Z position away from the camera location.

So if anyone could please advise me as its kind of urgent for me.
  03 March 2014
Hi, don't know about 1st question (there's a specific reason you want to use a text file?)
For the 2nd:

The z pass is activated by default, so the only thing you have to do is: switch to the node editor and activate nodes
then link the z out of the render node to the composite node and just render.
This way you can only render one pass at a time.
If you want to render both together you have to create two file output nodes, one linked to the rgb image and one linked to the z value.
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:26 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.