https://github.com/tylersuehr7/raylib-3d-model-viewer
Helps you visualize GLB 3D models and animations with raylib for game development.
https://github.com/tylersuehr7/raylib-3d-model-viewer
3d-models cpp game-development raylib
Last synced: 2 months ago
JSON representation
Helps you visualize GLB 3D models and animations with raylib for game development.
- Host: GitHub
- URL: https://github.com/tylersuehr7/raylib-3d-model-viewer
- Owner: tylersuehr7
- License: mit
- Created: 2025-06-28T00:27:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-28T00:38:40.000Z (about 1 year ago)
- Last Synced: 2025-06-28T01:26:59.562Z (about 1 year ago)
- Topics: 3d-models, cpp, game-development, raylib
- Language: C
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 3D Model Viewer
Helps you visualize GLB 3D models and animations with raylib for game development.
## Features
- File browser to select GLB models from the assets directory
- 3D model viewing with camera orbit controls
- Model transformation controls:
- Scale down / up model ('q' key / 'e' key)
- Adjusts upright angle ('r' key)
- Model animation controls:
- Switch between animations (',' key / '.' key)
- Increase / decrease animation speed ('+' key / '-' key)
- Display options:
- Wireframe mode ('w' key)
- Bounding box display mode ('b' key)
- Toggle file picker ('space' key)
## Building
This project uses CMake for building:
```bash
# Create build directory
mkdir build
cd build
# Configure and build
cmake ..
make
# Run the application
./game
```
## Adding Models
Place your GLB model files in the `assets` directory. The application will detect them automatically.
You can find sample GLB files at:
- [Khronos glTF Sample Models](https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0)
- [Sketchfab](https://sketchfab.com/) (Many models can be downloaded in GLB format)
## Dependencies
- [raylib](https://www.raylib.com/) - A simple and easy-to-use library for game development
- [raygui](https://github.com/raysan5/raygui) - A simple and easy-to-use immediate-mode GUI for raylib
## License
This project is licensed under the MIT License - see the LICENSE file for details.
> Copyright © 2025 Tyler R. Suehr