Results 1 to 3 of 3

Thread: How can I copy a texture to another texture.

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    21

    How can I copy a texture to another texture.

    Google searches haven't given me much for what I'm trying to do, which I thought would be pretty basic.

    I'm trying to copy various opengl textures into 1 larger opengl texture (to create an atlas). Assuming the source textures have the same format as the atlas itself, how would I copy them over?

    This doesn't have to perform well as it's only done once at application startup, but I am restricted to OpenGL 4.0.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,651
    ARB_copy_image / NV_copy_image. Or copy between textures with a PBO intermediary (see this). Or can bind to FBOs and use glBlitFramebuffer. And doubtless there are other ways.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    21
    Thanks, I'll look into those some more.

Similar Threads

  1. Replies: 2
    Last Post: 04-24-2014, 01:52 AM
  2. OpenGL 4.2, How to Copy a color texture into a depth texture ?
    By imported_cippyboy in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 08-26-2013, 01:17 AM
  3. texture to texture copy, running through a shader?
    By zassGL in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-20-2011, 03:04 PM
  4. Copy texture pixels to another texture.
    By Matthew4693434 in forum OpenGL: Basic Coding
    Replies: 15
    Last Post: 12-23-2009, 07:54 AM
  5. Copy FBO to another texture? Or similar?
    By gq3gq3 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 11-12-2009, 01:02 PM

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