POV-Ray : Newsgroups : povray.general : A difference as a component in a blob? Server Time
25 Dec 2024 01:31:58 EST (-0500)
  A difference as a component in a blob? (Message 1 to 5 of 5)  
From: nevered
Subject: A difference as a component in a blob?
Date: 6 Jun 2006 22:20:01
Message: <web.4486371619dc24e4b9735830@news.povray.org>
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


Post a reply to this message

From: gonzo
Subject: Re: A difference as a component in a blob?
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

From: Mike Williams
Subject: Re: A difference as a component in a blob?
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

From: Skip Talbot
Subject: Re: A difference as a component in a blob?
Date: 7 Jun 2006 03:39:01
Message: <44868295$1@news.povray.org>
Mike, I'm surprised you didn't bring up your blob like isosurface 
example on your isosurface tutorial page: 
http://www.econym.demon.co.uk/isotut/combine.htm

Using isosurfaces it would be possible to blob cones, right?

Skip


Post a reply to this message

From: nevered
Subject: Re: A difference as a component in a blob?
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.