[info-performer] How to save screen to bmp file ?

Date view Thread view Subject view Author view

From: Jaemoon Yoon (fobefut++at++msn.com)
Date: 06/18/2003 19:09:37


Hello, performer users.

I'm now developing an application that is used for viewing 3D model files.
Of course, I use OpenGL performer for this implementation.

For that, I use Windows development environment, as follows.

1. Visual C++ 6.0
2. MFC based Windows

Now, I have a problem about saving the screen to bmp files.
I have frequently used "glReadPixel()" for saving the screen in own my
OpenGL applications.
After reading framebuffer, I save the data into bmp files.
So, I tried that method at this time, but I get the incorrect image,
which has a right shape and size, but its colors are ruined.

I inserted saving routines into post-draw callback function.

If there are any hints or ideas, please let me know !!!

(Saving the screen into rgb file format by "pfuSaveImage()" works well.)

Thanks for reading...

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 18 2003 - 19:10:21 PDT