POV-Ray : Newsgroups : povray.general : A difference as a component in a blob? : Re: A difference as a component in a blob? Server Time
1 Aug 2024 00:24:53 EDT (-0400)
  Re: A difference as a component in a blob?  
From: nevered
Date: 7 Jun 2006 10:00:01
Message: <web.4486dbaa1ea405a44b9735830@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Wasn't it nevered who wrote:
> >here's what i'm trying to do:
> >
> > blob {
> >  threshold .5
> >  difference{
> >                sphere {
> >                        <0, 0, 0>, 1, 1
> >                        scale <12, 10, 1>
> >                        translate<0,0,.5>
> >                }
> >                cylinder {
> >                        <9,0,-20>, <9,0,20>, 10, 1
> >                        scale <1.7,.8,0>
> >                }
> >        }
> >  cone{
> >       <-2,0,.7>, .6, <5,0,-1.3>, .5, 1
> >       scale<0,5,.8>
> >  texture{pigment{color Yellow}}
> > }
>
> Blob doesn't accept the keywords "difference" or "cone".
>
> You can achieve the effect of "difference" by using negative blob
> strengths, but you can't blob a cone.
>
> union {
>  blob {
>   threshold .5
>                 sphere {
>                         <0, 0, 0>, 1, 1
>                         scale <12, 10, 1>
>                         translate<0,0,.5>
>                 }
>                 cylinder {
>                         <9,0,-20>, <9,0,20>, 10, -6
>                         scale <1.7,.8,0>
>                 }
>         }
>   cone{
>        <-2,0,.7>, .6, <5,0,-1.3>, .5
>        scale<0,5,.8> }
>   texture{pigment{color Yellow}}
>  }
> --
> Mike Williams
> Gentleman of Leisure

Thanks!

I had no idea you could use negative strengths.

I'll see what i can do about using a cylinder in place of the cone, since
the difference between the ends is only .1 anyway, and it has to blob to
another flattened sphere at the other end anyway


Post a reply to this message

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