|
AnCuDubh Docherty
Registered User
Join date: 7 May 2007
Posts: 9
|
04-22-2008 05:08
Can tex on internal face of cut hollow cylinder be set by script? That is to say I can find the Face numbers on a cut hollow cylinder but when I try to set the texture via a script the wrong face gets textured. I have tried all the face numbers but don't get it? Am I missing something here ? 
|
|
Shifting Dreamscape
Always questioning ...
Join date: 12 Dec 2007
Posts: 266
|
04-22-2008 05:45
Haven't tried that yet but youshould be able to. How are you finding the face number? One thing I do is have a series of textures that are white with a number. Then in code I set to all the available faces to see which face(s) is/are the one(s) I want: {php} for (x = 0; x < 9; x++) { //Set the ID textures to the faces if (llGetTexture(x) != "00000000-0000-0000-0000-000000000000"  { llSetTexture(llList2String(ID_TEXTS, x), x); llSetColor(WHITE, x); } } {php} ID_TEXTS is a list of the numbered textures and the check for the 0... texture is to see if the face is not visible.
|
|
AnCuDubh Docherty
Registered User
Join date: 7 May 2007
Posts: 9
|
TY Shifting Dreamscape
04-22-2008 06:32
I am finding the face numbers using Cmd-Alt-Shift-T and this is actually for an adaptation of your nice window tinting script. Will try that - thanks!
|
|
Shifting Dreamscape
Always questioning ...
Join date: 12 Dec 2007
Posts: 266
|
04-22-2008 06:58
Let me know how it comes out. As I mentioned in another thread, I have updated that script since then. The new version trys to make setup easier, uses linked messages so no scripts are needed in the windows, and controls who can command the tint. Still in Beta but if you would like a copy of the working version feel free to IM me in world.
|
|
Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
|
04-22-2008 10:19
Page of interest on the wiki for this is: it explains how the facenumbers are related to the different prim shapes and hollow and/or cut! Shyan
|
|
AnCuDubh Docherty
Registered User
Join date: 7 May 2007
Posts: 9
|
ah ha !
04-23-2008 02:00
Ok - TY Shifting - the little set texture list thing works a treat! I can see how the face numbers change as a prim is cut/hollowed and can then change the integer OUT_SIDE / IN_SIDE to match my needs. All of this is because I wanted to use both inward and outward curving windows in a build. The inward ones were driving me nutz - mostly because I now know that the cylinder inside tex is rotated by default, which made it harder to firgure out. I also am going to change the 0% texture so that when set to 0 the original glass tex is used then as the tint goes up to 100 make the tex full black. Cylinder Vs Tube ? Why did I not just use a cut tube instead - frankly I forgot there was one!  Anyway the same problem exists in finding the face and as a curiosity the same 'shape' made with either cylinder or tube has both different face order and face rotations. And TY Shyan the wiki link is very useful !  P.S. Shifting I would like to see the newer version of your rather good window tinting script so you might get an IM.
|