New to OpenGL and wondering if anyone can help me out. I have a mesh that has animations created using the ‘Your First Animation’ tutorial using blender (link forbidden for some reason), and I have a function to handle the bone transformations. However I’m not sure how to get the timings to pass to that function, how to get which frame the animation should be on. Presently, I have a variable which I increment inside my display function and then pass in, which works but seems like a very poor way of doing things. I’m using glut and have an array of (pointers to) aiScene objects to handle my meshes.
In short, I need an expression giving the time relative to the start of the animation measured in frames. Can anyone help?