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: Number of vertices

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2007

    Number of vertices

    Hi, is there any way to count the number of displayed vertices ???
    I mean of course automatic way - cause it's possible to count it manually for every object. Any ideas ?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Reutlingen, Germany

    Re: Number of vertices

    You could render all vertices as GL_POINTS without depth-test and do an occlusion query. Since every point should be rendered as exactly one pixel, the result of the query should give you the number of rendered points.

    However on ATI cards i encountered that occlusion queries are not reliable in the exact number of fragments counted, so this will not work on all hardware equally precise.

    Other than that, i don't think there is an "automatic" way.

    GLIM - Immediate Mode Emulation for GL3

Posting Permissions

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