Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

[c++]glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)

Started by giugio Aug 9, 2008 at 5:48 PM 2 replies 3.4k views
Original Post
giugio
giugio
hy. if i try to draw a face of a polygon with glPolygonMode(GL_FRONT_AND_BACK, GL_LINE) and i have a problem with a line of the face that dont appear correctly. The line is interupted at a specific measure. If i try to draw it with fill all appear correctly. But there is a difference in a polygon face with the index of the vertex drawn? Thanks.
V3rt3x
V3rt3x
Could you provide a screenshot?

That may be a bug from your OpenGL implementation (i.e the graphics drivers). Which hardware/operating system/drivers are you using?
giugio
giugio
this is the video card:
ATI Radeon 9000/9100 IGP (RS300)
V-man
V-man
It can happen that sometimes some line segments don't show up correctly. I had that happen to me on an old Radeon 9700.
Try to generate another array just for line rendering (glDrawRangeElements(GL_LINES, ...))

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.