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

Bevy importer #15

Closed
kayhhh opened this issue Jan 13, 2024 · 1 comment
Closed

Bevy importer #15

kayhhh opened this issue Jan 13, 2024 · 1 comment

Comments

@kayhhh
Copy link
Member

kayhhh commented Jan 13, 2024

Create a custom gltf -> Bevy importer using gltf_kun. I don't like doing this since Bevy already has a gltf importer, but am not sure of a good way to use it while supporting custom extensions. There is a PR to expose custom extensions from the Bevy importer which may be one way to solve the problem, but even so that will not be usable for some time unless we start using a fork.

@kayhhh kayhhh added this to gltf_kun Jan 13, 2024
@kayhhh kayhhh converted this from a draft issue Jan 13, 2024
@kayhhh
Copy link
Member Author

kayhhh commented Jan 15, 2024

Things are mostly working 👍 at least for the existing gltf_kun features, still missing materials and such.

Sadly for importing you cannot include bevy_gltf in your app, as each file extension can only have one asset loader. This makes it a bit annoying to work with as bevy_gltf is included in the default features / DefaultPlugins of Bevy. Also makes it hard / impossible for the plugin to be used in the background by bevy libraries as many people will be using bevy_gltf in their app.

However that only applies to .gltf and .glb loading. Other formats not supported already by Bevy like .glxf should still work even with bevy_gltf added to the app (there may be logical errors to account for such as the name-based resolution of assets, but that is solveable, the loader is still run).

@kayhhh kayhhh closed this as completed Jan 15, 2024
@github-project-automation github-project-automation bot moved this from 🏗️ In Progress to 🎉 Done in gltf_kun Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

No branches or pull requests

1 participant