Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Transparent on one side but not the other?

Alexandra Jericho
Registered User
Join date: 14 Nov 2006
Posts: 11
12-14-2006 13:40
Is it possible for a prim to be transparent on one side but not the other? For example, could a wall have a regular texture on one side, but viewed from the other side it could be tranparent?
Thanks!
Charles Mountain
Registered User
Join date: 20 Jul 2006
Posts: 3
use llSetAlpha
12-14-2006 13:50
I think the best way to do this is by using a script with llSetAlpha(float alpha, integer face)
. You can see an example of the llSetAlpha command at:
http://rpgstats.com/wiki/index.php?title=LlSetAlpha

for example:
llSetAlpha(0, 0) will make the top of a prim invisible.
llSetAlpha(1, 0) will make the top of a prim visible.
Jennifer McLuhan
Smiles and Hugs are Free
Join date: 22 Aug 2005
Posts: 441
12-14-2006 14:04
Yes, you can. I have done this in my home. A window on the outside and a wall on the inside. I just used two different textures.

Jen
Alexis Starbrook
CEO - Alexis Digital
Join date: 7 Dec 2006
Posts: 135
12-14-2006 14:10
I have something like that in reverse, like a 1 way mirror , you can see out but no one can see it :)
_____________________
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
12-14-2006 14:51
Yes. Apply any alpha-mapped texture to one side, and a non-alpha texture to the other -= OR =- use the transparency setting for one side, or a script-driven transparency setting for that face to make it almost invisible.

My skyboxes are all opaque from the outside, but many of the rooms have alpha-mapped windows, that you can look out through, from the inside.
_____________________
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.
kevin Pow
Registered User
Join date: 12 Nov 2005
Posts: 1
12-14-2006 19:33
u could use a glass texture on 1 side then use select texture on the outher and select a diff texture
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
12-15-2006 06:35
All the sides of a cube (or anything else) are "faces." All faces can be textured independently, including such attributes as transparency, bump, Fulll Bright or anything else.

If you are using texture images, the easiest way to do this is to drag the texture from your Inventory to the face where you want it. When you do, it will appear on that face, and that face only.

If you are using the spinners on the Texture Tab of the Edit dialog to make your transparency, all you have to do is click the "Select Textures" Radio button in the top of the Edit dialog, and then click the face you want to change. (Shift click if you want to change more than one.) You'll see ghost lines on the edges of the Image Texture, and a cross hair in the center, so you can tell where you are. (Unless the texture has been sized and offset so that the edges and the center aren't visible, of course.)

You can use this method to change the image on the face, or any other texture attributes as well, as you would expect.

As others have mentioned, you can also do this with a script; but you have to know which side, by number, you want to change. And you have to know something about scripting, too. So, unless you do, it's a lot easier to just use the Edit dialog.
_____________________
Robin (Sojourner) Wood
www.robinwood.com

"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia
Domneth Dingson
Registered User
Join date: 20 Nov 2006
Posts: 126
12-16-2006 04:43
Although I appreciate a good script as much as anyone else, it's really just overkill for something this simple.

A transparent texture applied to the appropriate side with a non-transparent texture on the opposite side would create the desired effect and requires no scripting.
Alexis Starbrook
CEO - Alexis Digital
Join date: 7 Dec 2006
Posts: 135
12-16-2006 14:09
From: Domneth Dingson
Although I appreciate a good script as much as anyone else, it's really just overkill for something this simple.

A transparent texture applied to the appropriate side with a non-transparent texture on the opposite side would create the desired effect and requires no scripting.


As far as I can tell you can't apply a texture to just 1 face using the toolset, you can only apply different face texture via scripting.

Or am I missing something here?
_____________________
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
12-16-2006 17:15
In EDIT, push the Radio button at the top for "Select Texture".
Click on ONE face of your prim. You can then put on a face Specific texture.
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
12-16-2006 18:07
Hi Alexis!

There are a couple of other ways to do it. Please read my post above for "how to".
_____________________
Robin (Sojourner) Wood
www.robinwood.com

"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia