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:22:52 EDT (-0400)
  Re: A difference as a component in a blob?  
From: gonzo
Date: 6 Jun 2006 23:35:24
Message: <4486497c@news.povray.org>
nevered 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}}
>  }
> 
> the problem comes up at the top, right after the 'threshold' line
> 
> the error i get says "Need at least one component in a blob" and highlights
> the 'difference' line.
> 
> any suggestions/solutions?
> 
> the end result should look like an elongated crescent with a flat, wide cone
> sticking out of the inside of the crescent at an angle.
> 
> I've tried declaring the difference bit as its own thing and giving that the
> strength modifier instead, but that gives no such luck, either
> 
> 

As I recall, you can only use spheres and cylinders in a blob.  You can 
use a negative strength to achieve the difference.

RG


Post a reply to this message

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