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 10 of 13

Thread: Render to texture, without FBO

Hybrid View

  1. #1
    Junior Member Regular Contributor
    Join Date
    Mar 2009
    Location
    California
    Posts
    193

    Render to texture, without FBO

    I have an Intel GMA 3150 I am testing on that only supports OpenGL 1.4. I don't see the framebufferobject extension in the extensions string.

    Is there any other alternative to allow rendering to a texture? I don't care if it's slow, but it needs to be reliable on all cards. Is the pixel buffer thing usable? I have always used FBO in the past.

  2. #2
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Czech Republic
    Posts
    317

    Re: Render to texture, without FBO

    You can use old PBuffer (see WGL_ARB_pbuffer) and then copy the content to the texture with glCopyTexSubImage2D.

    NVIDIA even has an extension to render directly to texture without FBO. It is called WGL_ARB_render_texture but I doubt this is supported by Intel.

  3. #3
    Senior Member OpenGL Lord
    Join Date
    May 2009
    Posts
    5,208

    Re: Render to texture, without FBO

    NVIDIA even has an extension to render directly to texture without FBO. It is called WGL_ARB_render_texture but I doubt this is supported by Intel.
    As the name suggests, it's not an NVIDIA-specific extension. But it is a really horrible extension to actually use. Avoid it under any circumstances; it's better to just copy the pixel data.

  4. #4
    Member Regular Contributor
    Join Date
    Dec 2007
    Posts
    256

    Re: Render to texture, without FBO

    just render to the back buffer then do glCopyTexSubImage2D
    done !

  5. #5
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,170

    Re: Render to texture, without FBO

    Quote Originally Posted by dukey
    just render to the back buffer then do glCopyTexSubImage2D
    done !
    ...remebering to set the view port size to the size of your texture (which can't be larger than your backbuffer dimensions)

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,266

    Re: Render to texture, without FBO

    Quote Originally Posted by BionicBytes
    Quote Originally Posted by dukey
    just render to the back buffer then do glCopyTexSubImage2D
    done !
    ...remebering to set the view port size to the size of your texture (which can't be larger than your backbuffer dimensions)
    Your texture actually can be larger and you can glCopyTexSubImage2D to a portion of it; it works Just Fine, is very fast, and is probably eminently suitable for simpler use cases.

  7. #7
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Czech Republic
    Posts
    317

    Re: Render to texture, without FBO

    Quote Originally Posted by Alfonse Reinheart
    it is a really horrible extension to actually use. Avoid it under any circumstances;.
    I was using it before FBO with no major issues. Back then it was the only way. There is also NV specific extension for rectangle texture that works well.

Posting Permissions

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