I woiuld display some Obejcts for example a simple Cube who is filled with a color (drawed in Mode GL_FILLED) and whos edges are drawn as black lines. I will outline the cube. Exists there a another possibilty to do this instead of drawing the filled cube first and overdraw it with black lines ??
Thanks for your help
Peter Gmeiner
Outlining Objects in OpenGL
Started by PGmeiner, Aug 02 2001 08:03 AM
1 reply to this topic
Ad:
#2 Members - Reputation: 528
Posted 02 August 2001 - 10:49 AM
no i think thats the easiest way
glPolygonMode( GL_FRONT, GL_FILL )
draw cube
glPolygonMode( GL_FRONT, GL_LINE )
draw cube // the vertices should still be in hardware thus this shouldnt be so slow
perhaps also for the line version u need glDepthFunc( GL_EQUAL ) or glPolygonOffSet(..)
glPolygonMode( GL_FRONT, GL_FILL )
draw cube
glPolygonMode( GL_FRONT, GL_LINE )
draw cube // the vertices should still be in hardware thus this shouldnt be so slow
perhaps also for the line version u need glDepthFunc( GL_EQUAL ) or glPolygonOffSet(..)






