Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Refresh multiple textures or trick the cache

Wheel Fizz
Registered User
Join date: 26 May 2005
Posts: 36
08-09-2005 05:23
I am making an object with 14 animated textures (don't worry none are bigger than 14kb :) ).I need to switch between them at certain intervals which works fine if the texture has been loaded into the cache in the last 10-15 seconds,but if not there is the tell tale rez blur even with such a miniscule texture. I need to keep one texture for longer sometimes though and am wondering if there is a way to trick the cache into keeping them all loaded so i can switch between them without rez blur.

One way I tried whch was suggested was to load all the textures onto seperate prims instead of just one and call llSetLinkAlpha to switch just the visibility on and off.
This works but throws up a previous bug I had of occasionally showing all the frames of the animated texture for a microsecond as it switches between tetures.Now if only I could get both bugs at once ...and llSquashSelection :/ :)
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-09-2005 05:47
If you know what the next texture is going to be always you can load it on a hidden face maybe? Even if it's a 5% hollow? That avoids the blur nearly always, because the texture is already loaded even though you can't see it.
Wheel Fizz
Registered User
Join date: 26 May 2005
Posts: 36
08-09-2005 06:07
Its not prescripted unfortuately,my thing relies on player inputs....but you made me think of trying something thanks :)
Maybe i need a hybrid of the two approaches,and your hollow prim tip will cut my prim use in half...


EDIT// Update....Working for now :)....So I was getting bored with the scripting changes and thought about tweaking the object using the edit menu instead .Changed it to Phantom nope then went to Texture settings set it to Shiny omg it worked.Saved it re rezzed it still works cool.Turned off Shiny still works err...Saved it re rezzed it still works mmm .So switching Shiny on and off fixes it for now...go figure :/....so the moral of the story is click all the buttons whatever they do anyway :)