Holocluck Henly
Holographic Clucktor
Join date: 11 Apr 2008
Posts: 552
|
09-06-2009 12:30
I'm using this after default state entry:
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 0, 10, 1, 0, 2);
This isnt working.
First, it's animating only when I click and select the prim. Second, it's playing in steps rather than smoothly moving the texture at that time.
Am I totally barking up the wrong tree here? I just want the texture to move vertically and "loop" so it is in one continuous direction.
Thanks!
_____________________
 Photostream: www.flickr.com/photos/holocluck Holocluck's Henhouse: New Eyes on the Grid: holocluck@blogspot
|
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
|
09-06-2009 12:43
There's a demo 'smooth' animation script in the inventory Library that I rely on for water effects and such. (^_^)y
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
09-06-2009 13:07
From: LSL wiki It can be used for scrolling smoothly from one end of a texture to another. To do this set Y frames to 1, and set X frames to a value which sets the proportion of the texture which will be seen at any one time. To avoid over-running the end of the texture and repeating at the end of the loop, set length to one less than the number of X frames and start to zero.
- for smooth scrolling in the vertical direction on a prim, simply use the Texure tab on the Edit window to rotate the texture +/- 90 degrees, and the animation will follow. For example: llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 10, 1, 0, 9, 2) might work better, once you rotate the texture. (I just picked up the "10" from your command; the best value to use is of course dependent on the texture and the prim). .
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
09-06-2009 15:26
On a hollow object, how do you get the scale of the animated texture inside to match the scale of the animated texture outside?
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.
I can be found on the web by searching for "SuezanneC Baskerville", or go to
http://www.google.com/profiles/suezanne
-
http://lindenlab.tribe.net/ created on 11/19/03.
Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan
-
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
09-06-2009 15:31
From: SuezanneC Baskerville On a hollow object, how do you get the scale of the animated texture inside to match the scale of the animated texture outside? Use two textures. You can't change the overall scale of an animated texture. 
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-06-2009 19:53
From: Argent Stonecutter Use two textures. You can't change the overall scale of an animated texture.  for smooth anims, set the repeats the way you want them in the edit window. then for the X and Y sizes in the script, set them to 0, and it should retain the repeats, offsets don't work though
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
formula for hollow texture repeats/offsets
09-07-2009 06:03
there is a hidden section on all hollows (except spheres/torii IIRC) this formula should give you the correct settings for repeats/offsets
100 / Hollow * desiredRepeats = HorizontalRepeats
HorizontalOffset = ((HorizontalRepeats - desiredRepeats ) + (desiredRepeats % 2 !=0)) / 2
(yes I know the offsets are worthless in this case, but someone is bound to ask)
_____________________
| | . "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... | - 
|