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:36:48 EDT (-0400)
  Re: format of hf_gray_16 .bmp files?  
From: Christoph Hormann
Date: 7 Jul 2005 12:50:02
Message: <dajmek$bqc$1@chho.imagico.de>
Mike Williams wrote:
> 
> When I use POVRay to generate a hf_gray_16 TGA file, it works as a
> height_field.
> 
> When I do exactly the same thing with a PPM file generated with
> hf_gray_16 and +fp. I get an error "Parse Error: File is not in PPM
> format (type 53)" when I try to use it as a height_field. (POVRay 3.6
> Windows 98se).

As said with hf_gray_16 POV-Ray generates PGM files - you have to 
specify them as 'pgm' in the heightfield statement.

> Some image editors think that the hf_gray_16 PPM file has 8 bits per
> pixel (and don't display it correctly). Other image editors think that
> it's an 8-bit greyscale PGM file with an incorrect extension (and do
> display it correctly).

A lot of image editors don't read PPM/PGM files according to the specs.

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.