POV-Ray : Newsgroups : povray.general : Povray writes wrong PNG image size info to partially rendered images : Re: Povray writes wrong PNG image size info to partially rendered images Server Time
4 Aug 2024 22:10:56 EDT (-0400)
  Re: Povray writes wrong PNG image size info to partially rendered images  
From: Christoph Hormann
Date: 2 Apr 2003 07:22:04
Message: <3E8AD5EC.DC0337B6@gmx.de>
George Pantazopoulos wrote:
> 
> [...]
> 
> When using the Partial Output Options +sc +ec +sr +er povray incorrectly
> writes the full image size info to the PNG file it generates.
> 
> For example, if we did a render with "povray +w1024 +h768 +sc0 +ec255 +sr0
> +er255 +fn +otile0.png cornell.pov",
> the resulting tile0.png incorrectly reports a width and height of 1024 and
> 768, respectively. In this case it should be 256 for both cases.

A lot of nonsense has been said in this thread so i try to clear a few
things up:

- when rendering a subset of *columns* (+sc/+ec) POV-Ray generates a full
width image and fills the not rendered columns with black pixels.  This
should not be a problem for any image reading program no matter what file
format is used.

- when rendering a subset of *rows* (+sr/+er) POV-Ray writes the full
height into the image file header and only writed those lines into the
image that are rendered.  This can cause problems with image reading
programs that are not checking the file while reading and just read over
the end.

- if POV-Ray wrote the actual height of the partial image into the image
header there would be no way to continue the trace in a later run.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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