View Full Version : ppm image generation
02-08-2004, 10:37 PM
i use glReadPixel(..) to read the frame buffer and then write the contents to a file and save as .ppm. when i view it i just see no image. also the saved file just contains only 1's. why is this?
02-09-2004, 01:04 AM
Are you sure the GL window is not covered/obscured by other windows during glReadPixel() ? Sure that you don't glClear just before reading ? Sure that you read from the right buffer ? Sure the reading format is correct (ie. float vs bytes etc) ?
[This message has been edited by ZbuffeR (edited 02-09-2004).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.