POV-Ray : Newsgroups : povray.newusers : blob between declared object Server Time
27 Nov 2024 17:40:13 EST (-0500)
  blob between declared object (Message 1 to 6 of 6)  
From: krus
Subject: blob between declared object
Date: 6 Sep 2002 06:15:06
Message: <web.3d787f3ceba2df3426f959360@news.povray.org>
Hi all
i'am very 'green' so bare over with me..

I'm having two declared objects (just a sphere and a box):
obj1 & obj2
I would like to make a blob between them

i have tried

blob{
    threshold .12
    obj1
    obj2
    }
but that gives an error (must have one object..)

same with

blob{
    threshold .12
    object{obj1}
    object{obj2}
    }

i have looked through the 'handblob example' but all segments are
'hardcoded' inside the blobdefinition.
is it not posible 'to blob' with named/declared objects?
if so -how can u blob between complext objects?

regards krus


Post a reply to this message

From: Christoph Hormann
Subject: Re: blob between declared object
Date: 6 Sep 2002 07:13:23
Message: <3D788DD2.8471C63E@gmx.de>
krus wrote:
> 
> Hi all
> i'am very 'green' so bare over with me..
> 
> I'm having two declared objects (just a sphere and a box):
> obj1 & obj2
> I would like to make a blob between them
> 
> [...]

Where is written that the blob object accepts arbitrary objects as
components?

The allowed components are:

sphere{<Center>, Radius, [ strength ] Strength [COMPONENT_MODIFIER...] }
cylinder{<End1>, <End2>, Radius, [ strength ] Strength
[COMPONENT_MODIFIER...] }



Blobbing arbitrary objects isn't possible but you can achieve something

isosurface functions'.  The IsoCSG library also contains some macros for
simplifying this:

http://www-public.tu-bs.de:8080/~y0013390/pov/ic/index.html

and it works for arbitrary functions, therefore also for shapes like
boxes.  See:

http://www-public.tu-bs.de:8080/~y0013390/pov/ic/docu02.html#BlobShape


Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Tom Melly
Subject: Re: blob between declared object
Date: 6 Sep 2002 07:28:11
Message: <3d78914b@news.povray.org>
"krus" <nomail@nomail> wrote in message
news:web.3d787f3ceba2df3426f959360@news.povray.org...
> Hi all
> i'am very 'green' so bare over with me..
>

See Cristoph's reply, but it's also worth mentioning (unless this has been
changed in 3.5) that you can't even declare valid blob components outside of a
blob - e.g.:

#declare BC1 = sphere{0,1,1}

blob{
    threshold 0.5
    object{BC1}
    sphere{0,1,1}
}

will fail on the declaration of BC1, since the extra component is only valid
within a blob statement. A macro call from within the blob could probably get
around any limitations that this seems to impose.

If this is wrong, will someone please correct it?


Post a reply to this message

From: krus
Subject: Re: blob between declared object
Date: 6 Sep 2002 08:55:06
Message: <web.3d78a51c18aeca4226f959360@news.povray.org>
Christoph Hormann wrote:
>
>krus wrote:
>>
>> Hi all
>> i'am very 'green' so bare over with me..
>>
>> I'm having two declared objects (just a sphere and a box):
>> obj1 & obj2
>> I would like to make a blob between them
>>
>> [...]
>
>Where is written that the blob object accepts arbitrary objects as
>components?



>The allowed components are:
>
>sphere{<Center>, Radius, [ strength ] Strength [COMPONENT_MODIFIER...] }
>cylinder{<End1>, <End2>, Radius, [ strength ] Strength
>

>
>Blobbing arbitrary objects isn't possible but you can achieve something

>isosurface functions'.  The IsoCSG library also contains some macros for
>simplifying this:
>
>http://www-public.tu-bs.de:8080/~y0013390/pov/ic/index.html
>
>and it works for arbitrary functions, therefore also for shapes like
>boxes.  See:
>
>http://www-public.tu-bs.de:8080/~y0013390/pov/ic/docu02.html#BlobShape
>
>
>Christoph
>
>POV-Ray tutorials, IsoWood include,
>TransSkin and more: http://www.tu-bs.de/~y0013390/
>Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______
>

That explain it!
Thanks to both of you!

regards krus


Post a reply to this message

From: Greg M  Johnson
Subject: Re: blob between declared object
Date: 9 Sep 2002 09:05:39
Message: <3d7c9ca3$2@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3D788DD2.8471C63E@gmx.de...
>
> Where is written that the blob object accepts arbitrary
> objects as components?
>

You *should* be able to do something along the lines of what he's trying.
Here's the workaround:

Use macros!

#macro blobby1()
        sphere{x,2,1}
        sphere{y,2,1}
#end

#macro blobby2()
        sphere{-x,2,1}
#end

blob{
threshold 0.1
blobby1()
blobby2()
translate 8*z
pigment{rgb 1} finish{ambient 1}
}


Post a reply to this message

From: krus
Subject: Re: blob between declared object
Date: 9 Sep 2002 20:20:04
Message: <web.3d7d3a9718aeca4226f959360@news.povray.org>
Greg M. Johnson wrote:
>"Christoph Hormann" <chr### [at] gmxde> wrote in message
>news:3D788DD2.8471C63E[at]gmx.de...
>>
>> Where is written that the blob object accepts arbitrary
>> objects as components?
>>
>
>You *should* be able to do something along the lines of what he's trying.
>Here's the workaround:
>
>Use macros!
>
>#macro blobby1()
>        sphere{x,2,1}
>        sphere{y,2,1}
>#end
>
>#macro blobby2()
>        sphere{-x,2,1}
>#end
>
>blob{
>threshold 0.1
>blobby1()
>blobby2()
>translate 8*z
>pigment{rgb 1} finish{ambient 1}
>}
>

That was a very interesting example!
Thank you!
regards krus


Post a reply to this message

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