POV-Ray : Newsgroups : povray.general : Bounding behavior : Bounding behavior Server Time
29 Jul 2024 14:15:18 EDT (-0400)
  Bounding behavior  
From: Christian Froeschlin
Date: 28 Feb 2011 11:03:35
Message: <4d6bc757@news.povray.org>
I was trying to render a 3D puzzle by intersecting generic
puzzle tiles with a desired target shape and found it rendered
very slowly, even when intersecting the individual tiles before
creating a union. The effect was curious as it turned out

intersection
{
   object {A}
   object {B}
   bounded_by {B}
}

was much faster than

intersection
{
   object {A}
   object {B}
}

After some investigation I found that the problem was related to
the number of puzzle tiles completely outside the target shape, so
there seems to be some problem with empty intersections. I think
these should be discarded or at least get a small bounding box,
but they seem to be sticking around unbounded.

Also, I had originally expected to be able to use "split_union"
so I wouldn't have to intersect individual tiles (it's a bit more
effort due to scaling of final object size), but then found it was
only for photons. Such a setting might also be useful for bounding.

A small sample scene demonstrating both effects is attached.

Tested using 3.7 RC3


Post a reply to this message


Attachments:
Download 'us-ascii' (5 KB)

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