Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Polygon rendering problem

  1. #1
    Intern Contributor
    Join Date
    Jun 2009

    Question Polygon rendering problem

    In the attached zip file, there are two png files. One showing how the polygon is being rendered now and another showing how it should be rendered.

    Basically, polygon is rendered by displaying the back color also. which I want to eliminate. In poly_red.png file, the part of polygon marked with red should not be displayed. What is the problem here in poly.png?

    Attached Files Attached Files

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    I know there is a saying "a picture is worth a thousand words" but not when you want code debugged. At a guess you look like you need to use stencil buffers. Have a look at the red book for rendering polygons

Posting Permissions

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