POV-Ray : Newsgroups : povray.binaries.images : Energy drink : Re: Energy drink Server Time
1 Aug 2024 18:24:58 EDT (-0400)
  Re: Energy drink  
From: Larp
Date: 12 Aug 2008 17:48:35
Message: <48a20532@news.povray.org>
Mike Williams wrote:

> It looks like you might be attempting to difference the
> can with a union of blobs each of which have a single
> element.

Yes, you're right.

> That doesn't gain you the advantage of the blob 
> trick. What you have to do is difference the can with a
> single blob object that has lots of components.
> 
> blob { threshold 1
>     cylinder { <0,0.6,0><2,0.6,2>, 0.03, 10000 }
>       rotate <0,RotY1,0>
>       translate <0,PosY1,0>
>     cylinder { <0,0.6,0><2,0.6,2>, 0.03, 10000 }
>       rotate <0,RotY2,0>
>       translate <0,PosY2,0>
>     cylinder { <0,0.6,0><2,0.6,2>, 0.03, 10000 }
>       rotate <0,RotY3,0>
>       translate <0,PosY3,0>
>     ...
> }

I assume you mean this (see the position of brackets):

blob { threshold 1
    cylinder { <0,0.6,0><2,0.6,2>, 0.03, 10000 
      rotate <0,RotY1,0>
      translate <0,PosY1,0> }
    cylinder { <0,0.6,0><2,0.6,2>, 0.03, 10000 
      rotate <0,RotY2,0>
      translate <0,PosY2,0> }
    cylinder { <0,0.6,0><2,0.6,2>, 0.03, 10000 
      rotate <0,RotY3,0>
      translate <0,PosY3,0> }
    ...
}

Anyway, I changed the structure to single blob version and
got render time of... 1 hour 6 minutes! It's shorter time
with the previous run, but still very much the same as with
the original code, so at this time blobs didn't speed up
things. That is tragical, because I already had strong
faith in faster rendering. :=)

   Larp


Post a reply to this message

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