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

Thread: display list and vertex program

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jan 2002
    Location
    France
    Posts
    134

    display list and vertex program

    When I record a display list while using a vertex program, what happens ? Does the display list record the result of the vertex program or does it just record the coordinates I sent trough glvertex3f ?

    If my vertex program cancel some vertex, what will happen to my display list ? Will it retains only the vertex which have passed the vertex program test ?

    Thanks

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: display list and vertex program

    From all I know the display list will just record the data you send to the pipeline before it actually enters the pipeline (display list stores OpenGL commands). So if you have a vertex shader enabled or not won't make any difference. Secondly, you cannot cancel vertices on the vertex program and there is no such thing in OpenGL as "vertex program test".

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: display list and vertex program

    A display list basically only records the openGL commands as they are called by the program(in a compressed form), not what happens after that.

    To record the transformed vertices you need to use a geometry buffer, it can output the vertices to a VBO instead of the rasteriser.

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: display list and vertex program

    Originally posted by Zengar:
    there is no such thing in OpenGL as "vertex program test".
    I think he means the various clipping and culling operations done to the polygons.
    Though this takes place just before the rasterisation stage and can not be recorded even by the geometry buffer.

  5. #5
    Junior Member Regular Contributor
    Join Date
    Jan 2002
    Location
    France
    Posts
    134

    Re: display list and vertex program

    Thanks; I thought it was possible to discard vertex, my mistake.
    I could try a workaround by setting the vertex I want to discard beyond the clipping range, but I'm afraid it will still be costy as I have plenty of theses ( I retain only 1 triangle out of 30, as a ratio), from a processing point of view and from a memory point of view, because even beyond the clipping range theses unrenderable triangles will still be recorded into VBO.

Posting Permissions

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