Join lines problem
Hey,
I recently created an application that creates a 2D background by joining a few 256x256 quads together and texuring them.
Unfortunately, some of the quads have lines where they meet.
Does anyone have any clue what the problem might be, whether it be lighting, positions or what not?
Any help would be appreciated,
Thank you for your time,
Dachande
Try setting the texture wrapping mode to gl_clamp instead of gl_repeat. To do so, add the following two lines after the call to glBindTexture:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
That fixed the problem on my card (Geforce2) but some othe cards are still getting lines albeit smarter... like the geforce 3.
Any more ideas?
help is always appreciated,
Dachande
Any more ideas?
help is always appreciated,
Dachande
You can always try causing them to overlap by 1 or more pixels on each side. See if that helps...
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
I thought that might do the trick.. but since it only occurs on some vid cards.. some people will have a normal pic, and others will have overlapping pics... the lines are a little thick to be subtle about overlaps too.
thanks for the idea, but i dont think it will solve my problem. anything else?
Im not sure what could be causeing it.. every game has this kinda thing.. flat surfaces with textures on joined up... for walls or floors or .. etc.. but I dont know many people that have encountered this problem!
Is there any way that I can load in a larger-than-256x256 image and get OpenGl to do the work of sizing it for me? that way i could put the whole image on just one quad and be problem free. I cant see that being possible though
Thanks,
Dachande
thanks for the idea, but i dont think it will solve my problem. anything else?
Im not sure what could be causeing it.. every game has this kinda thing.. flat surfaces with textures on joined up... for walls or floors or .. etc.. but I dont know many people that have encountered this problem!
Is there any way that I can load in a larger-than-256x256 image and get OpenGl to do the work of sizing it for me? that way i could put the whole image on just one quad and be problem free. I cant see that being possible though

Thanks,
Dachande
Sure you can make textures bigger than 256x256! Whoever told you that limit must have had a VooDoo3 or earlier
. On my TnT2 I already tried 1024x1024 and it worked fine without any trick!
Well, if you choose to take textures bigger than 256x256 you loose compatibility to old Voodoo boards, but 3DFx is dead anyway (I hope noone who loosed his job beacause of that reads this) in my opinion, when the Voodoo1 came out it was a great milestone. 3DFx really were the pioneers (I know there were earlier, but the Voodoo1 was the first good chip) and then came nVidia...
But I''m drifting off topic
To put it in a nutshell, on every not too old graphics board (except Voodoo3
AFAIK) it should be no problem to use bigger textures than 256x256 (TnT1 should be also capable of doing that when I remember right).
Yesterday we still stood at the verge of the abyss,
today we''re a step onward!

Well, if you choose to take textures bigger than 256x256 you loose compatibility to old Voodoo boards, but 3DFx is dead anyway (I hope noone who loosed his job beacause of that reads this) in my opinion, when the Voodoo1 came out it was a great milestone. 3DFx really were the pioneers (I know there were earlier, but the Voodoo1 was the first good chip) and then came nVidia...
But I''m drifting off topic

To put it in a nutshell, on every not too old graphics board (except Voodoo3

Yesterday we still stood at the verge of the abyss,
today we''re a step onward!
Yesterday we still stood at the verge of the abyss,today we're a step onward! Don't klick me!!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement