POV-Ray : Newsgroups : povray.newusers : Blobs not ... blobbing Server Time: 16 Jun 2019 06:38:45 GMT
  Blobs not ... blobbing (Message 1 to 4 of 4)  
From: Bald Eagle
Subject: Blobs not ... blobbing
Date: 5 Aug 2016 17:10:01
Message: <web.57a4c769dab5ab6cb488d9aa0@news.povray.org>
Experiencing very unblob-like behaviour.   Any ideas why?
I'm sure I'm missing some small thing.

When I decrese the strength to 0.5 and the threshold is at 1, it gets
decidededly blobby - but in the reverse manner which I desire.   :(


#macro DiamondCubicBlob (Corner, S)
    #declare Quarter =
    blob {
    threshold 0.01
    sphere   {<0.25, 0.25, 0.25>, Sph, S texture {T1}}               // center

    sphere   {<0, 0, 0>, Sph, S texture {T1}}
    //cylinder {<0, 0, 0>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }

    sphere   {<0.5, 0, 0.5>, Sph, S texture {T1}}
    //cylinder {<0.5, 0, 0.5>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }

    sphere   {<0.5, 0.5, 0>, Sph, S texture {T1}}
    //cylinder {<0.5, 0.5, 0>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }

    sphere   {<0, 0.5, 0.5>, Sph, S texture {T1}}
    //cylinder {<0, 0.5, 0.5>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }
    } // end union Quarter

    union {
        object {Quarter}
        object {Quarter translate <0.5, 0.5, 0>}
        object {Quarter translate <0, 0.5, 0.5>}
        object {Quarter translate <0.5, 0, 0.5>}
        //threshold 1
        translate Corner
        }
#end // end macro DiamondCubicBlob

#declare Strength = 100;
#declare Step = 1;

#for (Z, 0, 10, Step)
    #for (Y, 0, 10, Step)
        #for (X, 0, 10, Step)
            #local Coordinate = <X, Y, Z>;
            DiamondCubicBlob (Coordinate, Strength)
        #end // end for X
    #end // end for Y
#end // end for Z


Post a reply to this message

From: omniverse
Subject: Re: Blobs not ... blobbing
Date: 5 Aug 2016 21:10:00
Message: <web.57a5004d7be9a134b1933f770@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Experiencing very unblob-like behaviour.   Any ideas why?
> I'm sure I'm missing some small thing.
>
> When I decrese the strength to 0.5 and the threshold is at 1, it gets
> decidededly blobby - but in the reverse manner which I desire.   :(

What are you using for radius with Sph?

I get the usual blobbiness I expect by using Sph=0.5 or less, while also
changing Strength to 2, and threshold 1.

Of course, I can't guess what you're actually wanting to do. Maybe just a
problem with how strength reacts close to surfaces...?

I'm definitely not the best choice for help. ;)


Post a reply to this message

From: Bald Eagle
Subject: Re: Blobs not ... blobbing
Date: 5 Aug 2016 21:45:00
Message: <web.57a5084d7be9a1345e7df57c0@news.povray.org>
"omniverse" <omn### [at] charternet> wrote:

> What are you using for radius with Sph?
>
> I get the usual blobbiness I expect by using Sph=0.5 or less, while also
> changing Strength to 2, and threshold 1.

Ah.   Now that you point it out, I back-tracked the layout and my radius was
indeed too small.   0.1     I kept increasing the strength, and _nothing_
happened, which had me perplexed, but I can now see why that should be the
expected behaviour.

I knew it was a stupid wetware error, and you nailed it.
Been a while since I used blobs, and I was hurrying.
It's always the simple things.   :|

Thanks for spotting that and clearing things up.   :)


Post a reply to this message

From: omniverse
Subject: Re: Blobs not ... blobbing
Date: 6 Aug 2016 00:50:06
Message: <web.57a533527be9a134b1933f770@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "omniverse" <omn### [at] charternet> wrote:
>
> > What are you using for radius with Sph?
> >
> > I get the usual blobbiness I expect by using Sph=0.5 or less, while also
> > changing Strength to 2, and threshold 1.
>
> Ah.   Now that you point it out, I back-tracked the layout and my radius was
> indeed too small.   0.1     I kept increasing the strength, and _nothing_
> happened, which had me perplexed, but I can now see why that should be the
> expected behaviour.
>
> I knew it was a stupid wetware error, and you nailed it.
> Been a while since I used blobs, and I was hurrying.
> It's always the simple things.   :|
>
> Thanks for spotting that and clearing things up.   :)

Very happy to have helped at all. Been too long since I did much of anything
with blob (and POV-Ray) and always seemed like I was relearning every time when
I was.

First number I tried was Sph=1 and it was bunched close together, so figured you
might have been trying smaller than that for the atomized look.

Anyone know if original surfaces, as of yet unchanged by either Strength or
threshold, must touch or merge before any interaction takes place?
Or does Strength and threshold allow for simply nearby surfaces to react?


Post a reply to this message

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