bevy_dae
A Bevy plugin for loading and rendering DAE (Collada) files in the Bevy game engine.
Features
- Load and render DAE (Collada) files in Bevy
- Convert Collada meshes to Bevy meshes
- Support for meshes, materials, and textures
- Compatible with Bevy 0.16.0
Installation
Add the following to your Cargo.toml:
[]
= "0.1.0"
Usage
use *;
use ColladaPlugin;
Utility Functions
The library also provides utility functions for working with DAE files:
use dae_to_triangle_mesh;
use from_str;
// Load a Collada file
let collada_str = include_str!;
let collada = from_str.unwrap;
// Convert a DAE mesh to a Bevy triangle mesh
if let Some = dae_to_triangle_mesh
Examples
Check out the examples folder for working examples:
joint.rs- Demonstrates loading and rendering a jointed model
Run an example with:
License
Licensed under MIT license (LICENSE).
Contributing
Contributions are welcome! Feel free to submit a Pull Request.
Acknowledgments
- Built on top of the
mesh-loadercrate for Collada file parsing - Special thanks to the Bevy community for their support and guidance