   Outlining and openGL
  Hello [smile]Does anybody know how to outline an object (I mean - not drawing the hidden lines of a box or a dog or anything else)an example, a link or an explanation will be great!thanks   
  Try thishttp://www.flipcode.com/articles/article_objectoutline.shtml   ;  It doesn't work.I do this to every face of the object.even when i do this to the whole object - it is no good. :(int Face::draw(int mode){glClearStencil(0);    glClear(GL_STENCIL_BUFFER_BIT);// Render the mesh into the stencil buffer.    glEnable(GL_STENCIL_TEST);glStencilFunc(GL_ALWAYS, 1, -1);    glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);WireDraw();glStencilFunc(GL_NOTEQUAL, 1, -1);    glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);glLineWidth(3);    glPolygonMode(GL_FRONT, GL_LINE);WireDraw();return 1;}what's wrong?   ;  I got an outlined teapot with this code:  glClearStencil (0);  glClear (GL_STENCIL_BUFFER_BIT);  glColorMask (GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);  glDepthMask (GL_FALSE);  glEnable (GL_STENCIL_TEST);  glStencilFunc (GL_ALWAYS, 1, 0xFFFFFFFF);  glStencilOp (GL_REPLACE, GL_REPLACE, GL_REPLACE);  // Draw front-facing polygons as filled  glutSolidTeapot (1.0f);  glColorMask (GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);  glDepthMask (GL_TRUE);  glStencilFunc (GL_NOTEQUAL, 1, 0xFFFFFFFF);  glStencilOp (GL_KEEP, GL_KEEP, GL_KEEP);  // draw back-facing polygons as red lines  glEnable (GL_CULL_FACE);  glFrontFace (GL_CW);  glLineWidth (5.0f);  glPolygonMode (GL_BACK, GL_LINE);  glCullFace (GL_FRONT);  glColor3f (1.0f, 0.0f, 0.0f);  glutSolidTeapot (1.0f);  glLineWidth (1.0f);  glPolygonMode (GL_BACK, GL_FILL);  glDisable (GL_CULL_FACE);  glDisable (GL_STENCIL_TEST);Don't forget to enable a stencil buffer when you create your GL window.   ;  OK! thanks to both of you [smile]i guess i draw my objects wrong.   