Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: advanced glPolygonMode()

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    Dublin
    Posts
    1

    advanced glPolygonMode()

    Hi,
    When I use glPolygonMode(), I am confused about the GL_FRONT and GL_BACK. how to distinguish FRONT and BACK from a group of vertexes?
    thanks.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    186

    Re: advanced glPolygonMode()

    OpenGL uses the right-hand rule for deciding the front and back of polygons. take your right hand and curl your fingers in the direction of your vertices. your thumb is now representing the normal of the polygon. this is the front side. the other side is the back. glPolygonMode() allows you to specify front, back or both. as a general rule, you want to make sure all your polygons are "wound" the same way, be it clockwise or counter-clockwise.

    b

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    Re: advanced glPolygonMode()

    The front of a polygon is the side that
    has the normal faceing out of it. The
    direction of the normal depends on the
    winding of the vertices that make up the
    polygon. (clockwise or counter-clockwise)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •