Jump to content
  • Advertisement

Archived

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

daedalux

Wierd black line

This topic is 5220 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''m having a strange texture problem here. I am fooling around with a tiling engine which uses textured quads, and I get this wierd black line that goes right through the middle of each tile. It seems to be when I''m reading the texture into the image array before I bind it, but I don''t have the slightest idea how this black line gets in there. I have a screen shot here so you can see what I mean. Any ideas? http://www.ravingninja.com/images/screen0.gif

Share this post


Link to post
Share on other sites
Advertisement
i'm just guessing but i had something similar when i didn't clamp the textures correctly. Try

glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP );


Offcourse i can be way off - i usually am



The ever vigilant...

[edited by - MonkeyInBlack on June 6, 2004 11:12:53 AM]

Share this post


Link to post
Share on other sites
I thank you for your suggestion, but it turns out it was something else entirely. I suspected that it was in the image loading routine and I was correct. I started reading the image into the unsigned byte matrix at 1,1 instead of 0,0, thus all the pixels along the top and left row/column were black. ;P

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!