Jump to content

Recommended Posts

Posted

Hi everybody!

As it sad in the topic I can't make it to work. I even tried LE solder.

Here is the code I use. Maybe someone have made it to work properly:


Model mainModel
mainModel.Load("abstract::soldier.gmf");
mainModel.LoadAnimation("abstract::anim_soldier_idle.gmf");

float frame=0;


while(1)
{
frame+=ANIM_SPEED*Engine::GetSpeed();
if (frame>mainModel.GetAnimationLength(1))
frame=0;
mainModel.Animate(frame,1.0,1,RECURSIVE);
}

 

If anybody know what is the problem, please tell me.

 

Thanks in advance.

Q6600@2.4GHz - 9600GT - 4GB DDR2@800MHz - Windows7 x64

3ds max / photoshop CS3 / C++

http://www.arbuznikov.com

Posted

try to use LoadAnimation() on every child of the model ... i think i had the same problem

 

Damn, it works! Thank you very much man! Ive spent a few hours trying to make it work. I guess its a bug. Need to make bug report.

Q6600@2.4GHz - 9600GT - 4GB DDR2@800MHz - Windows7 x64

3ds max / photoshop CS3 / C++

http://www.arbuznikov.com

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...