Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Alpha Channels Getting Confused?

Lord Wishbringer
Registered User
Join date: 3 Dec 2004
Posts: 209
02-19-2006 05:04
I'm attempting to put drapes with an alpha channel in front of windows that also have an alpha channel. I'm getting mixed results. The window behind shows through the drapes at certain camera angles. Is there anyway possible to stop this happening?

Heres the pictures:

http://home.comcast.net/~LordWishbringer/Drapes1.jpg

http://home.comcast.net/~LordWishbringer/Drapes2.jpg

I have read Chosen Few's Alpha channel sticky at the top of this forum, specifically this part:

From: Chosen Few


Why do sections of images sometimes disappear or seem to change position in SL?

This phenomenon has to do with a glitch common to nearly all 3D applications in what’s known as alpha sorting. It happens in nearly all video games, and even in high end 3D modeling packages costing thousands of dollars. What happens is when two or more 32-bit images are placed so that they intersect or overlap in close proximity, the renderer has trouble determining which one to draw first. As a result, the images can appear to flip-flop their positions in 3D space, to cancel each other out, or to otherwise behave strangely.

The way to cut down on this is to make sure that 32-bit images are only used when absolutely necessary. Images that do not need transparency should always be saved as 24-bit. Beyond that, there are certain building techniques in SL that can minimize the effect, and others that actually take advantage of it, but building is beyond the scope of this guide. There are plenty of tips about this on the building forum.


From reading this, i'm assuming i am never going to get this glitch to go away? What are these 'Techniques' that are spoken about? Anything that may help me out?

Many thanks.

-LW
Barbarra Blair
Short Person
Join date: 18 Apr 2004
Posts: 588
02-19-2006 05:59
There is no real fix for this glitch. You probably also notice linden trees and other such things showing through walls that have alpha windows.

The only way to avoid it is to plan ahead and just don't put alpha in front of alpha. If you can avoid it, don't use alpha on walls (of course, you may need to save prims by doing that, so then you are stuck).
_____________________
--Obvious Lady