threedworld-mit / tdw

ThreeDWorld simulation environment
BSD 2-Clause "Simplified" License
494 stars 75 forks source link

Issues with using custom objects and animations. #713

Open mullenj opened 1 month ago

mullenj commented 1 month ago

I am currently using version 1.8.29 of tdw on Ubuntu. I have this dependency due to leveraging this paper. My use case requires using humanoids and it seems that the only way to change their pose is through animations. I started by trying to convert a mixamo animation into an asset bundle. The editor log would return an error stating that the asset bundle was null. From here, I attempted to convert the object into a humanoid, as well as an object. All these attempts were done with the current asset bundle creator. The 1.8.29 documentation only includes object support officially and includes a different method to convert objects to asset bundles so I then imported the fbx of the animation into blender and exported a single frame as an obj, before ingesting into the provided code for conversion to the asset bundle.

After completing the conversion of my object to an asset bundle using the provided script, when attempting to add to the build I receive curl errors ((23) Failed writing body) in the Editor Log. This seems odd as the asset bundle is local. Additionally, I have downloaded the core asset bundles and using those local objects works fine. As a sanity check I also attempted to import the animation directly into the current 1.13 build but I still had errors. Let me know what documentation I can provide to help resolve this issue! Thanks so much for any help you can provide!

mullenj commented 1 month ago

One idea I have is that local object support in the build is only for windows at the 1.8.29 iteration of tdw but I'm not sure why that would be the case.

alters-mit commented 1 month ago

The script responsible for creating model asset bundles isn't guaranteed to work with objects that have animations.

If you're trying to use a local asset bundle, be sure to prefix the path with file:/// (Linux; the third / is root) or file:// (Windows)

mullenj commented 1 month ago

Thanks for the response. It appears I was using an extra forward-slash which was causing the curl errors. The error I'm getting now is "Error while downloading Asset Bundle: Failed to decompress data for the AssetBundle filename". I remember seeing this error before in my testing. This object was exported from blender as an obj, then run through the 1.8.29 asset bundle creator. I'll try with a different object and see if this object itself is the cause of the issues or if something else is the problem. If you have any advice on exporting an object from blender so that it is valid and will work downstream, I'd appreciate it!