POV-Ray : Newsgroups : povray.newusers : Warning question : Re: Warning question Server Time
4 Nov 2024 19:22:35 EST (-0500)
  Re: Warning question  
From: Mike Williams
Date: 15 Oct 2001 17:06:05
Message: <PRFYpAAbDzy7EwU7@econym.demon.co.uk>
Wasn't it Hershel Robinson who wrote:
>Why does the following code generate a:
>Warning: Unnecessary bounding object removed.
>for each tile in the road?  (POV-Ray 3.5 beta 6)
>
>Thanks,
>Hershel

Because the bounded_by's are unnecessary. The scene renders faster if
you replace

            bounded_by { box { <J,-30,I>, <J+TileSize,0,I+TileSize> } }
            clipped_by { bounded_by }

by
            clipped_by { box { <J,-30,I>, <J+TileSize,0,I+TileSize> } }


and replace

            bounded_by { box { <J+TileSize,-30,I+TileSize>,
<J+TileSize*2,0,I+TileSize*2> } }
            clipped_by { bounded_by }

by

            clipped_by { box { <J+TileSize,-30,I+TileSize>,
<J+TileSize*2,0,I+TileSize*2> } }

I.e. get rid of the bounds and just clip.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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