Small project to learn animating BVH animations and simple collision detection with dynamic spheres. Character skeleton loaded from .bvh file with a stand and running animation set, animation is blended between them over a couple frames to get smooth animations. Skeleton is rendered in legacy OpenGL using the matrix stack for joint transformations. Spheres are randomly generated above the character and drop, bouncing according to the geometry of the terrain. Simple collision check with character position and sphere causes character to change color if colliding.
animation_preview.mp4
W- Change direction to rightS- Change direction to leftSpace- Start / stop runningL- Change terrain shape
To compile on linux:
Qt version should be 6.0+. QMake version should be 3.1+
Create Makefiles with:
qmake -project "QT += core gui widgets opengl openglwidgets" "LIBS += -lGL -lGLU"
qmake
makeTo compile on Windows:
Install QT 5.13.0 or newer (6.0+)
Create .pro file with:
qmake -project "QT += core gui widgets opengl openglwidgets" "LIBS += -lOpengl32 -lglu32"Either open the .pro file in QtCreator or use Qt Visual Studio Tools plugin in Visual Studio and import the .pro file to convert it to a Visual Studio solution. Then build the program in which ever IDE used.