Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
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')
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 ?
Can't find what you're looking for? Ask the community or share your knowledge.