2 registered members (alibaba, vicknick),
1,492
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
silencer
OP
Member
|
OP
Member
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: the_clown]
#259064
04/03/09 17:17
04/03/09 17:17
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
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
Senior Expert
|
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
Senior Member
|
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)"
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
Senior Expert
|
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
silencer
OP
Member
|
OP
Member
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
Senior Member
|
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)
|
|
|
|