Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Weird model deformation during interpolation #255471
03/10/09 17:32
03/10/09 17:32
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
Hi,

I am currently trying to make an animation for a man walking up stairs. I have created the animation (using bones) in MED and while running it through the cycle in MED it looks perfectly fine. However when i watch the animation in the game there are odd deformations that occur. For example when he lifts his leg up the calf and everything below it shrinks. And the longer the distance the more deformation (shrinking) occurs. I thought that perhaps i just didn't have enough frames so i added more frames but this creates a kind of bobbing effect and there is still some deformation. I went through all my animations and apparently they all do it i just had not noticed it up until now because the other animation movements were small. I'm not sure if this is an engine problem and i haven't been able to find much info on the forums.

I have already posted in A7 Engine : Original Post in A7 Engine

Any help would be greatly appreciated.

I am using LiteC 1.70.1 and the MED that comes with it.

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #255583
03/11/09 12:07
03/11/09 12:07
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Maybe, you forget

ent_animate(me,NULL,0,0); // reset all bones

as in the example?

When you dont reset your bones, your animations add up over time and give strange results.

Another possibility is that you have too few frames in your animation, interpolating means inbetween values from frame to frame, for instance if you rotate something and have one frame only every 90 degrees then interpolation will look wrong.

Re: Weird model deformation during interpolation [Re: Tobias] #255589
03/11/09 12:26
03/11/09 12:26
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
i had tried reseting the bone using ent_bonereset but no luck. And as a side note from certain functions i was working on earlier it seemed as though ent_animate does its own bone reset but i may be wrong on that. but in any case i had tried reseting the bones.

"Another possibility is that you have too few frames in your animation, interpolating means inbetween values from frame to frame, for instance if you rotate something and have one frame only every 90 degrees then interpolation will look wrong."

please view the original thread linked in my first post

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #255621
03/11/09 15:42
03/11/09 15:42
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I have no other suggestions aside from those that you've already got. Can you send the model and your animation script to Support? Then maybe I can then see what's wrong.

Re: Weird model deformation during interpolation [Re: jcl] #255643
03/11/09 17:36
03/11/09 17:36
Joined: Mar 2009
Posts: 40
MokyjeBrute Offline
Newbie
MokyjeBrute  Offline
Newbie

Joined: Mar 2009
Posts: 40
I'm 'guessing' it has something to do with math, just because I heard word 'interpolation' haha. Maybe you should check your math books forever!

Re: Weird model deformation during interpolation [Re: MokyjeBrute] #255653
03/11/09 18:25
03/11/09 18:25
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
Thanks for the reply jcl, I would more than happy to send it in. I'll have it sent this afternoon after i get off of work. As for the script, there is nothing in it except for the ent_animate (and everything used to make the model show up of course) but i will send it in aswell.

MokyjeBrute <----- what the hell is he going on about?

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #256173
03/15/09 04:01
03/15/09 04:01
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
jcl,

Sorry it took so long but i finally had a chance to send my code and model to you.

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #256367
03/16/09 12:18
03/16/09 12:18
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Thanks, the support got it. But we found nothing unusual with your model.

The deformation is just due to the fact that the foot is lifted and tilted at the same time. All vertices move along straight lines during interpolation, so they come closer together, giving the impression of shrinking. This is absolutely normal. It can easily be fixed by using more frames. Bones frames are cheap, so there is no reason to animate a scene with only a few frames, as you would do with vertex animation.

Re: Weird model deformation during interpolation [Re: jcl] #256482
03/17/09 00:23
03/17/09 00:23
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
Thanks for taking the time to look at it,

As a side question why does it look fine in MED but not in the engine. In any case thank you very much for taking a look.

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #256510
03/17/09 07:27
03/17/09 07:27
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I had checked it in MED, but there was exactly the same deformation. It was just less visible because MED uses a wider view angle.

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1