0
$\begingroup$

I am using three.js in javascript.

I have exported a mesh in a .OBJ file and I wanted to also export its bone and animation keyframe data. Since .OBJ files only contain v and f values, is there another simple file container that deals with bone/animation data?

e.g.

MyModel.OBJ
MyModelAnim.other_standard_anim_file_type

I would then like to open up the .OBJ file in blender, aswell as this second file, and combine the bones/anim data back onto the mesh.

So in javascript:

var fileObj = buildMyFileFromBoneAndAnimationData(scene.animationStuff, scene.boneStuff);
var blob = new Blob ( [ fileObj ], { type : "octet/stream" } );
downloadFile("filename.extension", blob)

Then open that file in blender and use anim/bone data to hook into a mesh.

$\endgroup$
  • $\begingroup$ Depends on what you consider simple and what your criteria for the file format are. The question is rarely if the file format is simple but rather if the target software supports it. $\endgroup$ – rjg Aug 8 at 13:59
  • $\begingroup$ @rjg clarified! its going three.js --> blender $\endgroup$ – csch0 Aug 8 at 14:04
  • $\begingroup$ Try the BVH. That's for armature animation. $\endgroup$ – FFeller Aug 8 at 16:37
  • $\begingroup$ @FFeller it seems bvh isnt very well documented: blenderartists.org/t/… . I would like to be able to build this file in javascript, save from browser then open in blender. I've updated question to give pseudo js code i'd like to do $\endgroup$ – csch0 Aug 8 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.