Author Topic: animate md2 serialized object  (Read 3156 times)

Offline tuanphong

  • byte
  • *
  • Posts: 4
    • View Profile
animate md2 serialized object
« on: December 09, 2010, 04:20:51 am »
I have a md2 serialized object.
as I read from the documentation, I call function animate(0)
I write this code in onDrawFrame event but it don't animate

Please help me.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: animate md2 serialized object
« Reply #1 on: December 09, 2010, 07:07:19 am »
You have to increase the value up to 1 and start to loop at 0 again once you've reached 1. With animate 0, you'll always render the same frame.

Offline tuanphong

  • byte
  • *
  • Posts: 4
    • View Profile
Re: animate md2 serialized object
« Reply #2 on: December 12, 2010, 10:48:50 am »
I have solved this problem
Thanks for your help. :)