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