Jump to content
Sign in to follow this  
Rubberene

Texture animation on multiple sides of a prim

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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

There is ONE llSetTextureAnim possible per prim. If you have more the last one is active.

So you have the choice of one face or all faces.

For 3 faces I only know a non script solution:

Make a mesh cube and set 3 sides to one mesh face or material or whatever you name it.

 

Share this post


Link to post
Share on other sites

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? :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...