POV-Ray : Newsgroups : povray.advanced-users : format of hf_gray_16 .bmp files? : Re: format of hf_gray_16 .bmp files? Server Time
28 Jul 2024 18:21:43 EDT (-0400)
  Re: format of hf_gray_16 .bmp files?  
From: Christoph Hormann
Date: 8 Jul 2005 02:50:02
Message: <dal7em$2do$1@chho.imagico.de>
Darren New wrote:
> 
> In some places it required either one space or one newline in the header 
> where the spec specified "whitespace". My code was doing something like
> 
> print "P5 $width $height $depth" and POV-Ray was looking for a newline 
> after the P5 or some such. I don't remember the exact details.

Valid point (although after the 'P5' no newline is required - there is 
after the height though).

But also note if that 'print' command adds a Windows newline (i.e. 
CR+LF) afterwards it generates an invalid PGM file.

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.tu-bs.de/~y0013390/ (Last updated 01 Jul. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.