Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Texture Fade_Texture  

Fade_Texture

The script

Category: Texture
By : Nash Baldwin
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Fade_Texture
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Fade_Texture_1.lsl
1 // Call this from an event handler.
2 // Currently only fades the top.
3 // Set kSide to ALL_SIDES to fade all sides.
4 integer kSide = 0;
5
6 fade_in_and_out()
7 {
8 integer steps = 15;
9 float base = 0.85;
10 float delay = 1.0 / steps;
11 integer i;
12
13 // fade up
14 for (i = 0; i < steps; i++)
15 {
16 llSetAlpha(1.0 - llPow(base,i), kSide);
17 llSleep(delay);
18 }
19
20 llSetAlpha(1.0, kSide);
21 llSleep(4);
22
23 // fade out
24 for (i = 0; i < steps; i++)
25 {
26 llSetAlpha(llPow(base,i), kSide);
27 llSleep(delay);
28 }
29
30 llSetAlpha(0.0, kSide);
31 }
32
33
34
35 default
36 {
37
38 touch_start(integer total_number)
39 {
40 fade_in_and_out();
41 }
42 }

Back to the Best Free Tools in Second Life and OpenSim.