Search Unity

Question Any way to convert/parse Three.js AnimationClip files to ones that Unity can use?

Discussion in 'Animation' started by M-P-NaCl, Mar 22, 2022.

  1. M-P-NaCl

    M-P-NaCl

    Joined:
    Oct 7, 2020
    Posts:
    1
    the three.js clips are json files looks like these:

    {
    "name":"CMN_MWM_02",
    "duration":0.6333333253860474,
    "tracks":[
    {
    "name":"jRoot.quaternion",
    "times":[0,0.13333334028720856,0.23333334922790527,0.366666704416275,0.40000003576278687,0.4333333671092987,0.5,0.6000000238418579,0.6333333253860474],
    "values":[0.21618957817554474,-0.04691392183303833,0.010400566272437572,0.9751681685447693,0.21235013008117676,0.07146663218736649,-0.011145439930260181,0.974513053894043,0.211751326918602,0.09917022287845612,-0.020928554236888885,0.9720538258552551,0.2170950323343277,-0.00975138507783413,-0.0032702027820050716,0.9760962724685669,0.2166883796453476,-0.04207831248641014,0.0033578400034457445,0.9753277897834778,0.21400493383407593,-0.08150006085634232,0.012195860035717487,0.9733503460884094,0.21047496795654297,-0.11118734627962112,0.019694829359650612,0.9710559844970703,0.21062037348747253,-0.11046463996171951,0.021810563281178474,0.9710617661476135,0.21414832770824432,-0.07957310229539871,0.016230786219239235,0.9734193086624146],
    "type":"quaternion"​
    },{
    "name":"jRoot.position",
    "times":[0,0.10000000894069672,0.20000000298023224,0.30000001192092896,0.4000000059604645,0.4333333373069763,0.5333333015441895,0.5999999642372131,0.6333333253860474],
    "values":[0,0.39656296372413635,0,0,0.39076757431030273,0,0,0.43779394030570984,0,0,0.4013253450393677,0,0,0.403900146484375,0,0,0.4156430661678314,0,0,0.432736337184906,0,0,0.427538126707077,0,0,0.41209688782691956,0],
    "type":"vector" ​
    }, etc.​

    ]
    "uuid":"2F60DC74-518C-4EEF-BB8A-28A68956810D",
    "blendMode":2500​
    }
     
  2. unity_869674duan

    unity_869674duan

    Joined:
    Sep 6, 2022
    Posts:
    1
    Hi,have you found the answer yet?
     
  3. hasion01

    hasion01

    Joined:
    Nov 11, 2021
    Posts:
    4
    hi , have you solve it ?