|
DukeTogo Negulesco
Registered User
Join date: 18 Aug 2007
Posts: 6
|
03-17-2008 11:58
Hi all
I created Large BVH file. I divide from Large BVH file to 5 small BVH files , Because viewer has limitation that upload size is smaller 60000B. I was success to moving small BVH file each other, but I can not understand how to continuous moving animation of 5 small BVH files.
I try test script, but each animation run gesture from same position. It becomes the scattered animations.
How do i run to sequential gesture of 5 small BVH file divided from Large BVH file?
I need script sample.
Please teach me.
DukeTogo
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
03-17-2008 13:11
I can only think of a couple ways to do this. One is to use a timer loop to keep checking what animations are playing using llGetAnimationList, this function returns a list of all animations playing on the avatar, as keys. You will need to know the key (UUID) of the animation playing for comparison. When you see the animation is no longer playing, start the next, and again start polling. The other way would be to measure exactly how long each section plays, and start one after waiting the appropriate time for the first to finish. But precise timing would be difficult. Either way is a bit of a hack, Sadly there is no sure way to tell when a particular animation has completed playing. Perhaps some kind soul will turn my words into some code for you, I'm afraid I must get back to my RL job 
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
03-18-2008 00:42
For each and every animation the difference between the first and second frame determines which points are locked and which are not. Also, the first frame of an animation is NEVER played by SL.
If you just split up your animation you probably forgot about that.
As for playing back the animation the trick is to start the next animation, then wait a short time (0.1 to 0.2 seconds) and then stop the previous animation. That should give you a somewhat smooth transition between the two animations.
Like..
llStartAnimation(animation1); llSleep(x); llStartAnimation(animation2); llSleep(0.2); llStopAnimation(animation1); llSleep(y); llStartAnimation(animation3); llSleep(0.2); llStopAnimation(animation2); ...
|
|
DukeTogo Negulesco
Registered User
Join date: 18 Aug 2007
Posts: 6
|
03-18-2008 10:18
thank you good advice.
I tried following scrips, I understood timing is too difficult. I can not run continuous animation. I think that reason of an awkward animation is different between anims2 of starting position and anims1 of ending position.
If I can get anims1 of ending position of avatar, avatar teleport to anims2 of starting position and start anims2. But avatar position is not update when running anims1.
Please teach me cool idea.
llStartAnimation(anims1); llSleep(3); llStartAnimation(anims2); llSleep(0.2); llStopAnimation(anims1); llSleep(3); llStartAnimation(anims3); llSleep(0.2); llStopAnimation(anims2);
|