Skip to content

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

Notifications You must be signed in to change notification settings

murumura/OpenGL-Skeleton-Animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published