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 2 of 2

Thread: Hidden Lines (and Visible Selection)

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    1

    Hidden Lines (and Visible Selection)

    I am just learning OpenGL and am hoping that
    the following is (easily) possible.

    I have a 3D object whose surface
    is defined by simple polygons (triangles in
    this case). As we know, only the "front"
    polygons are visible in hidden line mode.
    Is it possible to identify these polygons?

    I'm thinking that once the hidden line removal
    algorithm does its work, the display buffer
    contains only the 2D screen drawing lines,
    but I'd like to identify the 3D polys these
    came from.

    I hope my question is clear and makes sense.

    Thanks for any help,

    Rob

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2004
    Posts
    999

    Re: Hidden Lines (and Visible Selection)

    You can use occlusion queries to identify these polygons. First you have to render the whole object and then you render it again with a seperate occlusion query per polygon.

    Youc an find information about occlusion queries at http://oss.sgi.com/projects/ogl-sample/registry/

    GL_ARB_occlusion_query
    GL_HP_occlusion_test
    GL_NV_occlusion_query

Posting Permissions

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