Jump to content
RefugeStore

Texture Repeats in Texture Animation Script

Recommended Posts

Hey guys.  I don't know really anything about scripting, so I hope someone can help me.  I've got a basic cylinder that I want to animate face 1 (just simple smooth rotation animation).  This isn't the problem as the simple script available works just fine, but I would like to put some repeats into the texture.  How can I change this script so I can make repeats in the horizontal direction?  Is it possible?  Thank you!  -Iseul

default
{
    state_entry()
    {
        llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 4,1,1,1.0, 1,0.01);
    }
}

 

Share this post


Link to post
Share on other sites

Much as I hate to disagree with the wiki, in this case it's a little misleading.

If you change the value of sizex and sizey to 0 in your llSetTextureAnim command, you'll find that you can then change the repeats on the texture to whatever you want, like so...

textureanim.gif.375f32cb9e59ee1a59aead97c52b355c.gif

 

default
{
    state_entry()
    {
        llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,0,0,0,1.0);
    }
}

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
5 hours ago, Fluffy Sharkfin said:

Much as I hate to disagree with the wiki, in this case it's a little misleading.

If you change the value of sizex and sizey to 0 in your llSetTextureAnim command, you'll find that you can then change the repeats on the texture to whatever you want, like so...

textureanim.gif.375f32cb9e59ee1a59aead97c52b355c.gif

 


default
{
    state_entry()
    {
        llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,0,0,0,1.0);
    }
}

 

IIRC, doing that is a viewer anomaly and will not survive leaving the sim and coming back, relogging or the object leaving the interest list and returning.

Share this post


Link to post
Share on other sites
Posted (edited)
6 minutes ago, Lucia Nightfire said:

IIRC, doing that is a viewer anomaly and will not survive leaving the sim and coming back, relogging or the object leaving the interest list and returning.

Not even sure it valid for non LL viewers.

Edited by steph Arnott

Share this post


Link to post
Share on other sites
1 hour ago, Lucia Nightfire said:

IIRC, doing that is a viewer anomaly and will not survive leaving the sim and coming back, relogging or the object leaving the interest list and returning.

Interesting.  This used to be true of passive objects, but if the object was made active (by adding an empty timer event and llSetTimerEvent(99999999999.9) for example), the texture repeat settings would persist. 

However I just tested this and even without the active timer event the texture repeat settings persist when leaving and re-entering the region, relogging, taking the object to inventory and re-rezzing it, sending it to another avatar in a different region, etc.  In fact I can't seem to find a single instance in which the texture repeats are reset with either the LL default viewer or Firestorm.

Share this post


Link to post
Share on other sites
Posted (edited)
21 minutes ago, Fluffy Sharkfin said:

Interesting.  This used to be true of passive objects, but if the object was made active (by adding an empty timer event and llSetTimerEvent(99999999999.9) for example), the texture repeat settings would persist. 

However I just tested this and even without the active timer event the texture repeat settings persist when leaving and re-entering the region, relogging, taking the object to inventory and re-rezzing it, sending it to another avatar in a different region, etc.  In fact I can't seem to find a single instance in which the texture repeats are reset with either the LL default viewer or Firestorm.

New one on me. I wonder if another account holder on a different computer sees the same results. That code is client side so be interesting if other clients see the same as you do. I suspect it is only you that sees it.

Edited by steph Arnott

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.


×
×
  • Create New...