Don't click here unless you want to be banned.

LSL Wiki : side

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl411.us.archive.org

Side


A side is one face of a prim. Each side has a color, opacity, and texture.

A prim's number of sides can be determined with llGetNumberOfSides and affects all sides with the constant ALL_SIDES. To affect multiple sides (but not using ALL_SIDES), set each prim face individually by making more calls to the texture function (may not work depending on function).

There are some quirks with this: for example, the inside of a hollowed cube counts as one side (even though there are really 4 sides).

One way to get a side number is: enable the debug menu (if it is not displayed to the right of the "Help" menu, press Ctrl+Alt+D). Use the "Select Texture" edit tool, select the side, and press Ctrl+Shift+Alt+T. This will cause SL to show some basic texture information, including the side number.

Texturing sides so they look the same (particularly in hollowed prims) can be frustrating.

Functions

Besides the texture functions, there are other side-specific ones:

llGetAlpha
llSetAlpha
llGetColor
llSetColor
llSetLinkAlpha
llSetLinkColor
llGetNumberOfSides
llGetPrimitiveParams
llSetPrimitiveParams
llDetectedTouchFace


Primitive Side Numbering

On an axis-aligned box:
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - bottom

Hollow:
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - hollow
6 - bottom

Cut:
"begin" starts at lesser x and y, cut increases counter-clockwise
"end" starts at lesser x and y, cut increases clockwise

0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - bottom
6 - cut begin
7 - cut end

Hollow-Cut:
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - hollow
6 - bottom
7 - cut begin
8 - cut end



Primitive
Comments [Hide comments/form]
Sphere:

In order, various elements optional depending on settings:

- Cut End, if cut is other than (0.0,1.0)
- Outside
- Hollow, if hollow other than 0.0
- Cut Begin, if cut is other than(0.0,1.0)
- Dimple Begin, if dimple is other than (0.0,1.0)
- Dimple End, if dimple is other than (0.0,1.0)

Cylinder

In order, various elements optinal depening on settings:

- Top
- Side
- Hollow, if hollow is other than 0.0
- Bottom
- Cut Begin, if cut is other than (0.0,1.0)
- Cut End, if cut is other than (0.0,1.0)
-- DavanCamus (2005-12-31 16:04:18)
Attach a comment to this page: