Texture animation script question
|
Sony Swords
Linux Ubuntu 8.04 LTS
Join date: 17 Jan 2009
Posts: 176
|
08-22-2009 12:17
The script should split the texture shown above (original is 1024x1024) in 16 parts (64x64)
Animation starts at bottom row, image number 1 When image 16 is shown - it should animate backwards to image one. Looped.
Not a new idea but cant remeber how its done. Thx
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
08-22-2009 12:23
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
Sony Swords
Linux Ubuntu 8.04 LTS
Join date: 17 Jan 2009
Posts: 176
|
08-22-2009 14:10
Thx Jesse I dividend the texture in 16 cells, 4 across and 4 down and they flip through them. So I can manage the image loops from image 1 to image 16 # From: someone
default { state_entry() { llSetTextureAnim( ANIM_ON | LOOP, ALL_SIDES, 4, 4, 0, 16, 4.4 );;
} }
BUT the trouble is. When Image 16 is shown it starts from image 1 again which makes the animation looks un-smooth and simply wrong. I cant see a way to make it go from 1 to 16 and then backwards. Any idea?
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
08-22-2009 14:20
So what does it do if you ping-pong? default { state_entry() { llSetTextureAnim( ANIM_ON | PING_PONG |LOOP, ALL_SIDES, 4, 4, 0, 16, 4.4 );;
} }
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Sony Swords
Linux Ubuntu 8.04 LTS
Join date: 17 Jan 2009
Posts: 176
|
08-22-2009 15:02
From: Rolig Loon So what does it do if you ping-pong? default { state_entry() { llSetTextureAnim( ANIM_ON | PING_PONG |LOOP, ALL_SIDES, 4, 4, 0, 16, 4.4 );;
} }
Visually, its simply the same effect. Well, I think the only way is to remodel the texture. I dont see a way to make this with the script
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
08-22-2009 15:14
llSetTextureAnim(ANIM_ON|LOOP,ALL_SIDES,4,4,16.0,16.0,-4.4);
|
Sony Swords
Linux Ubuntu 8.04 LTS
Join date: 17 Jan 2009
Posts: 176
|
08-22-2009 15:37
From: Talarus Luan llSetTextureAnim(ANIM_ON|LOOP,ALL_SIDES,4,4,16.0,16.0,-4.4); thx Talarus but here we have the same problem. The animation starts looping anywhere. It would be really very helpful if a script could manage this in any way to keep the Photoshop work as simple as possible. I do know I could make it with 32 cells. I will make an image with numbered "cells" from 1 to 16. If someone wants to have it for testing I will send U the texture. Just send me an IM inworld or post it here. THX
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
08-22-2009 15:41
From: Sony Swords thx Talarus but here we have the same problem. The animation starts looping anywhere.
It would be really very helpful if a script could manage this in any way to keep the Photoshop work as simple as possible. I do know I could make it with 32 cells.
I will make an image with numbered "cells" from 1 to 16. If someone wants to have it for testing I will send U the texture. Just send me an IM inworld or post it here.
THX *shrug* It does what you asked for in the first post. Always starts at the last cell for me. What were you wanting it to do? ETA- If you want it to animate backwards to panel 1, just change LOOP to PING_PONG.
|
Sony Swords
Linux Ubuntu 8.04 LTS
Join date: 17 Jan 2009
Posts: 176
|
08-22-2009 16:35
From: someone default { state_entry() { llSetTextureAnim( ANIM_ON |PING_PONG|LOOP,ALL_SIDES,4,4,0,0,5);
} }
Finally found the right setting! Thx
|