Pamela Galli Posted January 25, 2016 Share Posted January 25, 2016 I have this script in a regular prim cylinder and the textures flows downwards, as I want it to . But I made a mesh version of the cylinder and the script makes the texture flow sideways/horizontally. Is there some thing I could change the direction? I tried changing the texture rotation in the edit window but that had no effect. default{// state_entry() is an event handler, it executes// whenever a state is entered.state_entry(){// llSetTextureAnim() is a function that animates a texture on a face.llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,1,1,1.0, 1,0.25);// animate the script to scroll across all the faces.}} 1 Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 25, 2016 Share Posted January 25, 2016 No. Texture anim is horizontal, unless you rotate the prim itself. If you do that, you usually have to remake the texture in Photoshop, rotated so that it faces the right way as you view it.. Link to comment Share on other sites More sharing options...
Qie Niangao Posted January 25, 2016 Share Posted January 25, 2016 I tried changing the texture rotation in the edit window but that had no effect. Hmm. It's true that smooth texture animation always scrolls the texture horizontally in texture space (that is, toward positive U, for a constant V), but if you rotate the texture 90 degrees, that should result in it scrolling vertically across the face of the object (toward Y for a constant X). Ordinarily, I'd assume that's what you meant by "no effect" -- the texture itself is still scrolling horizontally-- but you also said that you had this same texture flowing "downwards" as desired on a regular cylinder, and you should be able to get that same texture to move the same direction whether the surface is a prim or a mesh. Is there any chance we're actually talking about two different textures, one on the prim and another on the mesh? Link to comment Share on other sites More sharing options...
steph Arnott Posted January 25, 2016 Share Posted January 25, 2016 As far as im aware on mesh Rolligs option is the only way. I would say tho the prim does not need to be rotated, that can be done in edit texture but mesh appears to be different, have no idea why, the mapping maybe? TYPO, i need to get my eyesight tested Link to comment Share on other sites More sharing options...
Pamela Galli Posted January 26, 2016 Author Share Posted January 26, 2016 I had rotated the texture, so I unrotated it, now it works! TY everyone for the advice! 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