Import CSV

Hi there,

I have a 3D depth sensing camera called a ZED which works similarly to a Kinect. Basically it generates a 3D model from its stereoscopic footage and it also has the ability to output a virtual camera path based on the path it has moved through real world space take a look here: Aside from outputting an obj file and texture it also generates a CSV file with camera coordinates and rotations. You can see what this looks like in the Motion_data.txt attached(i had to change the file type from .CSV to .TXT to be allowed to upload it). You can see in the first column is the Timestamp in nanoseconds, the next 3 columns are for rotation using quaternions and the next 3 are for position.

I have found this script that could be modified but it doesn't support animation, it just imports objects statically:

This guy is trying to do something similar except with an Excel file and said he had some issues but managed to solve them himself, however I cant see how I would solve them:

This guy is doing something similar but I cant work out how to apply it to my CSV file:

Would any body be able to help me solve this? I can afford a small fee that we could negotiate?

It appears that getting the rotations to work with the CSV import might be the most complicated bit but max and the ZED SDK both share quaternions rotation styles:

Zed documentation:

Thanks guys,

motion_data.txt17.65 KB


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture


there're two cameras in the scene. Can you check if any of them has valid rotations?

AttachmentSize 64.27 KB
snah's picture

Hi Jahman, thanks for taking

Hi Jahman, thanks for taking a look at this. I imported your cameras into the scene with my OBJ and there seemed to be an issue with scale. I am going to send you some sample files from ZED directly. These should help with troubleshooting:

The mesh:

The CSV:

The AVI:

Can you test your script on these files?

jahman's picture


Oh, I see. My default units are centimeters and CSV position clearly says 'm' which is meters :)
I'll check these tomorrow.

You can place a dummy in [0,0,0], link cameras to it and then select and scale dummy like this:
$.scale *= 100
This will affect camera positions so they should match

jahman's picture


Well, after some trial and error...
There's a certain misalignment between mesh and camera scale and I really have no idea how to deal with it.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.