https://github.com/mosure/bevy_webcam
📷 bevy native/web camera input
https://github.com/mosure/bevy_webcam
bevy bevy-plugin camera wasm
Last synced: 5 months ago
JSON representation
📷 bevy native/web camera input
- Host: GitHub
- URL: https://github.com/mosure/bevy_webcam
- Owner: mosure
- License: apache-2.0
- Created: 2025-07-08T00:54:30.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T03:48:57.000Z (6 months ago)
- Last Synced: 2025-08-11T03:51:42.808Z (5 months ago)
- Topics: bevy, bevy-plugin, camera, wasm
- Language: Rust
- Homepage:
- Size: 588 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# bevy_webcam 📷
[](https://raw.githubusercontent.com/mosure/bevy_webcam/main/LICENSE-MIT)
[](https://crates.io/crates/bevy_webcam)
bevy camera input, using the nokhwa crate
## usage
```rust
app.add_plugins((
DefaultPlugins,
BevyWebcamPlugin::default(),
));
app.add_systems(
Update,
setup_ui,
);
// ...
fn setup_ui(
mut commands: Commands,
stream: Res,
) {
commands.spawn(Camera2d);
commands.spawn((
ImageNode {
image: stream.frame.clone(),
..default()
},
Node {
width: Val::Percent(100.0),
height: Val::Percent(100.0),
..default()
},
));
}
```
## features
- [x] native camera
- [ ] threaded camera
- [ ] wasm camera