POV-Ray : Newsgroups : povray.general : Declaring blob components ? Server Time
16 Oct 2026 20:32:17 EDT (-0400)
  Declaring blob components ? (Message 1 to 16 of 16)  
From: Moon47
Subject: Declaring blob components ?
Date: 27 Feb 2000 21:19:56
Message: <38B88C1C.8C4FE0D2@earthlink.net>
Basically how do i declare a blob component such as a cylinder...?
It will not seem to accept the strength as a valid cylinder entry...?

I want to declare a component and use i.e. MyCylinder to rotate ti
around the central components w/ out rewriting the entire component...?


Post a reply to this message

From: mr art
Subject: Re: Declaring blob components ?
Date: 27 Feb 2000 22:21:21
Message: <38B9E9BC.87AB090C@gci.net>
You could use macros
#macro MyCylynder(...) -y,+y,RB-.02 #end
#local S1=-50;#local S2=-100;
blob	{
		threshold .0001
		cylinder{0,y*.06,RB,20}
		cylinder{MyCylynder,S1 translate -x*.06}
		cylinder{MyCylynder,S1 translate -x*.06 rotate +y*120}
		cylinder{MyCylynder,S1 translate -x*.06 rotate -y*120}
		
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*030}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*090}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*150}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*210}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate -y*030}
		cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate -y*090}
		sphere	{0,RB,-100 scale <1,.65,1> translate -y*(RB*.35)}
		}

Moon47 wrote:
> 
> Basically how do i declare a blob component such as a cylinder...?
> It will not seem to accept the strength as a valid cylinder entry...?
> 
> I want to declare a component and use i.e. MyCylinder to rotate ti
> around the central components w/ out rewriting the entire component...?

-- 
Mr. Art

"Often the appearance of reality is more important 
than the reality of the appearance."
Bill DeWitt 2000


Post a reply to this message

From: Moon47
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 01:48:37
Message: <38B8CB14.67017D76@earthlink.net>
Thank you i will try ( try is the operative ) this my macro skill is none at this
point.
But still worth a try...
It still is not a declaration where i can change all the declared components at
once. Or can i... Like i said i have no understanding of the macro.. Well almost
none...

"mr.art" wrote:

> You could use macros
> #macro MyCylynder(...) -y,+y,RB-.02 #end
> #local S1=-50;#local S2=-100;
> blob    {
>                 threshold .0001
>                 cylinder{0,y*.06,RB,20}
>                 cylinder{MyCylynder,S1 translate -x*.06}
>                 cylinder{MyCylynder,S1 translate -x*.06 rotate +y*120}
>                 cylinder{MyCylynder,S1 translate -x*.06 rotate -y*120}
>
>                 cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*030}
>                 cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*090}
>                 cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*150}
>                 cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate +y*210}
>                 cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate -y*030}
>                 cylinder{MyCylynder,S2 translate <0,RB,-(RB-.01)> rotate -y*090}
>                 sphere  {0,RB,-100 scale <1,.65,1> translate -y*(RB*.35)}
>                 }
>
> Moon47 wrote:
> >
> > Basically how do i declare a blob component such as a cylinder...?
> > It will not seem to accept the strength as a valid cylinder entry...?
> >
> > I want to declare a component and use i.e. MyCylinder to rotate ti
> > around the central components w/ out rewriting the entire component...?
>
> --
> Mr. Art
>
> "Often the appearance of reality is more important
> than the reality of the appearance."
> Bill DeWitt 2000


Post a reply to this message

From: Ken
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 02:49:17
Message: <38BA2810.885CA53B@pacbell.net>
Moon47 wrote:
> 
> Thank you i will try ( try is the operative ) this my macro skill is none at this
> point.
> But still worth a try...
> It still is not a declaration where i can change all the declared components at
> once. Or can i... Like i said i have no understanding of the macro.. Well almost
> none...

There is now a tutorial available on using and making POV-Ray macros that may
help you understand them better -

http://www.hoboes.com/html/NetLife/POV/Scripting/

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: David Wilkinson
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 06:39:44
Message: <vjnkbscr3cs69bp1vtn2nng23es5su4ehj@4ax.com>
On Sat, 26 Feb 2000 19:29:53 -0700, Moon47 <rdm### [at] earthlinknet> wrote:

>Basically how do i declare a blob component such as a cylinder...?
>It will not seem to accept the strength as a valid cylinder entry...?
>
>I want to declare a component and use i.e. MyCylinder to rotate ti
>around the central components w/ out rewriting the entire component...?
  
