Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (alibaba, vicknick), 1,492 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Way to blend between an ent_animate call and ent_bonerotate? #259052
04/03/09 16:27
04/03/09 16:27
Joined: Jul 2005
Posts: 192
Orange County
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

Joined: Jul 2005
Posts: 192
Orange County
I know how to blend between two animations using the ent_animate function, and then ent_blend.

However, I am calling a walk animation using "ent_animate", but I want to rotate a "neck" bone making use of the ent_bonerotate function.

So far I haven't found a way to blend an animation with a specific bone rotate call so that my character can walk and rotate its neck bone at the same time.


AMD 64 x2 4400+ 2048mb DDR3200 NVidia 6800GS 256mb Soundblaster Audigy 2 A7 Commercial 7.07
Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: silencer] #259061
04/03/09 17:05
04/03/09 17:05
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Well, it should work if you define an angle, then call
ent_bonerotate for the "neck" bone when you want it to rotate:

VECTOR neck_angle;

.....

ent_bonerotate(my,"neck",neck_angle); //rotate it
neck_angle.x += 20*time_step; // rotate pan
neck_angle.y += 5*time_step; // rotate tilt

......

Play with the values in the lines where the vector gets modified; call the whole thing in a loop
Should work;

Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: the_clown] #259064
04/03/09 17:17
04/03/09 17:17
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
the_clowns code looks OK, just remember to use it AFTER any ent_animate,
and before any wait's.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: EvilSOB] #259068
04/03/09 17:37
04/03/09 17:37
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
or you can use ANM_ADD mode of ent_animate,

reset all bones every frame(ent_bonereset_all???), make your changes(ent_bonerotate) and add angles from your animation frame using ent_aniamte(...,...,...,ANM_ADD)


afaik this is covered in lite-c workshops.

Last edited by Quadraxas; 04/03/09 17:40.

3333333333
Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: EvilSOB] #259069
04/03/09 17:40
04/03/09 17:40
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
and what about "ent_bonereset(my,"neck")"? i think you need to put this line before "ent_bonerotate(my,"neck",neck_angle)" smile


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: Jaxas] #259070
04/03/09 17:41
04/03/09 17:41
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
when you reset allbones it gets reset too.


3333333333
Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: Jaxas] #259119
04/04/09 00:27
04/04/09 00:27
Joined: Jul 2005
Posts: 192
Orange County
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

Joined: Jul 2005
Posts: 192
Orange County
ent_animate only takes a scene.

How can you define a scene with a bonereset?


AMD 64 x2 4400+ 2048mb DDR3200 NVidia 6800GS 256mb Soundblaster Audigy 2 A7 Commercial 7.07
Re: Way to blend between an ent_animate call and ent_bonerotate? [Re: silencer] #259136
04/04/09 10:01
04/04/09 10:01
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
you don't need to reset whole scene, you just need to rotate that bone, no?


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)

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