POV-Ray : Newsgroups : povray.animations : How to animate sub-region only : Re: How to animate sub-region only Server Time
27 Apr 2024 18:05:28 EDT (-0400)
  Re: How to animate sub-region only  
From: Nicolas Alvarez
Date: 23 Nov 2008 12:32:51
Message: <492993c2@news.povray.org>
sumdumguy wrote:
> Suppose I have a 1280x1024 image and I want to render row 2 through 5 and
> columns 2 through 5. Just a tiny patch. This will render fine and produce
> a mostly black image whose size is 1280x1024. But the non-black patch will
> not be between columns 2 and 5 and rows 2 and 5. It will be starting at
> row 1 and it seems to be centered columnwise.

It doesn't always do that. It depends on the file format.

For PNG, it will start on row 1, and a special field inside the PNG format
will say where that row should really be located.

> So I cannot just use 
> software to map black pixels to 100% transparency and then paste the new
> image on top of frame 1.

Use smarter software :) Put the rendered chunk in the correct place of the
frame 1 (you *know* what the correct place is, since you used it to tell
POV-Ray what to render).

If you map black pixels to transparency, wouldn't you have problems if the
rendered chunk has real black parts?


Post a reply to this message

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