Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Issues importing BVH & converting to FBX

pretoriw
Community Visitor

Issues importing BVH & converting to FBX

pretoriw
Community Visitor
Community Visitor

I'm trying to convert BVH files into FBX format for importing to Unreal Engine (to animate characters).

When I use the code below to convert the files, the resulting FBX fails to import to Unreal Engine:
"Can't detect import type. No mesh is found or animation track."

 

Sure enough, when I inspected the imported scene, there was no mesh and no poses. I'm pretty new to working with the FBX Python SDK (and FBX files in general), so any help/advice is appreciated.

format = lSdkManager.GetIOPluginRegistry().FindReaderIDByExtension("bvh")
importer = FbxImporter.Create(lSdkManager, "")
lResult = importer.Initialize(filepath, format, lSdkManager.GetIOSettings())
importer.Import(lScene)
FbxCommon.SaveScene(lSdkManager, lScene, result.fbx')

 

0 Likes
Reply
914 Views
1 Reply
Reply (1)

regalir
Autodesk
Autodesk

Hi,

you are aware that BVH files don't define meshes right? The only thing they define is a skeletal hierarchy and the animation. I have attached a simple script (basically it is exactly your code) that convert a BVH file to an FBX (ascii). Both files are included in the archive so you can verify that the FBX file does indeed have an animated skeleton.

 

Regards

p.s. I am not familiar with how Unreal read FBX files and what it requires but, based on the message you are getting, I suspect that the incoming FBX file does not meet its import criterias. And BVH files don't define poses, so you won't get them in the FBX file either! You may want to reach to Unreal team to figure out exactly what is expected ?

0 Likes