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

Thread: windowless rendering possible?

  1. #1
    Junior Member Newbie
    Join Date
    May 2007
    Location
    Belgium
    Posts
    6

    windowless rendering possible?

    Hi all,

    I want to render an image in my application, but it has to happen all in the background. So no visible window may be created. The image has to be written to disk in the end.

    I already tried some things to create an invisible window, but still the screen flickers.

    Are there any standard solutions for this?
    Thanks a lot!

  2. #2
    Junior Member Newbie
    Join Date
    May 2007
    Location
    Belgium
    Posts
    6

    Re: windowless rendering possible?

    It's a Windows application by the way...

  3. #3
    Junior Member Newbie
    Join Date
    May 2007
    Location
    Belgium
    Posts
    6

    Re: windowless rendering possible?

    So far I found info about PBuffers and framebuffer object extension (FBO).

    Any reason to use one or the other?

  4. #4
    Senior Member Regular Contributor
    Join Date
    Oct 2004
    Posts
    150

    Re: windowless rendering possible?

    definitely FBO. with FBOs you don't need to swap contexts and they are plattform independet.

  5. #5
    Senior Member OpenGL Pro k_szczech's Avatar
    Join Date
    Feb 2006
    Location
    Poland
    Posts
    1,107

    Re: windowless rendering possible?

    You still need at least one rendering context - FBO does not create context. There was a topic aout this some time ago (a few months back). Somebody tried to run application as service so search for that.

  6. #6
    Senior Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    659

    Re: windowless rendering possible?

    i'm not so familiar with windows- but i guess you can create a window without showing it on screen and still create a gl context for it... right?

  7. #7
    Junior Member Newbie
    Join Date
    May 2007
    Location
    Belgium
    Posts
    6

    Re: windowless rendering possible?

    Idd I can create a window without showing it, but it still flickers on the screen, or at least the desktop redraws its icons and it should really be completely unnoticable.

    Can't seem to find the other topic about the services though...

  8. #8
    Junior Member Newbie
    Join Date
    May 2007
    Location
    Belgium
    Posts
    6

    Re: windowless rendering possible?

    If I need a rendering context, I call wglCreateContext(hDC)...but then I need a device context too to pass it (hDC).

    I usually get that from GetDC(hWnd) where I pass the window handle from the window I created before, but this time I don't want a window. How can I create a rendering context then please?

    Thank you!

  9. #9
    Senior Member OpenGL Pro k_szczech's Avatar
    Join Date
    Feb 2006
    Location
    Poland
    Posts
    1,107

    Re: windowless rendering possible?


  10. #10
    Junior Member Newbie
    Join Date
    May 2007
    Location
    Belgium
    Posts
    6

    Re: windowless rendering possible?

    Thanks!
    I'll check out the links!

Page 1 of 2 12 LastLast

Similar Threads

  1. windowless transparent rendering
    By somboon in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-30-2008, 03:13 PM
  2. Windowless OpenGL Rendering & GLX ?
    By awoland in forum OpenGL: Linux
    Replies: 3
    Last Post: 08-12-2003, 03:44 AM
  3. Windowless OpenGL Rendering & GLX ?
    By awoland in forum OpenGL: Linux
    Replies: 2
    Last Post: 07-24-2003, 03:16 AM
  4. Windowless Rendering
    By peter@topmeiers.de in forum OpenGL: General
    Replies: 1
    Last Post: 01-09-2003, 11:04 AM
  5. Windowless Rendering
    By peter@topmeiers.de in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-09-2003, 10:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean