anim and fbx to wc3

Level 27
Joined
Apr 3, 2018
Messages
499
anyone knows how to import .anim files into blender?
i got a character's model in .fbx but it's unanimated, and a bunch of .anim files from it, i think from unity

i got the blender plugin to convert the base model into wc3 but no way to get animations

opening the .anim files in notepad shows what looks like besier controllers in plain text similar to .mdl, maybe it's possible to convert with a script
upd1: it kinda works, i converted an arm's movement in one of the animations, though it takes a bit of time to do this manually
upd2: no it doesn't work, the animations are off by a 90 degree angle
 
Last edited:
Level 27
Joined
Apr 3, 2018
Messages
499
let's say i take a value like this
value: {x: 0.6343771, y: 0.08147218, z: 0.7535419, w: -0.15199581}

remove x:,y:,z:,w: to get
{0.6343771, 0.08147218, 0.7535419, -0.15199581}

and paste it in Magos, the limb will be angled wrong, what do i do with these coordinates?
i guess it needs rotating, maybe in .anim x isn't front or z isn't up
 
Last edited:
Level 27
Joined
Apr 3, 2018
Messages
499
Wrote script parsing .anim files into .mdl with a dummy mesh. Supposed to be used with RMS to transfer animations into the mesh file.
Still need to make it rotate the axes though. And scale translations, by what scale i have no clue.

example input and output files, though the .anim file is as .txt because hive won't let me attach it as .anim
 

Attachments

  • motion_battle_064000101_buff_0 anim.txt
    595.6 KB · Views: 1
  • motion_battle_064000101_buff_0z-xy.mdl
    79 KB · Views: 2
Last edited:
Top