bevy_stl
STL is a very simple format, which supports only triangular geometry (positions + normals), without any color / uv / texture information.
It is supported as an output format by most CAD software.
Alternatives
- by default bevy can load glTF scenes, which is a much better choice if you are looking for a way to load more complex models / scenes, including materials, animations, etc.
- bevy_obj can load Wavefront .obj files, which can carry more information than STL (such as color, material, UV coordinates)
Usage
- Add
bevy_stl
to yourCargo.toml
- Add
bevy_stl::StlPlugin
plugin to the bevyApp
- Load STL assets by passing paths with ".stl" extension to
asset_server.load(..)
Example
You can find a more complete example in examples/spinning_disc.rs
- use cargo run --example spinning_disc --release
to run it.