Here is something using the same technique as mr.art's reply, but more self
explanatory.
It may do what you are looking for.

#macro Cy(PitchRad) <PitchRad,0,0> <PitchRad,1,0> Rad, Strength #end 

#local Rad =1;
#local Strength =2;

#local Ang=0;
blob {
      #while (Ang<360)
      cylinder { Cy(4) rotate y*Ang  }
      #local Ang=Ang+20;
      #end
      pigment {Red}
}         
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------


Post a reply to this message

From: Tom Melly
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 06:51:30
Message: <38ba6142@news.povray.org>
I'm having the same problem as Moon47.

Do I take it from the various answers given that it is not possible to
declare a whole blob component?


Post a reply to this message

From: David Wilkinson
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 14:47:41
Message: <q6klbskh7njnqkf39c6mhvk9q8b0hdrfo4@4ax.com>
On Mon, 28 Feb 2000 11:51:17 -0000, "Tom Melly" <tom### [at] tomandluforce9couk> wrote:

>I'm having the same problem as Moon47.
>
>Do I take it from the various answers given that it is not possible to
>declare a whole blob component?
>
What do you mean by "whole blob component"?
Blobs can be as complicated as you can devise them.  You only have to see H.E.Day's
images
to see the power of blobs.  Run the code I gave in my answer to Moon74 to see just one
blob.

In one blob you can keep on adding spheres and cylinders with positive and negative
strengths to add or subtract from the final shape.  These spheres and cylinders can
also
be distorted by uneven scaling. The individual components in a blob can be given
different
textures and this can all add up to a fiendishly complicated object. 

On top of this you can use csg to carve out or to add bits.

Alright, I've convinced myself, I must start to use blobs :-)
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------


Post a reply to this message

From: Moon47
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 17:04:28
Message: <38B9A1BE.4600D82C@earthlink.net>
Thank you o' linker of links...
Once again saving the day...
The link buster...
The magical...
The wonderful..
The illustrious...
Ect... Ect... Ect...

Ken wrote:

