www.jpct.net

Bones - Skeletal and Pose Animations for jPCT/jPCT-AE => Bones => Topic started by: neo187 on September 11, 2011, 03:34:11 pm

Title: Help integrating animation code
Post by: neo187 on September 11, 2011, 03:34:11 pm
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!
Title: Re: Help integrating animation code
Post by: raft on September 11, 2011, 07:14:30 pm
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