Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, juanex), 1,247 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A problem with blending animations #85102
08/08/06 01:34
08/08/06 01:34
Joined: Jul 2005
Posts: 366
eleroux Offline OP
Senior Member
eleroux  Offline OP
Senior Member

Joined: Jul 2005
Posts: 366
I am not sure if this is a bug, so before posting it under bughunt I decided to try here.



These entity at left is running a bone animation, and the one at right is blending 50% between 2 bone animations. I have 2 problems with this scene.

First, the obvious problem that the blend is causing some odd scaling. For example, the very small hand on the model at right.

Second, a less obvious glitch: actually, there's some scaling distortion even in the single animation at left. If you pay attention you can see the head being distorted, somewhat like pulsating.

I think these problems could be connected.

My animations don't even include scale keyframes. If I convert them to points animations, I won't have the pulsating distortion or the small hand, but of course I won't have the full functionality of anm_add and ent_blend.

Using either ent_blend or ent_blendpose causes this problem.

Is there something wrong with my models? You can download a 'demo' complete with models and scripts HERE.

Thanks for your help!

|Emilio|

Last edited by eleroux; 08/08/06 01:38.
Re: A problem with blending animations [Re: eleroux] #85103
08/08/06 04:14
08/08/06 04:14
Joined: Jul 2005
Posts: 366
eleroux Offline OP
Senior Member
eleroux  Offline OP
Senior Member

Joined: Jul 2005
Posts: 366
I also have a movie to show this problem.
The hand looks like a piece of paper after the ent_blend.. and the head looks like if it was under water.

please watch the movie here


|Emilio|

Re: A problem with blending animations [Re: eleroux] #85104
08/09/06 01:25
08/09/06 01:25
Joined: Jul 2005
Posts: 366
eleroux Offline OP
Senior Member
eleroux  Offline OP
Senior Member

Joined: Jul 2005
Posts: 366
Is there something wrong with my model wrong? or..
is it remotely possible that ent_blend and ent_blendpose is blending (averaging) vertices instead of bone angles? because I get the most distortion at ent_blend(...,...,50) (half way the blend...) but almost no distortion near the edges (10%, 90%). And I can see I get similar distortion with a copy of the model in VERTEX animation.

Re: A problem with blending animations [Re: eleroux] #85105
08/09/06 05:38
08/09/06 05:38
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608
Quote:

blending (averaging) vertices instead of bone angles



Indeed this is correct. I complained about it as well but jcl said rotating bones instead of interpolating the vertices' positions is a lot slower. You can write your own blend code though.


Follow me on twitter
Re: A problem with blending animations [Re: mk_1] #85106
08/09/06 06:57
08/09/06 06:57
Joined: Jul 2005
Posts: 366
eleroux Offline OP
Senior Member
eleroux  Offline OP
Senior Member

Joined: Jul 2005
Posts: 366
Oh well, that is some light then... (dark light perhaps?)

Well, at least I know what to expect now.
What do you suggest as blending code? Copying bone rotations and etc. from one pose to another? would that be possible?


EDIT:
I found this in the manual, in ent_blendpose, remarks:
"Blending by linear interpolation computes intermediate vertex positions rather than intermediate bones angles. Thus it produces the best results when the bones angles of source and target pose are not too different, like less than 90 degrees. "

That is exactly what is happening. However, I am using ent_blend and not ent_blendpose.

In ent_blend, the manual says:
"For bones scenes, the instruction does not alter frame and next_frame, but blends the entity's skeleton between the scenes. Only bones affected by the given scene are moved. Several bones animations can be blended by executing this instruction several times for different animation scenes that can even affect the same sets of bones (see ent_animate example)..."

is this still valid? it seems to me that ent_blend blends vertices just the same way as ent_blendpose.

need... sleep...



|Emilio|

Last edited by eleroux; 08/09/06 07:04.
Re: A problem with blending animations [Re: eleroux] #85107
08/09/06 10:14
08/09/06 10:14
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
#1 in my master list(in my signature) has some blending code(animation.wdl). It's only set up for base(standing still), still(an idle animation), walk, run, left and right turning but it smoothly blends from one mode to another.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: A problem with blending animations [Re: Orange Brat] #85108
08/09/06 13:22
08/09/06 13:22
Joined: Jul 2005
Posts: 366
eleroux Offline OP
Senior Member
eleroux  Offline OP
Senior Member

Joined: Jul 2005
Posts: 366
Thanks a lot, Orange Brat! Your contributions are always great.
I had given a quick look at the code (since I spent some days searching everything about blending), but I didn't know I would need it so bad now. I'm going to study it right away.


|Emilio|


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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