Export a .FBX file in Unity3D at runtime
Posted
by
Timothy Williams
on Game Development
See other posts from Game Development
or by Timothy Williams
Published on 2013-06-26T22:37:58Z
Indexed on
2013/06/27
4:32 UTC
Read the original article
Hit count: 1081
What I'm looking to do is be able to export an object as a .FBX at runtime in Unity3D.
I've made a C# script which can export a mesh filter or skinned mesh renderer to a .OBJ file at runtime, but .OBJ doesn't support the same kind of animations and skins that .FBX does.
I've been researching this for a while, as of right now it looks like somehow using the Autodesk FBX SDK or some other external .dll would be my best option. Does anyone know of external .dlls I could use for this? Or how to make calls to Autodesk's FBX SDK at runtime?
Another option could possibly be to write the mesh information as a text file then convert to .FBX on exporting.
Just looking for fellow programmer's thoughts, or tips, or to see if this has been accomplished already. As far as I can tell there isn't any pre-existing scripts to export FBX at runtime in Unity.
© Game Development or respective owner