paulie Femto
Into the dark
Join date: 13 Sep 2003
Posts: 1,098
|
11-21-2005 18:53
As I understand llSetTExtureAnim(), we aren't supposed to be able to use but one MODE (mask) at a time. You cannot combine a SMOOTH mask (sliding texture) with a frame-based animation, for example. And that seems to be correct. Sometimes.
When I use a SMOOTH mask, I'm in the habit of ignoring the parameters that specify number of frames, start frame, and end frame, because LSL ignores them. Except when it doesn't.
I've returned to my parcel to find SMOOTH animations also running as frame-based animations! Not only will a texture be sliding, it will be flipping frames based on the random numbers I've left in as frame parameters!
Yeah, I know it's bad coding practice to leave random numbers in the frame fields and just trust LSL to ignore those numbers. I should zero them out. But, hey! If LSL can mix MODES, why can't we? Why is the practice prohibited and only happens as a quirk?
_____________________
REUTERS on SL: "Thirty-five thousand people wearing their psyches on the outside and all the attendant unfettered freakishness that brings."
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
11-21-2005 19:32
after sides the next 2 numbers can control the hv repets per m on smooth, to tile or zoom so it does make a difference, a setting of 10,1 will smooth for somany frames then step back to the start 10,100 will make it jump a whole crapload 10,0 would be smooth tiled 10x with no jump
|
paulie Femto
Into the dark
Join date: 13 Sep 2003
Posts: 1,098
|
!
11-21-2005 20:17
Holy Cow, Osgeld! That's absolutely news to me! I've been over and over the SCRIPTING DOCUMENTATION and the SCRIPTING WEBSITE and I have seen *zero* mention of this behaviour! In fact, the SCRIPTING WEBSITE says: "ROTATE and SCALE modes interpret the parameters x_frames, y_frames, start, and length in a different way than a mode without them: ROTATE, SCALE or SMOOTH modes: x_frames and y_frames (the parameters after sides) are ignored, as they serve no purpose for these modes." So, this is undocumented behaviour! I love it! I shouldn't take advantage of it, because it's bad coding practice to rely on undocumented behaviour, but I love it! And sometimes, documentation is just wrong, or incomplete, ain't it?  Thanks!
_____________________
REUTERS on SL: "Thirty-five thousand people wearing their psyches on the outside and all the attendant unfettered freakishness that brings."
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
11-21-2005 20:19
its quite stable actually whats not stable is setting a smooth animation to 0,0 frames, this will allow you to manually set offsets, and repeats, altho it farts out the moment you leave the sim, untill you reset everything
|