Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetTextureAnim - with rotated and/or repeated texture

Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
04-11-2007 19:23
i seem unable to get llSetTextureAnim() to work when i rotate the texture (as in the RotationDegress selection in the Textures tab. i am not trying to get texture to spin). i am trying to get water to run 90 degress diff in the texture (yes, i know how to rotate the bleeping prim). it always flows in the same direction relative to the texture.

also when i use a Horiz or Vert Repeats per Face. the minute the script with llSetTextureAnim() starts, the texture reverts to 1/1 repeats.

and i was amazed to find that search of the fora for llSetTextureAnim yields nothing. is forum search as broken as sl is today?
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
04-12-2007 08:55
There are definite and rather chafing limits to what you can do in a texture animation. Sometimes the only solution to your problem is to rotate the texture outside of SL and reupload it. As to the texture repeats... llSetTextureAnimation uses texture repeats and offsets to carry out its animations. So if you have an animation with two horizontal frames and one vertical frame, then it'll set the repeats to 0.5, 1.0. That means that it's always going to blow away any repeat values you had, and it also means that if you want more than one repeat visible at a time, you're SOL.
SunenRec Ayoob
Registered User
Join date: 29 Dec 2004
Posts: 61
Fix for texture anim scripts and texture scaling
04-12-2007 19:34
this may help

/8/b6/91633/1.html

the free script mentioned is still available in Hera, though the exact location may have changed... just look around I'm sure you'll find it :)
Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
04-12-2007 21:05
From: SunenRec Ayoob
this may help
/8/b6/91633/1.html
the free script mentioned is still available in Hera, though the exact location may have changed... just look around I'm sure you'll find it :)
i have looked around hera a lot, clicked every prim in the river etc., and can not find. further clue would be appreciated.
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
04-13-2007 08:57
Your "fix for the bug" is a bug itself, SunenRec... I really don't think you can expect that it'll work that way forever. The system is designed to obliterate your texture settings, and I think it's only a bug that's allowing you to tweak them and have them stick. This looks like the kind of thing LL will fix without even realizing they've fixed it one day, and suddenly everything that uses your workaround will stop working.

When it comes right down to it, the fact that texture settings are obliterated by a llSetTextureAnim call is the way the system is designed to work, not a bug. It's a shortcoming of the design that prevents us from having a reliable way to do what you're doing by changing the texture settings on the prim after calling llSetTextureAnim.
SunenRec Ayoob
Registered User
Join date: 29 Dec 2004
Posts: 61
04-13-2007 13:01
lol well as to whether its a bug or not I guess you'll have to ask LL. :)

as for LL breaking the fix when they fix texture animation, essentially all the fix is doing is resetting the repeats to what they were originally before llSetTextureAnim reset them, so once the texture anim command stops resetting the repeats it will pretty much do nothing so its unlikely to break content in the future, as is an empty timer event.


Anyway the script is still available in Hera free of charge for anyone that wants it.

Ive sent u a LM in-world Espresso but for reference the SLurl is

http://slurl.com/secondlife/Hera/151/38/33

Sun.