Valanice Posted May 24, 2012 Share Posted May 24, 2012 I have been working with the changing of texture scripts where you do animated, or moving a textures offset.However everything I try the texture is jerky. I am trying to make a texture with a glow that travels the length of a an object.I have seen the effect around in clubs and even on prims and mesh'sdoes anyone know how this is working so smoothly? and whay texture offsetting is not? Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 24, 2012 Share Posted May 24, 2012 Are you using llSetTextureAnim ? You can't make glow move. It's all or nothing. But you can create your texture with a glow-like effect (highlights, etc.) baked into it and move the whole texture. Link to comment Share on other sites More sharing options...
Valanice Posted May 24, 2012 Author Share Posted May 24, 2012 yes, tried the llSetTextureAnim etc. for some reason mine still come out ... stuttering. maybe i need to play with it more and see if i can find the sweet spot Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 24, 2012 Share Posted May 24, 2012 { state_entry() { llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,ALL_SIDES,"e3e654ba-3c1e-fc97-fb1c-ce6f889652e0",<1.0,1.0,1.0>,ZERO_VECTOR,0.0,PRIM_GLOW,ALL_SIDES,0.02]); llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 1, 1, 1.0, 1.0, 0.1); }} This one looks smooth. Try your texture in it. 1 Link to comment Share on other sites More sharing options...
Valanice Posted May 24, 2012 Author Share Posted May 24, 2012 llSetLinkPrimitiveParams(....What is the difference between Params and ParamsFast? maybe this is where i am missing the connection Link to comment Share on other sites More sharing options...
Qie Niangao Posted May 24, 2012 Share Posted May 24, 2012 No, -Fast doesn't matter in this case; it only affects how long it takes to get to the next part of the code. The texture animation, once set, doesn't even run in the script -- you can remove the script and the texture will continue to scroll. If it doesn't appear smooth, there's something wrong with the parameters to llSetTextureAnim() -- or your graphics card is really overwhelmed drawing other stuff in the scene. I will just mention that it's possible that the smoothly moving "glow" that you've seen elsewhere is a particle instead of an animated prim texture. (If you can select it, however, it's not a particle.) Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 24, 2012 Share Posted May 24, 2012 As Qie says, SLPPF doesn't make any difference in this case. The only reason I used it at all was for compactness. I wanted to provide a demo with a texture and glow hard-coded into it. I could have just as easily said, "Drop the one-line llSetTextureAnim code into a prim with your favorite texture on it and set the glow to 0.02." The important part is the llSetTextureAnim. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now