|
|
Re: Easy animations
[Re: 3run]
#326600
06/01/10 19:42
06/01/10 19:42
|
Joined: Jan 2003
Posts: 4,615 Cambridge
Joey
Expert
|
Expert
Joined: Jan 2003
Posts: 4,615
Cambridge
|
you can do that yourself, blending between animations i mean. but if you need more than two different scenes, you have a problem: As entity animation can only blend between two frames, not between three or more, ent_blend can not interpolate between two already-interpolated frames. Therefore the source and target frames are not interpolated, but 'snapped' to the next full frame number. For complex blending, use ent_blendpose. you can overcome this by moving to the next full frame manually, then to the next scene. this can look ugly, though.
|
|
|
Re: Easy animations
[Re: Joey]
#326611
06/01/10 20:03
06/01/10 20:03
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Please ignore that meaningless ramble earlier, I forgot this was "the Future" thread for a minute...
So to understand what you want, as there seems to be some conflict. You want to add a "lerp" effect to ent_animate (or a new function with lerp installed). Is this lerp intended to :- A> 'lerp' between frames of ONLY THE SAME scene? or B> 'lerp' between frames of ANY scene?(ie if the 'current' scene is different to the target scene)
Which is it? It looks like you mean "B" to me, but I want to clarify... "B" does sound useful IMHO...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Easy animations
[Re: EvilSOB]
#326627
06/01/10 20:53
06/01/10 20:53
|
Joined: May 2009
Posts: 5,377 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,377
Caucasus
|
Sorry again for my bad English guys, all I want is good looking and easy to make animations with lite-c for every one, to make that part of programming much easier and faster. I don't really like the way usual ent_animate works. There is no smooth blending between animations at all, animations just change fast, and they looks terrible, but it is easy to use (ent_animate I mean), so the thing I want is smooth blending between any of animations by using just ent_animate (as simple and easy as we use the usual one now) with one more added parameter like this: ent_animate(my,"walk",walk_,ANM_CYCLE,0.5); So it will be really useful to my mind to make good looking, smooth and professional animations easy and fast like that. Just a simple example how I want it to work:
function animate_()
{
var walk_;
var idle_;
while(1)
{
if(key_w)
{
ent_animate(my,"walk",walk_,ANM_CYCLE,0.5);
walk_ += 10 * time_step;
// so if we play with "0.5" we can get the speed of blending from walk to stand
}
else
{
ent_animate(my,"idle",idle_,ANM_CYCLE,0.5);
idle_ += 2 * time_step;
// so if we play with "0.5" we can get the speed of blending from stand to walk
}
wait(1);
}
}
As you can see very easy and fast to do, but result will looks 1000 times better than just ent_animate.
|
|
|
Re: Easy animations
[Re: 3run]
#326746
06/02/10 17:36
06/02/10 17:36
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Im still here, but I want to do asome testing with ent_animate before further comment. Unfortunately, Im busy on a shader ATM, and havent had time to test ent_animate...
The way the manual reads, it already DOES interpolate between frames. I just want to double check it, so I know what Im saying...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|