Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

texture or script

Poppytat Sodwind
Registered User
Join date: 29 Nov 2006
Posts: 52
04-11-2007 10:57
i am looking for a texture or a script for windows...

i am currently using an 'industrial' texture which is tinted red i would like to keep the red but be able to darken or lighten the windows when needed...for privacy, the only thing i have found is a window which goes from clear to black and ditches whatever texture is used...
does anyone know if what i am looking for is possible? and is anyone able to help me with this?

cheers

:)
Wilhelm Neumann
Runs with Crayons
Join date: 20 Apr 2006
Posts: 2,204
04-11-2007 11:05
if the script is editable you can change it to use a named texture etc. There should be info in the scripting forum but yeah you need a script that you can edit or a premade one.


The way it will operate is slightly different though but I am pretty sure there are freebies floating around for this.

seach the scripting forums :) if you come up empty ask someone may have one floating around :)
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
04-11-2007 12:29
There's three fairly simple ways to do what you want. All involve scripts, and one involves textures too.

The standard method is a script that replaces one texture with another on specific faces of the prim. I have a simple window texture toggle script that I could give you which does this. It switches the inside and outside textures between two textures when the window is given a chat command. You can use different pairs for inside and outside faces.

With the above method, you need either two or four textures, that you have full perms on and/or can get the UUID keys for. The script uses the UUID keys to redefine which texture shows. One would have clear panes, and the other would have opaque panes. Black is common, but they could just as easily be red.

The second method is to put a similarly scripted prim inside your window prim, and use the script to control the transparency or opacity of that prim. So the prim that has your inside and outside window textures remains clear, but "behind" that face is another prim that is either 100% clear or 100% opaque.

This doesn't require making more textures, but it will be subject to the "Alpha Sorting Glitch". Which means that at certain angles, the 100% transparent square will look like a hole in the wall, instead of your window frame texture being there. So this isn't a good method.

One last method is to use a resizing prim as a "window blind" within the window prim. It's a little harder to script, but since the blinds would not have an alpha texture on them, there is no alpha sort glitch. When open, the prim is above the window area. When closed, the prim expands in size and covers the window area. Since it is between the survaces of the textured window prim, it looks like the texture for the "blind" is behind the window glass, from either side of the window prim. Sort of like the high-end windows that have mini-blinds sandwiched between two panes of glass.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
AudibleAura Bing
Registered User
Join date: 8 Feb 2007
Posts: 7
04-17-2007 15:49
i just finished making a working window that has a privacy button which changes the texture on the outside of the window to a curtain. I would be willing to sell you this script for a small amount of lindens... send me a tell in-game.

although, now that i think about my script... there is a bit of a bug when the window is opened and the privacy call is made... i will have to edit it and make it work better =)>
Soen Eber
Registered User
Join date: 3 Aug 2006
Posts: 428
04-18-2007 21:26
Rather serendepitous since I just finished this free script (at the very bottom)...

/54/b7/137945/1.html

3 way window blind script - opened/closed/glass texture; click one blind and all blinds within range also change. Just drop the script in the prim and tint it whatever color you want. Not an exact fit for what you're looking for, but it lets you cycle through three textures so just change the UUID's for the default textures to those you want and you're set. (limited scripting knowlege required). If you're slightly better at scripting, swap out the llSetTexture with llSetAlpha and drop whatever texture you want on the prim.