POV-Ray : Newsgroups : povray.off-topic : Need help with an algorithm : Re: Need help with an algorithm Server Time
4 Nov 2024 13:22:08 EST (-0500)
  Re: Need help with an algorithm  
From: scott
Date: 27 Mar 2008 02:59:19
Message: <47eb53d7$1@news.povray.org>
> The problem seems to be when splitting a slow area that contains one fast 
> area and one very slow area (relatively, in pixels per second; of course 
> it's faster than the big tile it belongs to!).
>
> Any ideas? I'll post some more images later.

Why not split the image repeatedly (alternating horizontal and vertical 
splits), but for every split choose the split position so that the sum of 
pixels is the same on either side of the split.  When the sum of pixels 
reaches some minimum value, or the rectangle is some minimum size, don't 
split anymore.


Post a reply to this message

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