Forum: Poser Python Scripting


Subject: script to make poser window anaglyph?

anxcon opened this issue on Jan 29, 2005 ยท 86 posts


underdog posted Sun, 06 February 2005 at 9:27 PM

Hi Ockham and Anx Con..

I got the pics. Not much to report. The merged pic is clearly corrupted, but in an odd way. I zoomed in on the Aux Camera / Main Camera overlay and that shows pixel variations in places where we should see identical colors (in other words, where one set of letters is printed on a solid color without overlap from the other set of letters), but instead the pixels seem to alternate colors in a pattern.

Researching the BMP file format on the web, it looks to me like the file header on an uncompressed BMP file should be 54 bytes, not 36 bytes. Maybe this is corrupting things. Ockham, tell me if you agree after checking this link?

http://www.daubnet.com/formats/BMP.html

I assume the layout is valid.. Doesn't it seem to indicate that the raster data starts after the 54th byte?

<br></br>Header 14 bytes Windows Structure: BITMAPFILEHEADER <br></br><br></br>  Signature       2 bytes 'BM' <br></br>  FileSize        4 bytes File size in bytes <br></br>  reserved        4 bytes unused (=0) <br></br>  DataOffset      4 bytes File offset to Raster Data <br></br><br></br>InfoHeader 40 bytes Windows Structure: BITMAPINFOHEADER <br></br><br></br>  Size            4 bytes Size of InfoHeader =40  <br></br>  Width           4 bytes Bitmap Width <br></br>  Height          4 bytes Bitmap Height <br></br>  Planes          2 bytes Number of Planes (=1) <br></br>  BitCount        2 bytes Bits per Pixel   <br></br><br></br>     1 = monochrome palette. NumColors = 1   <br></br>     4 = 4bit palletized. NumColors = 16   <br></br>     8 = 8bit palletized. NumColors = 256  <br></br>    16 = 16bit RGB. NumColors = 65536 (?)  <br></br>    24 = 24bit RGB. NumColors = 16M <br></br><br></br>  Compression     4 bytes Type of Compression   <br></br><br></br>    0 = BI_RGB   no compression   <br></br>    1 = BI_RLE8 8bit RLE encoding   <br></br>    2 = BI_RLE4 4bit RLE encoding <br></br><br></br>  ImageSize       4 bytes (compressed) Size of Image  <br></br>    It is valid to set this =0 if Compression = 0 <br></br>  XpixelsPerM     4 bytes horizontal resolution: Pixels/meter <br></br>  YpixelsPerM     4 bytes vertical resolution: Pixels/meter <br></br>  ColorsUsed      4 bytes Number of actually used colors <br></br>  ColorsImportant 4 bytes Number of important colors 0 = all

===Underdog===