Skip to main content
crosscreations
Participant
September 14, 2017
Frage

Import Gyro Data for Camera movement

  • September 14, 2017
  • 2 Antworten
  • 4935 Ansichten

Hey guys, I am working on a scene to simulate a vr head movement. I can export the gyro data from my smartphone as a excel from an app called phyphox. So I record the movement of my phone while it is attached on my vr headset and would like to import it in after fx to apply it on a camera.

Is there any way to get the three axis to after fx from an Text or whatever file? I can export the data in the common formats: excel, csv - comma, decimal points, csv - tab, decimal points, etc...

Thanks in advance

Baris

    Dieses Thema wurde für Antworten geschlossen.

    2 Antworten

    crosscreations
    Participant
    September 16, 2017

    Thank you all very much for you answers!

    To make it short: I guess there is a simple math to convert the data to positions.

    I have worked with Unity3D for a while and I believe there was something related to velocity and positions.

    I hope to figure it out this weekend. Thank you and good luck for you too, Rick!

    carlosj85462710
    Participant
    November 10, 2017

    This is an exciting idea I'm interested in, anybody have an update on this?

    Community Expert
    November 10, 2017

    The app is still a little wonky and it won't let you customize much. I have not been able to extract any usable orientation data yet.

    angie_taylor
    Legend
    September 14, 2017

    You can copy key frame data from excel into After Effects. The best way to get it into the correct format for AE is to create some key frames for a camera in AE, just any old keframes. Copy them and then paste them into an excellent spreadsheet. You'll then see how it needs to be formatted. Delete the temp keframes and replace them with your own, from the Gyro, or whatever,  leaving the header info on the spreadsheet. Then copy and paste these KFs back into the properties in AE that match the data.

    Please note that the coordinate measurement system in AE may be different from the one used in you camera. AE measures the Y axis from top to bottom whereas most3D systems measure from origin upwards. however you could write an expression to compensate for this anomaly if it occurs.

    Hope this helps

    angie_taylor
    Legend
    September 14, 2017

    Alternatively, get the camera data into C4D lite and then extract the camera from the C4D file

    angie_taylor
    Legend
    September 15, 2017

    Just played with the app and you get this:

    "Time (s)""Gyroscope x (rad/s)""Gyroscope y (rad/s)""Gyroscope z (rad/s)""Absolute (rad/s)"
    0.000000000E0-1.081639230E-1-7.360100001E-26.942960620E-21.481114839E-1
    1.004100000E-2-8.547061682E-2-7.765006274E-25.055419728E-21.260574688E-1
    2.008100000E-2-4.796190560E-2-8.272814751E-23.828689456E-21.030057138E-1
    3.012100000E-22.233050996E-3-6.650228798E-22.723825537E-27.189898038E-2
    4.019200000E-23.225783259E-2-3.970303386E-28.441274054E-35.184740851E-2
    5.023200000E-22.295776643E-21.840704470E-3-1.946943440E-23.015801897E-2
    6.027300000E-2-1.829597168E-2-7.825747132E-3-3.603401408E-24.116351623E-2
    7.031300000E-2-5.006672442E-2-2.599460632E-2-4.392307624E-27.149568573E-2
    8.035300000E-2-5.009362847E-2-2.813086100E-2-4.176549613E-27.102868168E-2
    9.039300000E-2-5.113949254E-2-1.531449729E-3-4.927798733E-27.103459067E-2
    1.004340000E-1-5.633429438E-21.338254288E-2-6.110080704E-28.417810759E-2

    So the data will take a bit of work. The time will have to be converted to seconds and rad/s will have to be converted to something meaningful, and absolute rads/s will probably have to be eliminated. I'll have to do some research on the site and figure out how the app works. It sure looks possible.

    It looks like you can get inclination and rotation data from the app.... More fun this weekend.


    Nice work Rick,

    What are the letter E on the end of the XYand Z coordinates? Sounds like a job for Dan E? ;-)