docs.rs failed to build bevy_ufbx-0.17.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bevy_ufbx-0.1.0
bevy_ufbx
A Bevy plugin for loading FBX files using the ufbx library.
Features
- Load FBX files directly into Bevy
- Support for meshes with multiple materials
- PBR material support with textures
- Skeletal animation with skinning
- Scene hierarchy preservation
- Support for lights and cameras
- Flexible loading options
Installation
Add to your Cargo.toml:
[]
= "0.17"
= "0.17"
Versioning
The crate minor version matches Bevy's version.
Usage
Basic Setup
use *;
use FbxPlugin;
Loading FBX Files
use *;
use ;
Custom Loading Settings
use *;
use FbxLoaderSettings;
Asset Labels
The plugin uses labeled sub-assets to allow loading specific parts of an FBX file:
Scene{N}- Scene hierarchy (N is the scene index)Node{N}- Individual nodesMesh{N}- Mesh dataMaterial{N}- MaterialsTexture{N}- TexturesAnimation{N}- AnimationsSkin{N}- Skinning dataDefaultMaterial- Default material when none is specified
Supported Features
Geometry
- Triangle meshes
- Multi-material meshes (face groups)
- Vertex positions, normals, UVs
- Vertex colors
- Tangents
Materials
- PBR materials (base color, metallic, roughness)
- Texture mapping
- Normal maps
- Emission
- Alpha blending
Animation
- Skeletal animation
- Skinning with bone weights
- Transform animations
(Animations are a planned feature, not yet forwarded to Bevy)
Scene Elements
- Node hierarchy
- Lights (directional, point, spot)
- Cameras
Limitations
- Requires FBX files to have been exported with triangulated meshes
- NURBS and subdivision surfaces are not directly supported
- Some advanced material features may not be fully supported
Examples
See the examples/ directory for more detailed usage examples.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.