Jump to content

  • Log In with Google      Sign In   
  • Create Account


Outlining Objects in OpenGL


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 PGmeiner   Members   -  Reputation: 122

Like
Likes
Like

Posted 02 August 2001 - 08:03 AM

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

Sponsor:

#2 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

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(..)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS