Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Blending animation #56155
09/25/05 17:46
09/25/05 17:46
Joined: Oct 2003
Posts: 246
A
Alberto Offline OP
Member
Alberto  Offline OP
Member
A

Joined: Oct 2003
Posts: 246
Hello

Suppose I hace a stand_animation and a run_animation
Dos it mean that can I create an "on the fly"acceleration_animation, blendig them togheter ?
I so can I expect realistic results

Re: Blending animation [Re: Alberto] #56156
09/26/05 01:31
09/26/05 01:31
Joined: Aug 2005
Posts: 574
I
Ithicus Offline
Developer
Ithicus  Offline
Developer
I

Joined: Aug 2005
Posts: 574
Do you mean sort of an increasing speed run? You dont need to blend the animations, which 3DGS cant do. Heres how you animate (I think) :

Code:

anm_increase += 1.5 * time;
anm_speed += anm_increase * time;
anm_speed %= 100;
ent_animate(player,"run",anm_speed,ANM_CYCLE); //num_frames is the frames
//you want to play : "run"


I didnt test this code so it probably wont work. What happens is the var controlling animation speed [anm_speed] is increased slowly over time, making for a run which slowly accelerates. But this only animation, not movement. Also, the variables anm_increase, anm_speed, and the pointer "player" must be defined.

Someone please correct me if Im wrong.

However, if you are thinking of animation interpolation, yes 3DGS does do that. Interpolation is when frames in between the frames you manully created are automatically filled in. Obviously, the more frames you make the better, but interpolation does help alot in making sure the animations are always smooth.

Onward and Upward
McLaren

Re: Blending animation [Re: Ithicus] #56157
09/26/05 10:11
09/26/05 10:11
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
You both should open the manual and seach for ent_blend.
This is a beginners question and should be asked in the beginners forum.

And yes, gamestudio can blend animations.
-- slacer

Re: Blending animation [Re: slacer] #56158
09/27/05 01:13
09/27/05 01:13
Joined: Aug 2005
Posts: 574
I
Ithicus Offline
Developer
Ithicus  Offline
Developer
I

Joined: Aug 2005
Posts: 574
Wow! I didnt know that! Useful information, I get more of it every day.

McLaren

Re: Blending animation [Re: Ithicus] #56159
09/27/05 03:36
09/27/05 03:36
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
http://www.coniserver.net/ubbthreads/sho...true#Post567668

I have a fantastic blending system going, however the code looks a bit crazy. I didn't create it, but it works once you figure out how to implement your player animation/physics stuff. What is provided at the link is lacking that. It's a lot of code, but it covers several different player animation states. You can probably simplify if you don't require all of the various modes.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links

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