murumura / OpenGL-Skeleton-Animation

A simple implementation of skeletal Animation using OpenGL , Assimp , STBImage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGL-Skeleton-Animation

A simple implementation of skeletal Animation using OpenGL , Assimp , STBImage

Third party use

  • Assimp.
  • GLM.
  • GLAD.
  • GLFW.
  • stb_image.

How to build and run

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.

Prerequisites to build docker container

  • Docker version 19.03.13+
  • NVIDIA GPU and corresponding Cuda library, driver installed

build Docker container

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:

build on host (or on docker container)

$ cd hello_animation/
$ mkdir build
$ cd build 
$ cmake ..
$ make
$ ./hello_animation

Troubleshooting

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

Screenshot

Image

Features

  • 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

About

A simple implementation of skeletal Animation using OpenGL , Assimp , STBImage


Languages

Language:C 82.8%Language:C++ 16.4%Language:GLSL 0.3%Language:Dockerfile 0.2%Language:CMake 0.1%Language:Makefile 0.1%Language:Shell 0.0%