POV-Ray : Newsgroups : povray.general : Macros Server Time
20 Nov 2024 10:34:58 EST (-0500)
  Macros (Message 1 to 10 of 10)  
From: dave
Subject: Macros
Date: 2 Oct 2001 22:32:15
Message: <3bba78af@news.povray.org>
Hello  again everyone.. 

I'm having some problems find Macros.. namely I need some macros that will do a good
stone look.. like stone henge.. I'm sure if I played long enough with the Pov I would
eventually figure it out, but as I am still considered a newbie, I would like some
direction.

Thanks
Dave


Post a reply to this message

From: Warp
Subject: Re: Macros
Date: 3 Oct 2001 04:31:00
Message: <3bbaccc4@news.povray.org>
dav### [at] intrepidvoygrcom wrote:
: I'm having some problems find Macros.. namely I need some macros that will do a good
stone look..

  Sorry for not answering to your question, but I think that there's a bit
misleading terminology here. When you say "macro" it's quite clear that you
are not talking about the POV-Ray #macro feature, but just about general
include files or POV-Ray script/textures in general.
  Of course what you are asking for can be implemented with a #macro, but
that's not necessary at all - it could just as well be a #declared texture and
that's it.

  To avoid confusion it may be better to use the correct terminology for what
you are looking for. I think that what you are looking for is "a texture that
will do a good stone look".

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: dave
Subject: Re: Macros
Date: 3 Oct 2001 08:11:14
Message: <3bbb0062@news.povray.org>
Warp:
  See that's what I thought too, but I was talking to someone yesterday and they said
to look for a Macro.. Which I thought was odd, and that's why I thought I would ask..
because I thought it was just a texture, names T_Stonexxxx where you would do some
modifications on the Texture.  Like a Rougness, diffuse and the like.. Am I correct in
assuming this?

Dave

Warp <war### [at] tagpovrayorg> wrote:
>   Sorry for not answering to your question, but I think that there's a bit
> misleading terminology here. When you say "macro" it's quite clear that you
> are not talking about the POV-Ray #macro feature, but just about general
> include files or POV-Ray script/textures in general.
>   Of course what you are asking for can be implemented with a #macro, but
> that's not necessary at all - it could just as well be a #declared texture and
> that's it.

>   To avoid confusion it may be better to use the correct terminology for what
> you are looking for. I think that what you are looking for is "a texture that
> will do a good stone look".

> -- 
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Ken
Subject: Re: Macros
Date: 3 Oct 2001 09:00:40
Message: <3BBB0D43.E5D9E534@pacbell.net>
dav### [at] intrepidvoygrcom wrote:
> 
> Warp:
> See that's what I thought too, but I was talking to someone yesterday and
> they said to look for a Macro.. Which I thought was odd, and that's why I
> thought I would ask.. because I thought it was just a texture, names
> T_Stonexxxx where you would do some modifications on the Texture.  Like
> a Rougness, diffuse and the like.. Am I correct in assuming this?

Look in the include files folder where you will find a file called
stones.inc. It contains many predeclared stone textures that you
can use in your scenes. It will also help you understand how to
design your own by studing how they work.

-- 
Ken Tyler


Post a reply to this message

From: dave
Subject: Re: Macros
Date: 3 Oct 2001 09:20:30
Message: <3bbb109e@news.povray.org>
Ken:
  I've went through most of the include files in the INCLUDE Directory.. I have a
understaing of how they work, and how they are constructed.. In fact I've used just
about all the stone features.. the problem I have, is makeing the stone look rough...
rough enough to be a stone.. Not a polished rock.  Of course, I know that doing POV
brings a certain sense of Sur-realism to the picture, which I will incorporate into
other aspects of the picture.. I just trying to create stone pillars.. 

:)

Ken <tyl### [at] pacbellnet> wrote:

> Look in the include files folder where you will find a file called
> stones.inc. It contains many predeclared stone textures that you
> can use in your scenes. It will also help you understand how to
> design your own by studing how they work.

> -- 
> Ken Tyler


Post a reply to this message

From: Jérôme Grimbert
Subject: Re: Macros
Date: 3 Oct 2001 09:33:53
Message: <3BBB13C7.891A620B@atosorigin.com>
dav### [at] intrepidvoygrcom wrote:
> 
> Ken:
>   I've went through most of the include files in the INCLUDE Directory.. I have a
understaing of how they work, and how they are constructed.. In fact I've used just
about all the stone features.. the problem I have, is makeing the stone look rough...
rough enough to be a stone.. Not a polished rock.  Of course, I know that doing POV
brings a certain sense of Sur-realism to the picture, which I will incorporate into
other aspects of the picture.. I just trying to create stone pillars..
> 

