2ima Posted June 7, 2016 Posted June 7, 2016 model_path = "G:/342/fff/Models/Characters/Crawler/crawler.mdl"; model = Model::Load(model_path); model->SetAnimationName(1, "Run"); std::cout << "Animation: " << model->GetAnimationName(1); anim = 42; std::cout << "*******animname***: " << model->animationname[1]; model->SetAnimationFrame(Time::GetCurrent() / 100.0, 1, 1, 1); model->Update(); Here's a problem: animation draws incorrectly, somebody knows how to fix it? Quote
Josh Posted June 7, 2016 Posted June 7, 2016 No files -> No love. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
2ima Posted June 7, 2016 Author Posted June 7, 2016 No files -> No love. Standart crawler.mdl model Quote
Josh Posted June 7, 2016 Posted June 7, 2016 I didn't even recognize him. Can you paste a small runnable example? I don't see anything wrong there, although you do not need to call model->Update(). Quote My job is to make tools you love, with the features you want, and performance you can't live without.
2ima Posted June 7, 2016 Author Posted June 7, 2016 Here how it looks before animation starts, and after it becomes like I posted upper. I think somthing wrong with context sync or blend mode, but none of it helps. Runnable example means post here .exe? Quote
Josh Posted June 8, 2016 Posted June 8, 2016 Your problem likely has nothing to do with animation but I can't tell anything without a code sample. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
AggrorJorn Posted June 8, 2016 Posted June 8, 2016 Are you loading the model in the game loop? If so, the animation is possibly correct, you are just reloading the model every frame. Quote
2ima Posted June 8, 2016 Author Posted June 8, 2016 Thanks for help, I'll try to fix later. I think it's really because of model reloading. 1 Quote
Recommended Posts
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.