Simple little texture question
I have three cubes on screen with a seperate bmp for each. They all load and map fine, but the 1st and only the 1st seems to have a border around the images. I was wondering if anyone could point me in the right direction as to why? I know I haven''t included any source, but I am writing this at work, and don''t have the source with me. I gather the problem has to be in my texture loading, or, possibly, but not likely, in my drawing and mapping of the images. The bitmaps themselves don''t seem to have a border, so has to be part of the program. Once again sorry there is no source included here, but like I said I am writing this from work.
Cya
Wiz74
Just another Corporate slave trying to release himself into the OpenGL void.
Just another Corporate slave trying to release himself into the OpenGL void.
Hmm... Border around the images... Sounds like an original bitmap border was in place... Nothing to do with the code... Although, (I don''t have my book here...) there might be a way that you''ve put a border around it, but that couldn''t be by accident, I don''t think... Run your program, hit printscreen, go to mspaint and paste the image, save to a file and post it here... Maybe that''ll give us a better understanding of what your problem is...
S.
S.
Just one more thought I had quickly, maybe your coords for the edges of the faces don''t connect... I mean, if they were apart, it might seem like there''s a border...
S.
S.
Try changing the BMP of the texture with a monocrome image (with a color different from the one you see in the cube).
If the border disappear, the problem could be in the BMP file. It could be corrupted. I say that cause i already experienced a similar problem.
If the border don''t disappear you could try to change the parameter GL_CLAMP or GL_REPEAT
Hope this help
//-------------
Making Funny Garbage Codes on
http://members.xoom.it/NinjaCross
If the border disappear, the problem could be in the BMP file. It could be corrupted. I say that cause i already experienced a similar problem.
If the border don''t disappear you could try to change the parameter GL_CLAMP or GL_REPEAT
Hope this help
//-------------
Making Funny Garbage Codes on
http://members.xoom.it/NinjaCross
//-------------A straight line may be the shortest distance between two points, but it is by no means the most interesting.http://members.xoom.it/NinjaCross
Thank you all very much. Sorry I haven''t gotten back to you earlier, but work, my wife and son tend to keep me busy. Won''t have a computer at home for about a week, so cant really do anything at moment. But once agin thankyou all very much, and I will try all your suggestions when I get my new system.
Bye for a week or so.
Bye for a week or so.
Just another Corporate slave trying to release himself into the OpenGL void.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement