Black lines at texture edges Created 15 years ago2009-11-19 19:30:03 UTC by MistaX88 MistaX88

Created 15 years ago2009-11-19 19:30:03 UTC by MistaX88 MistaX88

Posted 15 years ago2009-11-19 19:30:03 UTC Post #275869
I'm having some issue with the jungle textures from de_airstrip.

I'm using some of them in my map and they come out like this:
User posted image
I can't figure out how to get rid of those ugly black lines. I can see that this isn't an issue with the same textures on Airstrip:
User posted image
I tried searching around but couldn't find anything. Are there any remedies to this?
Posted 15 years ago2009-11-19 19:31:02 UTC Post #275870
Just cut away a unit or two on the top.
ChickenFist ChickenFist<Witty Title>
Posted 15 years ago2009-11-19 20:25:25 UTC Post #275871
This is a known issue with OpenGL rendering in Goldsrc games (and in Source too, apparently).

The pixels of the texture blend together in OpenGL, so if the bottom of the texture is full while the top is transparent, the bottom pixels blend into the top.

The solution is either:
1. Shift the texture alignment up 1 unit
2. Or make the bottom of the texture transparent
Posted 15 years ago2009-11-19 21:03:47 UTC Post #275872
What WC (Soup Miner?) said. Texture filtering is to blame.
Posted 15 years ago2009-11-19 22:14:32 UTC Post #275874
It's harder to see in the pic than in game but there is a black line on both the top and the bottom of the top texture (can be seen better if you look at the pic in full size), so taking 1 unit off the top will probably only fix the top line.

Shifting the texture alignment up one unit would only bring the transparent part up and leave a gap of sky in the middle of the two textures. So I can't do that at all.

I guess I could always deal with the middle line and just get rid of the top line. The top line is much more noticeable.
Posted 15 years ago2009-11-19 22:55:16 UTC Post #275875
If those are two separate textures, try moving the top texture's alignment down 1, and then shave off 2 units from the top of the brush.

That ought to get rid of both lines, even if it leaves a hard-to-see misalignment. You should be fine.
You must be logged in to post a response.