Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/bevy-gltf-viewer
Rotating Gltf that it loads with editor tools to use as inspector cam
https://github.com/thlorenz/bevy-gltf-viewer
Last synced: 15 days ago
JSON representation
Rotating Gltf that it loads with editor tools to use as inspector cam
- Host: GitHub
- URL: https://github.com/thlorenz/bevy-gltf-viewer
- Owner: thlorenz
- Created: 2022-10-06T04:27:31.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-08T05:38:47.000Z (about 2 years ago)
- Last Synced: 2024-10-18T02:25:35.695Z (20 days ago)
- Language: Rust
- Size: 10.6 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gltf Viewer
Quick and dirty viewer of Gltf models without animation support.
This is mainly useful for models vs. entire scenes in order to verify that models are loaded
correctly and can be attached to other enities in order to move/rotate them inside the game.![sample](./assets/gltf-viewer.gif)
Shoutout to the awesome [bevy_editor_pls](https://github.com/jakobhellermann/bevy_editor_pls)
editor tools which provide a versatile camera + a way to quickly tweak some values.## Usage
After you clone the repo just do:
```sh
cargo run
```to see the famous flight helmet.
To load another Gltf scene provide the full path to it instead, i.e.:
```sh
cargo run /Volumes/path/to/my/awesome-assets/scene.gltf#Scene0
```- Toggle the Editor with `ESC`
- Toggle rotation with `R`## Alternatives
For a full-fledged scene viewer try the [bevy scene
viewer](https://github.com/bevyengine/bevy/blob/main/examples/tools/scene_viewer.rs) instead.