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 (TipmyPip), 18,633 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 #255147
03/08/09 01:36
03/08/09 01:36
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 am using LiteC 1.70.1 and the MED that comes with it.

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #255185
03/08/09 14:52
03/08/09 14:52
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Hi,

did you try your animation code with a different model? Just to be sure it happens not only with your model. Next would be to check if the animation looks different with different code.

We had some problem with interpolation some years ago, but this was only visible during slow motion animations.

-- slacer

Re: Weird model deformation during interpolation [Re: slacer] #255188
03/08/09 15:42
03/08/09 15:42
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 Slacer

The only code that i am using is the ent_animate to be specific the exact code i am using is:

my.skill20+=1*time_step;
my.skill20%=100;
ent_animate(my,"Leg_STAIR_UP",my.skill20,ANM_CYCLE);

i have created a seperate fresh script that had nothing but the entity and the animation code and still have the same problem. I have also tested with different models as well as tested by converting the model to points animation and the results are still the same.

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #255195
03/08/09 17:14
03/08/09 17:14
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hmm, not sure but try this instead.

my.skill20+=1*time_step;
ent_animate(my,"Leg_STAIR_UP",cycle(my.skill20,0,100),ANM_CYCLE);

And let us know how it goes. If it make ANY difference...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Weird model deformation during interpolation [Re: EvilSOB] #255197
03/08/09 17:38
03/08/09 17:38
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

unfortunantly there is still no change. Its almost as if the bone itself is resizing during the animation.

the odd thing of it is that the animation works perfect in MED but not in the engine.
also if i manually rotate the bone through script using ent_bonerate there is no problem.

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #255207
03/08/09 19:47
03/08/09 19:47
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Try creating (in your fresh script) keystrokes to change ent.skill20 manually
and have its value displayed as a number in a text panel or something.
That way you can see if any odd numbers are getting into skill20, or at least
exactly what values are making it go screwy.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Weird model deformation during interpolation [Re: EvilSOB] #255218
03/08/09 21:12
03/08/09 21:12
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
still the same nothing unusual in the skill20.



maybe this will help

as you can see the left leg which is being lifted starts to deform from the knee joint down shrinking the calf and foot

Thanks,
AJ



Last edited by AJ; 03/08/09 21:19.
Re: Weird model deformation during interpolation [Re: AJ] #255243
03/09/09 05:37
03/09/09 05:37
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Looks like it is doing a ent_bonescale to the lower leg and beyond.
When you were displaying the skill20, what are the values it seems to
be freaky between (2 decimal places if possible).

Also, try creating a duplicate model and convert it to vertex animation.
See if it still does the same thing.

Its starting to look like a bug in the engine interpolation, whereas MEDs version is OK


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Weird model deformation during interpolation [Re: EvilSOB] #255309
03/09/09 14:01
03/09/09 14:01
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline OP
Member
AJ  Offline OP
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
i tried swithing to vertex animation and it still looks the same. I will get the values from skill20 for you this afternoon. Thanks for your help EvilSOB

Thanks,
AJ

Re: Weird model deformation during interpolation [Re: AJ] #255312
03/09/09 14:05
03/09/09 14:05
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
No problem, also, any chance of you posting (a link to) the model?
(dont need textures it its big, bone-anim by preference...)
PS Is it just one leg or both? (if just one, which one?
Looks like his left in the pic.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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