|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
02-12-2008 02:50
Hi, I'm using llSetTextureAnim to animate the water textures on a fountain I've made. So far so good, but looking closely there seems to be a jump in the animation every few seconds ... a couple of seconds on a torus, maybe every 7 of 8 seconds or so on a flat surface. The water texture I'm using is not perfectly seamless, but the seam is not very noticeable when tiled on a prim. Any ideas? Thanks in advance!
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-12-2008 07:27
might help to post the call you're using
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
02-12-2008 12:14
For the flat prim, the call is: llSetTextureAnim(ANIM_ON | SMOOTH | LOOP | ROTATE, ALL_SIDES,1,1,0.0, 1,0.05);
For the torus: llSetTextureAnim(ANIM_ON | SMOOTH | LOOP | ROTATE, ALL_SIDES,0,0,0.0, 1,-0.2);
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
02-12-2008 12:15
Probably need to make sure you include the LOOP constant in the flags, or maybe SMOOTH. Depends on your texture and how you are doing it.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
02-12-2008 12:19
ROTATE on a flat prim won't look like it is flowing... Even still, you are rotating from 0.0 to 1.0 radians, which is less than 1/6th of the way around. Use this instead: llSetTextureAnim(ANIM_ON | SMOOTH | LOOP | ROTATE, ALL_SIDES,1,1,0.0, TWO_PI,0.05); From: The Wiki * length specifies the total amount the texture should rotate, in radians. Eg. setting length to TWO_PI will animate a full, 360-degree rotation. Setting length to less than TWO_PI will cause the texture to rotate the amount specified, then jump back to it's beginning rotation.
|
|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
02-12-2008 12:49
Ah, that explains it! So those "start" and "length" floats specify radians! The wiki doesn't exactly elaborate on that lol. Thanks a lot!
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
02-12-2008 13:39
Well, they specify radians in ROTATE mode.  They specify frames in normal mode, and scale in SCALE mode.
|