Jump to content

Texture animation on multiple sides of a prim


Rubberene
 Share

You are about to reply to a thread that has been inactive for 3407 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am trying to make the textures rotate on sides 0,1&3 of a cube. I put the following script in it to do so:

default
{
    state_entry()
    {
         llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 0,1,1,0, TWO_PI, -PI);
         llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 1,1,1,0, TWO_PI, -PI);
         llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 3,1,1,0, TWO_PI, -PI);

    }

  
}

 Result: only side 3 rotates. If I comment out the call for side 3, side 1 rotates, and so on. What am I doing wrong?

Link to comment
Share on other sites

   You can only have one texture animation on a prim. Calling llSetTextureAnim more than once on a prim will reset the existing animation.

   I think you're only able to animate textures on one face or all faces at once. A way to make this work for you would be to set the animation to ALL_SIDES, and then set the faces you didn't want animated to a different texture, one that won't appear to animate, such as a blank color.

 

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

What you need to do is make your own cube from 6 prims.
And use 6 textures and 6 scripts, one of each per face. (Or in your case 3)
That's how i did it.
To create textures and scripts you can visit http://www.mrmonke.net/anigifTolsl

It helps you make a tiled texture and also generates a script for that texture.

I am still waiting for 4k textures so i can make some nice long animations.
Or perhaps webm support. LL? :)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3407 days.

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
 Share

×
×
  • Create New...