Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetTextureAnim - Problem

Nerolus Mosienko
Registered User
Join date: 3 Aug 2006
Posts: 145
09-19-2008 19:59
Hello!

So, I've got a sculptie I've created with the following script in it:


CODE

default
{
state_entry()
{
llSetTextureAnim( ANIM_ON|LOOP|SMOOTH, ALL_SIDES, 0, 0, 0, 0, 0.15 );
}
}


The texture I have on it is a 512x512 texture with alpha. It's drops of water. I've got it all set up so it looks like the water is flowing down the side. With the script above, it looks great....

BUT...

Most of the time when I TP out, or log in, the texture is flowing the opposite direction :( The problem corrects itself when I right click on it and make a copy, or click on the sculptie with the texture selection tool. This is VERY annoying. The sculptie at hand is actually going OVER a sculptie of the same type. I'm having a fountain with water flowing down the sides, right in the middle of the "town square" in my sim.

Any suggestions on how to fix this problem would be GREATLY appreciated! I'm completely stumped, and not that great at scripting.
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
09-20-2008 07:00
Amin smooth does this to all my normal uses of texture too, when i change the repeat in texture, if the texture is set to repeats of 1.00 then the problem doesn't occur, so if your using a repeat of 2.00 and 1.00 you could change the texture to match this and then use the default repeat of 1.00 and 1.00. Maybe?
_____________________
Nerolus Mosienko
Registered User
Join date: 3 Aug 2006
Posts: 145
09-20-2008 15:31
I believe I've fixed it! Everything except for the last set of numbers (speed/direction) was set to 0. I've now changed it to:
CODE

llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,1,1,1.0, 1,0.22);


Thanks for the help! I think this problem has been solved :)