Results 1 to 9 of 9

Thread: OpenGL Display Lists

  1. #1
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    OpenGL Display Lists

    Hi all,

    I have a couple of questions relating to OpenGL display lists.

    Firstly, what version of OpenGL do I need to make use of display lists? For example, my OpenGL32.DLL is Ver. 5.0.2195.6611 and is copyrighted 1981-1999.

    I'm using the dglOpenGL headers Version 2.

    If this isn't the right version of OpenGL32.DLL... how do I upgrade it? I know that sounds like a dull question because you just copy new DLL's over the top, but where do I get updated DLL's. I've installed the latest version of the nVidia drivers and still the ancient DLL persists.

    Why am I asking all of this... well, because no matter what I do, I can't get a display list ID from glGenLists(1). I always get 0 meaning its failed. Do I have to do any special initialisation, make any calls before using display lists, load any extensions?

    All the documentation I've read about display lists suggests that the code I have now should work. The reason I'm not posting it is because I'd just like some pointers as to what may be causing the problem.

    Thanks in advance for any help guys
    :: AthenaOfDelphi :: My Blog :: My Software ::

  2. #2

    OpenGL Display Lists

    any version will do, but you shouldn't use them, they are slow.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #3
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    OpenGL Display Lists

    If they are slow, whats the point of them? And well... if every version will do display lists... any idea why I can't get them to work?

    I'm just learning OpenGL, so I have no idea of the alternatives that are available, so I figured I'd start with the basics :-)
    :: AthenaOfDelphi :: My Blog :: My Software ::

  4. #4

    OpenGL Display Lists

    Quote Originally Posted by Delfi
    any version will do, but you shouldn't use them, they are slow.
    I only have some small knowledge about OpenGL, but aren't displaylists made to speed things up?
    Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits

  5. #5
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    OpenGL Display Lists

    Exactly... every tutorial I read last night supported this with massive frame rate increases. Hence my annoyance that I can't actually seem to make a display list.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  6. #6

    OpenGL Display Lists

    Even on modern hardware display lists are the fastest way of drawing stuff with OpenGL. Newer cards store them as very well optimized VBOs in their VRAM so there actually is no way of rendering stuff faster with OpenGL.

    As for your DLL :
    Just ignore it, as driver bring their own OpenGL-ICD which for NVidia is called "nvoglnt.dll" which will override the dll included in windows (OpenGL32.dll)

    And for your display lists :
    Could you post some code? Maybe you're trying to create them in a wrong spot or do something different wrong but it's hard to tell withou seeing antyhing.

  7. #7
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    OpenGL Display Lists

    Thanks for the responses guys (Sascha, ignore the ICQ I sent you).

    I figured it out :-)

    dglOpenGL doesn't fully initialise all the procedure addresses until you activate the rendering context for the first time. I was simply creating the list before the glGenLists hook up had been done.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  8. #8

    OpenGL Display Lists

    Quote Originally Posted by Delfi
    any version will do, but you shouldn't use them, they are slow.
    What!!??
    [size=10px]"In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite." -- Paul Dirac[/size]

  9. #9

    OpenGL Display Lists

    It's a common error, to start accessing OpenGL functions before you activate a working rendering context.
    [size=10px]"In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite." -- Paul Dirac[/size]

Bookmarks

Posting Permissions

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