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
|