mbeytekin
Member
I've a little personal project about converting mocap data from 3ds max ASE file to Spine skeletons.
I have no idea about quaternion conversions and after searching forum I found quaternionGetx and other scripts by Slayer64
But after trying a lot of combinations couldn't get usable results.
Example of 3ds max ASE file about rotation;
*CONTROL_ROT_SAMPLE 0 -1.0 0.1 -0.1 0.8
*CONTROL_ROT_SAMPLE 160 -0.9 -0.3 0.3 0.0
*CONTROL_ROT_SAMPLE 320 -0.9 -0.2 0.4 0.0
*CONTROL_ROT_SAMPLE 480 -0.8 -0.2 0.6 0.0
*CONTROL_ROT_SAMPLE 640 -0.0 0.0 1.0 0.0
*CONTROL_ROT_SAMPLE 800 0.9 0.2 0.5 0.0
*CONTROL_ROT_SAMPLE 960 1.0 0.2 0.2 0.0
*CONTROL_ROT_SAMPLE 1120 1.0 0.2 0.1 0.0
*CONTROL_ROT_SAMPLE 1280 1.0 0.2 0.0 0.0
*CONTROL_ROT_SAMPLE 1440 1.0 0.2 -0.0 0.1
*CONTROL_ROT_SAMPLE 1600 1.0 0.1 -0.1 0.1
-1.0 0.1 -0.1 0.8 are rotation values.. I think first 3 arguments are x,y,z and last one is angle.
which is rw,rx,ry,rz ... and I need rotate this values around z axis for projection before convertion.(for example 90 or 80 degrees)
I tried
quaternionCreate(rw,rx,ry,rz)
quaternionAutoRotate(rw,rx,ry,rz,0,0,-1,90)
quaternionGetx(rw,rx,ry,rz)
and I use rx for Spine skeleton rotation ... but it doesnt work.
I tried other combinations for rw rx ry rz, Autorotate with changing up vectors and degree, gettin rx ry rz .. doesnt work.
Anybody can help me about this.
Regards
I have no idea about quaternion conversions and after searching forum I found quaternionGetx and other scripts by Slayer64
But after trying a lot of combinations couldn't get usable results.
Example of 3ds max ASE file about rotation;
*CONTROL_ROT_SAMPLE 0 -1.0 0.1 -0.1 0.8
*CONTROL_ROT_SAMPLE 160 -0.9 -0.3 0.3 0.0
*CONTROL_ROT_SAMPLE 320 -0.9 -0.2 0.4 0.0
*CONTROL_ROT_SAMPLE 480 -0.8 -0.2 0.6 0.0
*CONTROL_ROT_SAMPLE 640 -0.0 0.0 1.0 0.0
*CONTROL_ROT_SAMPLE 800 0.9 0.2 0.5 0.0
*CONTROL_ROT_SAMPLE 960 1.0 0.2 0.2 0.0
*CONTROL_ROT_SAMPLE 1120 1.0 0.2 0.1 0.0
*CONTROL_ROT_SAMPLE 1280 1.0 0.2 0.0 0.0
*CONTROL_ROT_SAMPLE 1440 1.0 0.2 -0.0 0.1
*CONTROL_ROT_SAMPLE 1600 1.0 0.1 -0.1 0.1
-1.0 0.1 -0.1 0.8 are rotation values.. I think first 3 arguments are x,y,z and last one is angle.
which is rw,rx,ry,rz ... and I need rotate this values around z axis for projection before convertion.(for example 90 or 80 degrees)
I tried
quaternionCreate(rw,rx,ry,rz)
quaternionAutoRotate(rw,rx,ry,rz,0,0,-1,90)
quaternionGetx(rw,rx,ry,rz)
and I use rx for Spine skeleton rotation ... but it doesnt work.
I tried other combinations for rw rx ry rz, Autorotate with changing up vectors and degree, gettin rx ry rz .. doesnt work.
Anybody can help me about this.
Regards
Last edited: