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: using displaylist with trimming nurbs

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2009
    Posts
    3

    using displaylist with trimming nurbs

    hi:
    I have 1000 surfaces to be trimmed in my project. according to the glu1.3 defined some callback function which could be used return the trimming result back to the program. so i put these result into displaylist in my program. but rendering these trimmed surface with displaylist seems not enough quickly when i rotate these surface with mouse. i want to know how could i make the rendering more quickly?
    when gluEndSurface(theNurb) is called, The trim operation do well in most of surface but there are a few trimming operation which poped up message box like Run-Time Check failure#0 The value ESP was not properly saved across a function cal. bra ..bra....How could i solve this problem? thanks
    .

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: using displaylist with trimming nurbs

    About display lists, make sure you compile it only once, then only execute it at each frame.

    GLU nurbs surfaces are generated on the CPU, so it is not expected to be particulary fast. And if you need dynamic generation, you will have to forget display lists too.

Posting Permissions

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