View Full Version : little problems with weird lines
11-12-2006, 12:43 PM
I am creating a game with OpenGL which seems to work fine on my computer and my laptop, but apparently somebody tested it and he had lines over each polygons...
Here is a screenshot of his screen (weird lines) :
Screenshot with bug (http://sd-2016.dedibox.fr/ludowww/error/3dd.JPG)
Here are screenshots taken by me (no lines) :
Screenshots taken by me (http://sd-2016.dedibox.fr/ludowww/images.php)
Does anybody knows why he can see these lines ?
His graphic card is a GeForce 7600 GT/PCI/SSE2/3DNOW!
And my graphic cards are GeForce 7600 GS (pc) and Radeon X1600 (laptop).
11-13-2006, 02:49 AM
Those look like polygon smoothing artefacts.
But then you would have those as well on your 7600. :confused:
Are you running with antialiasing enabled and he doesn't? That would explain why you don't have the problem if that's it.
Check if you have glEnable(GL_POLYGON_SMOOTH) anywhere in your code and remove all occurances of it.
11-13-2006, 05:33 AM
I didn't have any occurances of "GL_POLYGON_SMOOTH" in all my source code..
Maybe I should add it ?
11-14-2006, 01:05 AM
If you use any third party libraries, make sure they don't do it either.
Out of curiosity you could check if you can repro the corruption on your GeForce by adding glEnable(GL_POLYGON_SMOOTH), but do not ship that.
You could also explicitly call glDisable(GL_POLYGON_SMOOTH) and see if that fixes the problem on the other system.
There might be other ways to generate these images, but the wrong one just looks too much like polygon smoothing with depth buffering enabled.
Means if it's not this, you'd need to provide the rendering code.
11-14-2006, 09:13 PM
Hum.. i've added it but it doesn't change anything on my computer :-/.
I'm just using OpenGl, OpenGlut and Glu.
I'll try to add glDisable(GL_POLYGON_SMOOTH) and see if anybody else got a problem.
Thanks a lot.
11-15-2006, 11:05 AM
Hum.. i've added it but it doesn't change anything on my computer :-/.That was on the GF7600? I would expect that GL_POLYGON_SMOOTH would have an effect on that. It's a rather new board.
There were some implementations which just ignored polygon smoothing.
Just another idea, if there is no OpenGL ICD installed you would pick the Microsoft SW OpenGL implementation. For debugging try to select one of those pixelformats, that are the ones where the PIXELFORMATDESCRIPTOR dwFlags has PFD_GENERIC_FORMAT set.
Check if that reacts differently on the polygon smoothing.
If your program has an option to report the strings from glGetString GL_VENDOR, GL_VERSION and GL_RENDERER let your users report these when they see problems.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.