Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

"Edges" around transparent textures

Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
12-04-2005 13:57
So I was trying to make some light beams to attach to a vehicle that faded out. So I made a texture with a gradient from white to transparent, fully transparent on the bottom end, and attached it to the outside of a tapering cylinder.

The thing is, I ended up with a really faint but noticeable white edge around the base of the cylinder, where it should have been transparent. I put a transparent texture on the base and got this. I then put a script in to turn the base to 100% alpha but the same thing happened.

Now, in the end it turns out to not be practical to have these on a vehicle anyway because you can't have phantoms attached to non-phantoms (and I don't want to be knocking people over with my lights - this is something that needs to be sorted out though IMO). But I was curious as to why this is and whether there's any way of getting round it.
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
12-04-2005 14:07
I can't remember the technicalities of why it happens other than it being the other edge of the image wrapping round.

What I can tell you, though, is that you can fix it by decreasing the repeats for the texture ever so slightly (to 0.99 or something).
_____________________
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
12-04-2005 15:13
this seems to come up alot and since i dont have a good awnser try serching the texure forum for halo's
Forseti Svarog
ESC
Join date: 2 Nov 2004
Posts: 1,730
12-04-2005 17:20
From: AJ DaSilva
I can't remember the technicalities of why it happens other than it being the other edge of the image wrapping round.

What I can tell you, though, is that you can fix it by decreasing the repeats for the texture ever so slightly (to 0.99 or something).


yeah i see this as well. it's not a matter of the white fringe problem, it actually appears to be a wrapping problem (the other edge of the texture being brought around as if you had repeated your image 1.01 instead of 1.0).

You can do AJ's technique of a slight decrease of the repeat, or what I often do is change the offset the smallest possible amount.
_____________________
Noel Marlowe
Victim of Occam's Razor
Join date: 18 Apr 2005
Posts: 275
12-04-2005 18:22
Whew! I thought I was going nuts. I had just noticed this with a new build and was noticing some colors from the one side of the texture showing on the other side. It was just a sliver (less than a pixel). I thought there was a glitch with my source files and I scanning my them in PS for some mistake. This saved me a lot of fruitless searching.
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
12-04-2005 18:33
The other thing you can do is build your textures with some "slop," since they will always wrap like this. Just put a few transparent pixels on all sides before uploading, and when it wraps, it'll wrap transparency.
_____________________
Robin (Sojourner) Wood
www.robinwood.com

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