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:19:38 EDT (-0400)
  Re: A difference as a component in a blob?  
From: Mike Williams
Date: 7 Jun 2006 00:06:11
Message: <9DYzeAAaBlhEFwVX@econym.demon.co.uk>
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


Post a reply to this message

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