Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Texturing with SL scripts

Troy Vogel
Marginal Prof. of ZOMG!
Join date: 16 Aug 2004
Posts: 478
01-30-2006 11:40
I keep looking around inside the LSL scripting guide and can not find the other values for the sides of a primitive. The only one I keep finding is ALL_SIDES.

What are the code constants used for indicating individual sides of a prim. Are they numbered a certain way?

I need to change the texture of a torus that's cut in half so it looks like a half-donut. The outside texture needs to remain mostly the same whereas the cut faces need to change texture animation direction with certain intervals to simulate water that's flowing one way for a while then to the other way etc (to and fro).

Could someone shed some light to the elusive primitive side codes?

TIA

Troy
_____________________
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-30-2006 11:58
The wiki page for face/side numbering:

http://secondlife.com/badgeo/wakka.php?wakka=side

It might not cover the specific case you need, in which case you might have to resort to trial and error.
Troy Vogel
Marginal Prof. of ZOMG!
Join date: 16 Aug 2004
Posts: 478
01-30-2006 12:02
Thanks. This will work for me. :-)

So Wiki is pretty much the go-to place for this kind of questions huh. I am fairly new to scripting in SL so I have not used the wiki so far. But from now on I will.

Thanks for the link again.

Troy
_____________________