Lines on transparent textures

Hi All,
I am having trouble (and always had) with line that come up along the top of textures that have alpha transparency on them.


line_problem.png


In the image above, the tree_line texture is squidmobs string object. There is a line that goesa along the the top. The line that goes across the sky is from the custom horizon texture that I have created.

Does anyone else have this problem and if so, how is it fixed.

Thank you for reading,
Nick
 
The graphics card blends each pixel into the surrounding pixels. Pixels at the edges of the texture will be blended with those on the opposite edge to allow seamless texture mapping. The top of that texture has the transparent pixels at the top beginning to blend with the opaque pixels at the bottom. One row of transparent pixels at the bottom of the texture should fix the problem, or apply a tiny vertical offset to the texture map, although this may cause some clipping.
 
Last edited:
Aaaaaaahhhhhh. Good explanation. It all makes sense now. Thank yo for that.
And, are those your tree objects in I am using. If so, thank you for those too.
 

Latest News

What is the reason for your passion for sim racing?

  • Watching real motorsport

    Votes: 420 69.5%
  • Physics and mechanics

    Votes: 263 43.5%
  • Competition and adrenaline

    Votes: 284 47.0%
  • Practice for real racing

    Votes: 124 20.5%
  • Community and simracers

    Votes: 168 27.8%
Back
Top