View Full Version : diagonals on line-drawn polygons
01-03-2003, 08:38 AM
If I draw quads on the screen using lines instead of fills, by doing:
beforer drawing the polygons, diagonals for each quad are also drawn if the quad is near the edge of the screen. Why does this happen and how can I fix it?
01-04-2003, 08:55 PM
Not sure but try glDisable(GL_SMOOTH)...
01-05-2003, 01:57 PM
I would venture a guess that your implementation clips things that lie partially on and offscreen by decomposing them into triangles.
01-05-2003, 02:55 PM
Thanks... I tried to use glDisable(GL_SMOOTH), but it didn't seem to fix the problem. My base code is the same as the NeHe code from this website (http://nehe.gamedev.net/tutorials/lesson.asp?l=01) .
Any other ideas about how to disable this clipping?
01-05-2003, 04:39 PM
What grafix card are you using?
I've seen 'near clip' problems on SiS
I've also seen it on other boards but
it was usually solved by not using the
NeHe's base code was usually the same
from the 2d lesson thru the 3d textured
lessons. Do you mean your base code is
from lesson 1 or from another lesson?
01-05-2003, 05:42 PM
Yeah, I'm using a SIS card. That must be it. Thanks!
I am using NeHe's code from those first few lessons.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.