POV-Ray : Newsgroups : povray.general : PPM troubles Server Time
31 Oct 2024 06:04:23 EDT (-0400)
  PPM troubles (Message 1 to 4 of 4)  
From: Leroy Whetstone
Subject: PPM troubles
Date: 31 Jan 2006 12:12:00
Message: <43DFB487.81FA2B3E@joplin.com>
My POV3.6 will make PPM files ok, but it won't read them in a height feild. I
get:  Parse Error: Unsupported number of colors (0) in PPM image.
Does anyone else have that problem?
--
Have Fun!


Post a reply to this message

From: Darren New
Subject: Re: PPM troubles
Date: 31 Jan 2006 12:44:34
Message: <43dfa202$1@news.povray.org>
Leroy Whetstone wrote:
> Does anyone else have that problem?

Last I tried to do this (pre-3.6) the PPM code was picky about the kind 
and number of whitespace in the header. Try putting the depth and size 
on the same line, or on separate lines, whichever it isn't now. Make 
sure you have no commas, a newline instead of a space after the P6, etc.

-- 
   Darren New / San Diego, CA, USA (PST)
    Crate & Barrel -
      Furnishing Video Games Since 1962!


Post a reply to this message

From: Christoph Hormann
Subject: Re: PPM troubles
Date: 31 Jan 2006 13:05:03
Message: <dro8jn$s1n$1@chho.imagico.de>
Leroy Whetstone wrote:
> My POV3.6 will make PPM files ok, but it won't read them in a height feild. I
> get:  Parse Error: Unsupported number of colors (0) in PPM image.
> Does anyone else have that problem?

POV-Ray has troubles reading some unusual style PPM headers but can read 
any files it generated itself.  If you have a PPM it can't read running 
it through an image converter (like Imagemagick) before should help.

Latest MegaPOV contains a patch that makes the PPM reader much more 
tolerant so any standard conforming PPM should work.

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.imagico.de/ (Last updated 31 Oct. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

From: Leroy Whetstone
Subject: Re: PPM troubles
Date: 31 Jan 2006 23:53:48
Message: <43E05906.C8822CB7@joplin.com>
I found the problem! I think!?
Besides having several bad PPM files that I was testing. I also had two versions
of POV running at the same time. I use POV3.5win to edit my C++ programs. I used
POV3.6 to make a test PPM. When I tried to make a height field it didn't work.
When I was shut down version 3.5 it did.

--
Have Fun!


Post a reply to this message

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