Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Question about animation blending #459526
05/24/16 16:15
05/24/16 16:15
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi!

I have an issue.. I'm playing around with animations (trying to get good looking animated camera, by attaching camera to a bone of animated model). I can blend one animation into another, that's not the issue here. Problem is, that I blend one animation into the another one, and then ANM_ADD another cycling animation, but added animation doesn't get blended, so it looks really edgy...

Here is what I'm trying to do:
Quote:
-player goes into the crawling, we blend into the 'go_crawl' animation

-player is crawling, but not walking.. we blend into the latest frame from 'go_crawl' animation and then we add stand animation to it (to make camera wiggle)

-player walks while crawling? we blend into the latest frame from 'go_craw' (here and in previous point, I do this to keep camera low, so it looks like player is crawling) and then add to it 'walk' animation, to make camera blob

-player wants to stand up, blend into the 'go_stand' animation.


This is pretty simple, but I can't get this one to work.. Any ideas? If I had separate animation for crawl_idle and crawl_walk, this won't be a problem but I don't have such animations..


Best regards.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Question about animation blending [Re: 3run] #459527
05/24/16 16:27
05/24/16 16:27
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Are you using bones or vertex animation?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Question about animation blending [Re: Superku] #459528
05/24/16 16:28
05/24/16 16:28
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Sorry, I forgot to mention. I'm using bones.

EDIT: Added a little video to show the problem, notice when player goes into crawling, there is that jerking movement, that's caused by 'added' standing animation, same when player starts walking while crawling...

Camera animation


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Question about animation blending [Re: 3run] #459539
05/24/16 21:26
05/24/16 21:26
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Are you using "pose"?
That might solve your problem.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Question about animation blending [Re: alibaba] #459540
05/24/16 22:06
05/24/16 22:06
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Nope, I never worked with 'poses'. Can you give me a hint?

Thank you. Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Question about animation blending [Re: 3run] #459542
05/24/16 22:31
05/24/16 22:31
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
something like:
Code:
Pseudocode:
...
ent_animate(stand);
my.pose=2;
ent_animate(crouch);

my.pose=3;
ent_animate(crouch);
ent_animate(walk,ANM_ADD);

if(my.skill1>0)
ent_blendpose(1,2,my.skill1);

my.skill1=100*key_w;
smooth(my.skill1,0.99);



The example in the manual should hint you to the right way.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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