Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Texture Flickering

Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
06-11-2008 08:37
HIyas Everyone,

I'm trying to get a get "flicker" effect for a texture on the face of a prim. I've tried different approaches using while loops with llSetAlpha and llSleep. But I either have it going too fast (looks like just a constant Alpha of 0.5) or too slow. Any help would be greatly appreciated. :-)
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
06-11-2008 08:44
since timers and setalpha calls are handled server side by the script engine, it would probably be hard to get anything really consistent, you might have more luck putting together a texture of several sprites, possibly some alpha frames, and using llSetTextureAnimation so that the clients will render it.. like an animated gif with some built-in flicker?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
06-11-2008 08:55
The texture animation idea is a good one. You could try random periods between alpha/color/light changes too; that can look pretty flickery. Something like a random period of 0.8-1.5 seconds, followed by a "flicker" of 0.2 seconds (maybe as fast as script delay will allow), and then repeat.
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
06-11-2008 11:03
It does seem that llSetTextureAnimation is the way to go. I've tried it with the different flags with different speeds, starts, and lengths. The best I get is a small flicker every few seconds. Still trying. :-)
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
06-11-2008 16:23
Okies... had to create new textures with some alpha frames. Adjusted the settings on llSetTextureAnimation and that seemed to do what I was looking for. Thanx for the help! :-)