I have been trying to read the information from the color buffer, to save this off to a BMP format image file. When I retrieve data from the color buffer and save it to file, the objects that appear in the image are distorted. Sometimes they are perfect, sometimes a break will appear midway in the image so that the scanlines are shifted horizontally from where you would expect them, sometimes I get more or less total garbage, and sometimes the colors are simply incorrect. If I sample very small area ( 120x120 pixels ) everything works perfectly - which leads me to believe that my code is basically okay. I just don’t know the arcane set of steps to make this work correctly in all cases. Since I am using multiples of 4 ( and 8 ) for my dimensions I would think that would eliminate the classic padding problem.
Any suggestions?
Thanks in advance.
- mark young