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
Building Identify_Faces  

Identify_Faces

Identify Faces uses this texture for Open SIm users. SL users can use the script as-is.

Category: Building
By : Jake Cellardoor
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Identify_Faces
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Identify_Faces_1.lsl
1
2
3 display( integer value, integer face )
4 {
5 float cell_width = 0.25; // in this example the width
6 float cell_height = 0.25; // and height are the same
7
8 llSetTexture("d57a4d7d-5cd4-9f12-56a9-a92a68cfc13a", face );
9 llScaleTexture( cell_width, cell_height, face );
10 if( value == 0 )
11 llOffsetTexture( -1.5 * cell_width, 1.5 * cell_height, face );
12 else if( value == 1 )
13 llOffsetTexture( -0.5 * cell_width, 1.5 * cell_height, face );
14 else if( value == 2 )
15 llOffsetTexture( 0.5 * cell_width, 1.5 * cell_height, face );
16 else if( value == 3 )
17 llOffsetTexture( 1.5 * cell_width, 1.5 * cell_height, face );
18 else if( value == 4 )
19 llOffsetTexture( -1.5 * cell_width, 0.5 * cell_height, face );
20 else if( value == 5 )
21 llOffsetTexture( -0.5 * cell_width, 0.5 * cell_height, face );
22 else if( value == 6 )
23 llOffsetTexture( 0.5 * cell_width, 0.5 * cell_height, face );
24 else if( value == 7 )
25 llOffsetTexture( 1.5 * cell_width, 0.5 * cell_height, face );
26 else if( value == 8 )
27 llOffsetTexture( -1.5 * cell_width, -0.5 * cell_height, face );
28 else if( value == 9 )
29 llOffsetTexture( -0.5 * cell_width, -0.5 * cell_height, face );
30 else if( value == 10 )
31 llOffsetTexture( 0.5 * cell_width, -0.5 * cell_height, face );
32 else if( value == 11 )
33 llOffsetTexture( 1.5 * cell_width, -0.5 * cell_height, face );
34 else if( value == 12 )
35 llOffsetTexture( -1.5 * cell_width, -1.5 * cell_height, face );
36 else if( value == 13 )
37 llOffsetTexture( -0.5 * cell_width, -1.5 * cell_height, face );
38 else if( value == 14 )
39 llOffsetTexture( 0.5 * cell_width, -1.5 * cell_height, face );
40 else if( value == 15 )
41 llOffsetTexture( 1.5 * cell_width, -1.5 * cell_height, face );
42 }
43
44 default
45 {
47 {
48 integer i;
49
50 for ( i = 0; i < llGetNumberOfSides(); i++ )
51 display( i, i );
52 }
53
54 changed( integer changed_flag )
55 {
56 if( (changed_flag == CHANGED_SHAPE) ||
57 (changed_flag == CHANGED_SCALE) )
59 }
60 }
61
62 // END //

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