Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Animation and Collision

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

Keybinds

  • W - Change direction to right
  • S - Change direction to left
  • Space - Start / stop running
  • L - Change terrain shape

Usage

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
make

To 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.

About

Small application using BVH animations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages