[info-performer] How to Save BMP files...

Date view Thread view Subject view Author view

From: fobefut fobefut (fobefut++at++msn.com)
Date: 06/26/2003 01:18:43


Hello, performers.

I asked how to save bmp files using Performer in Windows a few days ago.
Then, I am told that my problems may arise from not swapping R and B colors.
I knew the order difference between data from "glReadPixel" and bitmap
structure,
so I have always considered swapping red and green color bytes.

Well, I found the cause of crashing colors during saving bitmap files.

I used GL_RGB as parameter of "glReadPixel" instead of GL_RGBA,
i.e., 24 bits bitmap format.
But, I changed the paramter and retried into 32 bits bitmap file.
The result works well.
( I should have noticed that matter !!!
  "pfuSaveImage" also has a paramter that determines RGB or RGBA.)

Anyway, is this right ?
I have a question about any functions for setting color bits and etc.

Thanks for reading and kindly reply.

_________________________________________________________________
The new MSN 8: smart spam protection and 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 : Thu Jun 26 2003 - 01:19:33 PDT