scyth3s's picture

Texture Artifacts

I'm making a 2D platformer, and as you can see from the screenshot, I'm having a bit of a texturing issue. The platforms (and characters, for that matter) seem to periodically have horizontal black lines jutting out from their tops or their bottoms. It looks like it should be a visual artifact due to scaling, but all the textures being displayed are at their native size. Does anyone have ideas about what could cause this kind of thing?

I'm using TexLib, which I found somewhere on this site (though I can't find it again) to generate the integer ID for an OpenGL texture, if that matters.

Inline Images


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Inertia's picture

You need to change the wrap mode when creating the texture map, it's set to repeat but you want clamp. If that's not it, make sure that the texture has a border of 0.

scyth3s's picture

Thank you sir I do believe this fixed it!