Author Topic: Help integrating animation code  (Read 1594 times)

Offline neo187

  • int
  • **
  • Posts: 73
    • View Profile
Help integrating animation code
« 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!

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1971
    • View Profile
    • http://www.aptalkarga.com
Re: Help integrating animation code
« Reply #1 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