Help integrating animation code

Started by neo187, September 11, 2011, 03:34:11 PM

Previous topic - Next topic

neo187

Hello. I am fairly new to Android programming, I have a framework that I am using for my game which handles basically everything, including the rendering of static models. I'd like to use Bones for the rendering of an animated model in the game...

I'm looking at the Ninja demo, there's lots of stuff including cameras, bounding boxes and buttons... I was wondering if someone could point out to me the minimum bare essential code to use the library to load an Ogre model and render it while playing an animation... which methods I should be focusing on...

Thank you very much!

raft

Well, that demo is supposed to be basic ;)

Anyway, here is the minimum work flow:
* convert Ogre file to Bones' native format either with provided script files or via BonesIO class
* load converted file in your application via BonesIO class
* set textures. add model to jPCT world. place camera (these are jPCT related stuff)
* every frame calculate an animation index and call AnimatedGroup.animateXX methods to animate your model