Advertisement Jump to content

Archived

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

daedalux

Wierd black line

This topic is 5338 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!