An example raylib application for viewing animation on the Geno character
#3d #model-viewer #animation #viewer
|
|
4 luni în urmă | |
|---|---|---|
| resources | 5 luni în urmă | |
| .gitignore | 1 an în urmă | |
| LICENSE | 1 an în urmă | |
| Makefile | 1 an în urmă | |
| README.md | 4 luni în urmă | |
| genoview.c | 5 luni în urmă |
https://github.com/user-attachments/assets/70311b6e-9f32-4b9e-8007-4b362102b770
GenoView is a really basic example raylib application that can be used to view skeletal animation data in a way that is clear and highlights any artefacts. It uses a simple Deferred Renderer that supports shadow maps and Screen Space Ambient Occlusion, as well as a procedural grid shader as a texture. This makes common artefacts such as foot sliding and penetrations easy to see on a skinned character even on low-end devices, without the complexity of a full rendering engine.
Included are some simple scripts for exporting characters and animation data into a binary format that can be easily loaded by the application. These scripts are made for the Geno character from the following datasets:
However they can likely be adapted to new characters, or the normal raylib-supported file formats can be loaded too.
For a pure python version of this project check out GenoViewPython.
Here are the steps to viewing any of the animation data linked above in this viewer.
resources folder.bvh_files variable in the resources/export_animations.py script to contain the bvh files you want to view - then run the export_animations.py script.genoview.c where testAnimation is loaded to load the animation you want to view instead.