• Advertisement

Archived

This topic is now archived and is closed to further replies.

lines in textures

This topic is 6349 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I was wondering if anyone else has encountered this problem, or if anyone knows the fix. I have sequence of quads, lined up horizontally and vertically to make a big square, all with 32x32 textures on them. The problem is that on some of them, you see these lines at the edges of the quads. I tried translating on the axis the lines appear on, and sometimes they disappear, so it might be a perspective thing. But it only happens on some of the textures. Other textures it never does this on. Also, the textures with the lines, I cut and pasted to make them, while the ones that work I just drew them. Could that be it? I''m dying here people!! ------------------------------------------- "What's the story with your face, son?!?"

Share this post


Link to post
Share on other sites
Advertisement
Sometimes (very rarely) with cut''n pasting you create an image that is not "mathematically closed" meaning there are data leaks... If this is the case, when sent to a printer it will be enlarged in file size, but not actual dimensions, until the printer''s memory can no longer handle it, no matter how much the printer has. This could also be what is happening with your textures. Or, it could be that the other faces are showing through...
Try...
glEnable(GL_CULL_FACE);
glCullFace(GL_FRONT);

Or perhaps...
glEnable(GL_DEPTH_TEST);

That''s my best guess...
S.

Share this post


Link to post
Share on other sites
Thanks for the reply.

I''m assuming by printer, you mean output (to screen). I thought it might have something to do with that. I''m gonna try to make some test textures, minus copy and pasting, and see what happens. I was also looking at it closer, and it almost looks like an adjacent texture is underneath, which you can see because of the lines. Also, to be more specific, the lines are only on the sides of the quads where there is a different texture adjacent. I''m not putting anything underneath these quads, though, so I can''t explain this phenomenon.

Any help is greatly appreciated (read: I''ll buy you a drink ).

Thanks again.

-------------------------------------------
"What's the story with your face, son?!?"

Share this post


Link to post
Share on other sites

  • Advertisement