So, you do not really want a pigment, but a rough aspect.

See http://mark.technolope.org/pages/rocktools.html

Good luck.


Post a reply to this message

From: dave
Subject: Re: Macros
Date: 3 Oct 2001 09:46:08
Message: <3bbb16a0@news.povray.org>
I will take a look at that.. thanks for the link!

Dave

> dav### [at] intrepidvoygrcom wrote:
>> 
>> Ken:
>>   I've went through most of the include files in the INCLUDE Directory.. I have a
understaing of how they work, and how they are constructed.. In fact I've used just
about all the stone features.. the problem I have, is makeing the stone look rough...
rough enough to be a stone.. Not a polished rock.  Of course, I know that doing POV
brings a certain sense of Sur-realism to the picture, which I will incorporate into
other aspects of the picture.. I just trying to create stone pillars..
>> 

> So, you do not really want a pigment, but a rough aspect.

> See http://mark.technolope.org/pages/rocktools.html

> Good luck.


Post a reply to this message

From: Tom Melly
Subject: Re: Macros
Date: 3 Oct 2001 09:52:55
Message: <3bbb1837$1@news.povray.org>
<dav### [at] intrepidvoygrcom> wrote in message news:3bbb109e@news.povray.org...
> Ken:
>   I've went through most of the include files in the INCLUDE Directory.. I
have a understaing of how they work, and how they are constructed.. In fact I've
used just about all the stone features.. the problem I have, is makeing the
stone look rough... rough enough to be a stone.. Not a polished rock.  Of
course, I know that doing POV brings a certain sense of Sur-realism to the
picture, which I will incorporate into other aspects of the picture.. I just
trying to create stone pillars..
>

Have you played around with normals? Aside from that, I would suggest either
switching to megapov or hanging on for a couple of weeks/days/whatever for pov
3.5 and using isosurfaces...


Post a reply to this message

From: dave
Subject: Re: Macros
Date: 3 Oct 2001 11:55:47
Message: <3bbb3503@news.povray.org>
Tom,

  I've picked up MegaPov and tryin to learn Iso Surfaces... I was never much good at
trig.. time to brush up.. :)

Thanks for all yoru help everyone!

Tom Melly <tom### [at] tomandlucouk> wrote:

> <dav### [at] intrepidvoygrcom> wrote in message news:3bbb109e@news.povray.org...

> Have you played around with normals? Aside from that, I would suggest either
> switching to megapov or hanging on for a couple of weeks/days/whatever for pov
> 3.5 and using isosurfaces...


Post a reply to this message

From: Tom Melly
Subject: Re: Macros
Date: 3 Oct 2001 12:25:27
Message: <3bbb3bf7@news.povray.org>
<dav### [at] intrepidvoygrcom> wrote in message news:3bbb3503@news.povray.org...
> Tom,
>
>   I've picked up MegaPov and tryin to learn Iso Surfaces... I was never much
good at trig.. time to brush up.. :)
>
> Thanks for all yoru help everyone!
>

There are some excellent iso-tutorials around - check the povray links. For
simple rocks, you might find a few blobs plus some normals would do the job -
e.g.

#declare StrengthVal = 1.0 // (+ or -) strength of component's radiating density
#declare RadiusVal   = 1.0 // (0 < RadiusVal) outer sphere of influence on other
components
blob
{
  // threshold (0.0 < threshold <= StrengthVal) surface falloff threshold #
  threshold 0.6
  sphere { < 0.75,   0,    0>, StrengthVal, RadiusVal }
  sphere { <-0.375,  0.65, 0>, StrengthVal, RadiusVal }
  sphere { <0.375,  0.65, 0.2>, StrengthVal, RadiusVal }
  sphere { <-0.175, 0, 0>, StrengthVal, RadiusVal }
  sphere { <-0.175, 0, -.25>, StrengthVal, RadiusVal }
  // [sturm]
  scale 2
  pigment{agate pigment_map{[0 Gray40][1/2 Gray50][1 Gray60]}}
  normal{granite}
  normal{agate}
}


Post a reply to this message

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