Jump to content
Sign in to follow this  
Rutherford Beresford

Textures slow to load on revolving texture prim

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

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

Recommended Posts

I have four textures I want to alternate on side #4 of a prim... basically displaying the first texture for a second or so and moving to #2, then #3, and then #4, and then back to #1 over and over.  I basically just set up a script to do LLSetTexture using the UUID of the four textures and have them stacked one after the other in the script.  I tried to cut down "processing" resources as much as possible.  Initially, the textures take a minute or two to load, so I see a solid grey texture repeating over and over.  Eventually, all textures rez and they all display properly.  Then, after a little while, I get random gray "rezzing" textures again.

Is there some way to pre-load the textures or is there some better way of doing what I'm trying to do, or is this just something I have to put up with in SIMs that can be somewhat laggy?

Thank you!

Ford

Share this post


Link to post
Share on other sites

try pre-loading the next texture in the sequence by rezzing it on the back of the prim where it is not visable.

ie.

texture 1 on side 4

texture 2 on side 1

..

texture 2 on side 4

texture 3 on side 1

 

Share this post


Link to post
Share on other sites

Arrange 5 textures of 512x512 on a 1024x1024 texture so all 4 are on one texture.Then use llSetTextureAnimation to switch through the sequence of the 4 textures.

Of course you can use smaller ones if you don't need that size.

 

Share this post


Link to post
Share on other sites

One of the first LSL scripting challenges I tried years ago was a modification of the old Pre-Loading Slide Viewer that has since disappeared from the LSL wiki library.  I have changed it so many times since then that it only vaguely resembles the original.  I'll try to remember to post it here later today when I can get in world to grab a copy from my inventory.  Basically, though, it rotates each slide from its inventory from one blackened face of a cube to another until it finally appears on the one  face you have left un-blackened. By that time, it has been fully pre-loaded, so that it rezzes in perfect clarity.

Share this post


Link to post
Share on other sites

I'm surprised to find that there's no copy of Sendao Goodman's original preloading slide viewer in the usual public script libraries in SL.  At least I couldn't find one today, so I have posted my own version of it in the LSL Scripting Library, here in the forums >>> http://community.secondlife.com/t5/LSL-Library/Preloading-Slide-Viewer/td-p/1723417

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 2835 days.

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

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...