> Moon47 wrote:
> >
> > Thank you i will try ( try is the operative ) this my macro skill is none at this
> > point.
> > But still worth a try...
> > It still is not a declaration where i can change all the declared components at
> > once. Or can i... Like i said i have no understanding of the macro.. Well almost
> > none...
>
> There is now a tutorial available on using and making POV-Ray macros that may
> help you understand them better -
>
> http://www.hoboes.com/html/NetLife/POV/Scripting/
>
> --
> Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Moon47
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 17:08:10
Message: <38B9A29D.9969C220@earthlink.net>
I think they are hinting at that... =(
"If All Else Fails..."
"...Try Reading The Directions."
Famous quote from my none other than... My Father...

Tom Melly wrote:

> I'm having the same problem as Moon47.
>
> Do I take it from the various answers given that it is not possible to
> declare a whole blob component?


Post a reply to this message

From: Ken
Subject: Re: Declaring blob components ?
Date: 28 Feb 2000 17:09:54
Message: <38BAF1C9.BD6CF68C@pacbell.net>
Moon47 wrote:
> 
> Thank you o' linker of links...
> Once again saving the day...
> The link buster...
> The magical...
> The wonderful..
> The illustrious...
> Ect... Ect... Ect...

While I appreciate the praise ( who doesn't ? ) part of the credit should
also go to those writing the tutorials. Without their efforts I would have
nothing to link to.

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Mark Wagner
Subject: Re: Declaring blob components ?
Date: 29 Feb 2000 00:50:47
Message: <38bb5e37@news.povray.org>
David Wilkinson wrote in message ...
>Blobs can be as complicated as you can devise them.  You only have to see
H.E.Day's images
>to see the power of blobs.  Run the code I gave in my answer to Moon74 to
see just one
>blob.
>
>In one blob you can keep on adding spheres and cylinders with positive and
negative
>strengths to add or subtract from the final shape.  These spheres and
cylinders can also
>be distorted by uneven scaling. The individual components in a blob can be
given different
>textures and this can all add up to a fiendishly complicated object.


One limit:  A single blob cannot have more than one million components.

Mark


Post a reply to this message

From: Tom Melly
Subject: Re: Declaring blob components ?
Date: 29 Feb 2000 04:57:01
Message: <38bb97ed@news.povray.org>
David Wilkinson <dav### [at] cwcomnet> wrote in message
news:q6klbskh7njnqkf39c6mhvk9q8b0hdrfo4@4ax.com...
> On Mon, 28 Feb 2000 11:51:17 -0000, "Tom Melly"
<tom### [at] tomandluforce9couk> wrote:
>
> >I'm having the same problem as Moon47.
> >
> >Do I take it from the various answers given that it is not possible to
> >declare a whole blob component?
> >
> What do you mean by "whole blob component"?

I mean that you cannot declare a blob component in the way that you can
declare a sphere or box. Instead you have to declare the individual vectors
and so on that make up a component.


Post a reply to this message

From: David Wilkinson
Subject: Re: Declaring blob components ?
Date: 29 Feb 2000 05:43:54
Message: <9j8nbskb20kp6fne8mopue11oknvsf2tem@4ax.com>
On Tue, 29 Feb 2000 00:54:08 -0500, "Mark Wagner" <mar### [at] gtenet> wrote:

>
>David Wilkinson wrote in message ...
>>Blobs can be as complicated as you can devise them.
<snip>.
>
>One limit:  A single blob cannot have more than one million components.
>
>Mark
>
I'll just have to try and keep them simple then :-)
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------


Post a reply to this message

From: David Wilkinson
Subject: Re: Declaring blob components ?
Date: 29 Feb 2000 05:53:06
Message: <bq8nbsoer1k6cndiri5fa8b280hp4uku1m@4ax.com>
On Tue, 29 Feb 2000 09:56:47 -0000, "Tom Melly" <tom### [at] tomandluforce9couk> wrote:
>
>David Wilkinson <dav### [at] cwcomnet> wrote in message
>news:q6klbskh7njnqkf39c6mhvk9q8b0hdrfo4@4ax.com...
>> On Mon, 28 Feb 2000 11:51:17 -0000, "Tom Melly"
><tom### [at] tomandluforce9couk> wrote:
>>
>> >I'm having the same problem as Moon47.
>> >
>> >Do I take it from the various answers given that it is not possible to
>> >declare a whole blob component?
>> >
>> What do you mean by "whole blob component"?
>
>I mean that you cannot declare a blob component in the way that you can
>declare a sphere or box. Instead you have to declare the individual vectors
>and so on that make up a component.
>
OK Tom, we're just differing on semantics. Because a blob is not a regular geomtric
solid
the information necessary to define a blob increases with the complexity of the shape.
Even with a box you have to define the vectors that define it.
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------


Post a reply to this message

From: PoD
Subject: Re: Declaring blob components ?
Date: 29 Feb 2000 09:21:32
Message: <38BBDAAB.E43ABFEB@merlin.net.au>
David Wilkinson wrote:
> 
> On Tue, 29 Feb 2000 09:56:47 -0000, "Tom Melly" <tom### [at] tomandluforce9couk> wrote:
> >
> >David Wilkinson <dav### [at] cwcomnet> wrote in message
> >news:q6klbskh7njnqkf39c6mhvk9q8b0hdrfo4@4ax.com...
> >> On Mon, 28 Feb 2000 11:51:17 -0000, "Tom Melly"
> ><tom### [at] tomandluforce9couk> wrote:
> >
> >I mean that you cannot declare a blob component in the way that you can
> >declare a sphere or box. Instead you have to declare the individual vectors
> >and so on that make up a component.
> >
> OK Tom, we're just differing on semantics. Because a blob is not a regular geomtric
solid
> the information necessary to define a blob increases with the complexity of the
shape.
> Even with a box you have to define the vectors that define it.

Any primitive can be #declared regardless of its complexity, but the
_components_ of a blob cannot.
There is a practical significance.  E.g. blob components can't be stored
in arrays.

PoD.


Post a reply to this message

From: Moon47
Subject: Re: Declaring blob components ?
Date: 29 Feb 2000 21:19:25
Message: <38BB2EFF.1504033B@earthlink.net>
You're right now would be a good time to say that without this tutorial i
would not have finished my " Two Cents..." Post... A very awesome tutorial i
will make sure to than the author at first chance...
Thanks again... =)

Ken wrote:

> Moon47 wrote:
> >
> > Thank you o' linker of links...
> > Once again saving the day...
> > The link buster...
> > The magical...
> > The wonderful..
> > The illustrious...
> > Ect... Ect... Ect...
>
> While I appreciate the praise ( who doesn't ? ) part of the credit should
> also go to those writing the tutorials. Without their efforts I would have
> nothing to link to.
>
> --
> Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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