|
Maya Remblai
The one with pink hair.
Join date: 25 Mar 2006
Posts: 434
|
05-21-2009 11:43
I've been playing around with water effects (found a cool tool that makes animated caustics!) and started noticing that if I set a texture to ROTATE, it rotates fine for a while and then snaps to what I'm guessing is its start position. I've never seen this happen before on a rotating texture. Is this some new bug? I'm running 1.22, and this is the script:
default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | LOOP|ROTATE, ALL_SIDES,1,1,1, 1,.1); }
}
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
05-21-2009 15:22
According to the wiki, http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetTextureAnim From: someone start and length specify how the texture is to rotate: start specifies the beginning rotation of the texture, in radians. Eg. setting start to PI will cause the animation to begin with the texture rotated 90 degrees from its default orientation.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. Try default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | LOOP|ROTATE, ALL_SIDES,1,1,0.0, TWO_PI,.1); } }
|
|
Maya Remblai
The one with pink hair.
Join date: 25 Mar 2006
Posts: 434
|
05-21-2009 22:44
Oh yeah, why didn't I think of that, I saw that on the wiki! Thanks 
|