Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: "Please Wait" screens

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Norwich, Norfolk, UK
    Posts
    15

    "Please Wait" screens

    I just wondered if anyone could point me in the direction of any demos which show how to have a "Please Wait While Rendering" progress bar appear at the start of your app. I have been told that this is usually done using 'Windows Programming'.

    Thanks in advance.


    [This message has been edited by Gus (edited 03-29-2001).]

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    148

    Re: "Please Wait" screens

    This is one of them crazy questions..

    You want to know how to show a windows gdi bar or do you want to render it with opengl?

    Move to google.com and search on "windows programming"

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Norwich, Norfolk, UK
    Posts
    15

    Re: "Please Wait" screens

    Due to the nature of this discussion forum, I would have thought most readers would have assumed the latter... quite obviously not!

  4. #4
    Junior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Ocoee, Florida, USA
    Posts
    155

    Re: "Please Wait" screens

    What exactly do you mean by "Please Wait for Rendering"? What exactly are you doing? You need to put a render loop inside your rendering loop. The inner render loop will keep track of percentage and update a graphical representation (A 2d bar?). The outer rendering loop does whatever work you need done you called it "rendering".

  5. #5
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Norwich, Norfolk, UK
    Posts
    15

    Re: "Please Wait" screens

    ok, you seemed not to have understood me very well. Nevertheless, your advice... was greatly appreciated. To clear up anything misunderstood, the term 'rendering' in this context was referred to the period of time when the scene objects are compiled into mem from various sources (display lists etc). Okay, it is not true 'rendering' but then what would you call it? Either way, the pedantic nature of this is not important.

  6. #6
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    204

    Re: "Please Wait" screens

    Regardless, you need to set up some sort of counter that gets incremented at a regular interval within whatever loop you are running. Drawing it in GL is then just a matter of computing the length of the bar based on that number and the maximum that it will reach.

    Chris

  7. #7
    Member Regular Contributor
    Join Date
    Nov 2000
    Posts
    409

    Re: "Please Wait" screens

    Hmm, at first I was thinking that he meant how do you have a animation/progress bar playing while loading in the data...

    Guess not.

  8. #8
    Junior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    148

    Re: "Please Wait" screens

    Well, if you can compile a displaylist, showing a 2D bar in OpenGL should be a breeze!

    Compile list1
    Increase bar
    Compile list2
    Increase bar
    Load texture or whatever
    increase bar
    .
    .
    .


    Or do you want to update the bar during the list is compiling or during whatever?. That would be trickier, but since compiling a list takes a fraction of a second (well, usually I guess), it would serve no point.

    Cheers.

  9. #9
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    Norwich, Norfolk, UK
    Posts
    15

    Re: "Please Wait" screens

    Thanks for your reply once again. I see what you mean about compile list...update progress bar etc but the problem I am having as you anticipated is updating the progress bar whilst each list is actually compiling. I have 50+ lists in my app, each one containing an avg 10k mesh points. When running something like this on a low spec machine, the time taken for the lists to be compiled, sometimes leads the user to believe that the app has crashed. The real problem I am having is actually flushing the buffer to the screen, whilst the lists are still being compiled....

    cheers
    Gus.

  10. #10
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    204

    Re: "Please Wait" screens

    I'm pretty sure that that's not possible, at least not using OpenGL. Once you go into GL_COMPILE, all of the GL commands are going into the DL (well, those that can, anyway). You will probably need to use something else to draw the progress indicator.

    Chris

Posting Permissions

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