Jump to content
Hash, Inc. Forums
Sign in to follow this  
robcat2075

RAW camera motion import/export format

Recommended Posts

A:M has a format for importing/exporting camera data. For what it's worth, it seems to work like this...

 

It is a text file that appears like this

 

30 16
1 1 2 3 0 0 0 0 0 0 3.72529e-009 1 12 -0 100 0 0
2 1 2 3 0 0 0 0 0 -1.11022e-016 3.72529e-009 1 12 8.33262 100 0 0
3 1 2 3 0 0 0 0 0 -1.66533e-016 3.72529e-009 1 12 17.0863 100 0 0
4 1 2 3 0 0 0 0 0 -2.77556e-016 3.72529e-009 1 12 26.1848 100 0 0
5 1 2 3 0 0 0 0 0 -2.22045e-016 3.72529e-009 1 12 35.5286 100 0 0
6 1 2 3 0 0 0 0 0 -2.22045e-016 3.72529e-009 1 12 45 100 0 0
7 1 2 3 0 0 0 0 0 -1.11022e-016 3.72529e-009 1 12 54.4714 100 0 0
8 1 2 3 0 0 0 0 0 0 3.72529e-009 1 12 63.8152 100 0 0
9 1 2 3 0 0 0 0 0 -1.11022e-016 3.72529e-009 1 12 72.9137 100 0 0
10 1 2 3 0 0 0 0 0 1.11022e-016 3.72529e-009 1 12 81.6674 100 0 0
...

 

A Spreadsheet program like OpenOffice can interpret the spaces as separators and create something formatted like this

 

camdata.JPG

First row: number of frames, number of columns

 

The rows after that seem to contain the data columns like this:

 

A- frame number

B- X Translation in cm

C- Y Translation

D- Z Translation

E-I- unknown

J- X Aim

K- Y Aim

L- Z Aim

M- Focal distance in cm

N- Z rotation degrees (rotation on barrel axis)

O- Focal length

P-Q- unknown

 

The "Aim" data seems not to be actual angles but XYZ coordinates in space measured from the camera axis that the camera is pointed at. I imagine with some trigonometry that result could be converted by the spreadsheet into any angle format that some other camera system might need. Likewise, a spreadsheet could reformat this data into any order needed by another porgram.

 

If you have some other app that can understand a text format for camera data, this A:M .RAW format looks like a starting point for that.

Share this post


Link to post
Share on other sites

Many years back I wrote a program that took the data for the camera and converted it for use in electric image. I was doing character work in am and rendering over matching backgrounds in ei.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...