A simple implementation of skeletal Animation using OpenGL , Assimp , STBImage
- Assimp.
- GLM.
- GLAD.
- GLFW.
- stb_image.
I have the dockerfile needed to build the environment for this project, for those who are familiar with the basic operations of docker are very welcome to execute this project directly through docker container I build.
- Docker version 19.03.13+
- NVIDIA GPU and corresponding Cuda library, driver installed
Once docker is installed on the host, it is very easy to build a development environment through the dockerfile and build script I provided
# build docker container
$ sh build.sh
# That's it, after a few minutes of installation, you can enter the docker container through run script
$ sh run.sh
After you build the third-party library project needed(or simply use the docker container in this repo), enter the hello_animation
folder:
$ cd hello_animation/
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./hello_animation
In the case that a library isn't found, for example libassimp.so.5
, you will probably see an error
like this one:
hello_animation: error while loading shared libraries: libassimp.so.5: cannot open shared object file: No such file or directory
Make sure you have installed Assimp with CMake and set your $LD_LIBRARY_PATH
environment variable.
$ export LD_LIBRARY_PATH=/usr/local/lib
- Support using camera to adjust view
- press W,A,S,D to move camera toward/left/away/right
- moving mouse cursor to adjust camera's yaw, pitch view