Skip to main content
GameDev.net gamedev.net
🔒 Locked

glEdge question

Started by ECKILLER Feb 29, 2000 at 9:04 PM 0 replies 600+ views
Original Post
ECKILLER
ECKILLER
hi, Ok i''m using indexes to draw my object. Its already drawn in wires but i can see the inner triangles. I know opengl provide glEdge to get rid of those unnecessary triangles. But how do i do it with indexes?? ECKILLER
ECKILLER
Myopic Rhino
Myopic Rhino
I don''t thing glEdge is what you want. To get the effect you are looking for, you need to do hidden line removal. There is no built in function to do this, but there are quite a few straightforward algorithms available. Probably the easiest is to render the model in polygon line mode, enable a small polygon offset, and then render it again in polygon fill mode using the background color. The visual effect from this is not bad, but not great. If you want something better, you can look into algorithms using the depth and stencil buffers, which I don''t really have time to get in to here.

Topic Locked

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

Sign in to reply to this topic.