|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|