View Full Version : Copy Texture to Texture
03-12-2003, 03:53 PM
Is there any method for copying some or all of a texture to another texture? I know you can take raw pixel data and copy it using glTexSubImage and you can copy from the framebuffer using glCopyTexImage, but I don't see anything for copying directly from texture to texture.
03-13-2003, 08:27 AM
No one knows anything about this? I'm shocked.
03-13-2003, 08:37 AM
Nobody answered because there is no answer. It can't be done without creating a temporary copy somewhere.
03-13-2003, 09:37 AM
Telling me it isn't possible "is" an answer. Thanks.
03-13-2003, 09:56 AM
If the texture you want to copy is compatible with ARB_render_texture, then you could create a PBuffer of the same dimensions and format as the original texture and do a render-to-texture pass to do the copy.
I'm not sure if it makes you feel better, but the OpenGL 2.0 proposal adresses this problem (glCopyImage1D/2D/3D in OGL2_MemManagement_1.13.pdf (http://www.3dlabs.com/support/developer/ogl2/whitepapers/OGL2_MemManagement_1.13.pdf) )
03-13-2003, 02:29 PM
OpenGL 2.0 won't help me right now, but thanks for the information.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.