Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with using custom objects and animations. #713

Open
mullenj opened this issue Jul 11, 2024 · 3 comments
Open

Issues with using custom objects and animations. #713

mullenj opened this issue Jul 11, 2024 · 3 comments

Comments

@mullenj
Copy link

mullenj commented Jul 11, 2024

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
Copy link
Author

mullenj commented Jul 11, 2024

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
Copy link
Member

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
Copy link
Author

mullenj commented Jul 18, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants