PDA

View Full Version : Save cubemap to file



AJOM566
04-27-2013, 06:27 AM
Hi,
whats an easy and uncomplicated way to save a cubemap which has been rendered into a framebufferobject into a file (e.g. 6 separate pngs, one for each side)?
I have a fbo with a cubemap attached and filled all six textures (GL_TEXTURE_CUBE_MAP_POSITIVE_X, ...).

Thanks

V-man
04-28-2013, 06:17 AM
If you want to use the png format, people tend to use libpng or a higher level library that uses libpng under the hood.
Links for such libraries are here
http://www.opengl.org/wiki/Image_Libraries

If you want to save as a single file, look into the DDS format. DevIL supports DDS.