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 12:34:58 EDT (-0400)
  Re: format of hf_gray_16 .bmp files?  
From: Christoph Hormann
Date: 7 Jul 2005 04:20:02
Message: <daiobu$52f$1@chho.imagico.de>
Mike Williams wrote:
> 
> It's not particularly easy to find the bit in the documentation that
> says that only the TGA file format supports the storage of hf_gray_16
> data. 

That's not quite correct - hf_gray_16 is supported for PPM (leading to 
PGM) and PNG output as well (and it makes most sense for those formats).

> The documentation suggests that you can use an externally generated PPM
> file to store suitable 16-bit data, but PPM files created by POVRay with
> hf_gray_16 switched on are not in this format (and they're not simple
> grey images either).

Why do you think so?  Last time i checked POV-Ray generated correct 
binary 16bit PGM with hf_gray_16 and +fp.

> Creating such a PPM image is going to be a little
> tricky, because you've also got to somehow set the undocumented marker
> [...]

POV-Ray reads 16 or 8 bit PGM images without problems.  Nothing 
undocumented there AFAIK.

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.