POV-Ray : Newsgroups : povray.general : Macro tutorial Server Time
5 Nov 2024 15:56:26 EST (-0500)
  Macro tutorial (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Andrew Cocker
Subject: Macro tutorial
Date: 30 Apr 1999 18:14:42
Message: <372a1d42.0@news.povray.org>
Hi all,
    I really want to be able to write my own macros similar to Maketree and Madpipe by
Gilles Tran, but I just don't understand what's going on. I can *just about* get my
head
round a very simple macro, but when loops get involved, I'm totally lost. Maybe I'm
just
stoopid. Would it be possible for someone to put together a tutorial for me that
explains
what's going on in this kind of recursive macro, or point me in the direction of an
existing tutorial? I would be most grateful.
    Oh..and yes, I have RTFM ;-)

all the best,

--
----------------------
Andy
------------------------------------------------------------------------------------------
-
--The Home Of Lunaland--
--visit my POV-Ray gallery--
--listen to my music--
www.acocker.freeserve.co.uk


Post a reply to this message

From: Spider
Subject: Re: Macro tutorial
Date: 1 May 1999 00:24:21
Message: <372A7293.B94E1FDB@bahnhof.se>
See post in text.tutorials.
:-)



Andrew Cocker wrote:
> 
> Hi all,
>     I really want to be able to write my own macros similar to Maketree and Madpipe
by
> Gilles Tran, but I just don't understand what's going on. I can *just about* get my
head
> round a very simple macro, but when loops get involved, I'm totally lost. Maybe I'm
just
> stoopid. Would it be possible for someone to put together a tutorial for me that
explains
> what's going on in this kind of recursive macro, or point me in the direction of an
> existing tutorial? I would be most grateful.
>     Oh..and yes, I have RTFM ;-)
> 
> all the best,
> 
> --
> ----------------------
> Andy
>
------------------------------------------------------------------------------------------
> -
> --The Home Of Lunaland--
> --visit my POV-Ray gallery--
> --listen to my music--
> www.acocker.freeserve.co.uk

-- 
//Spider    --  [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
And the meek'll inherit what they damn well please
	Get ahead, go figure, go ahead and pull the trigger
		Everything under the gun
			--"Sisters Of Mercy" -- "Under The Gun"


Post a reply to this message

From: Phil Clute
Subject: Re: Macro tutorial
Date: 1 May 1999 04:18:15
Message: <372AAC21.4D02360A@tiac.net>
In addition to Spider's instruction,
This is also a good tutorial on looping and using macros
by Sonya Roberts:  http://www.spake.org/rtimes/article/povindx.htm

-- 
...coffee?...yes please! extra sugar,extra cream...Thank you.


Post a reply to this message

From: Bob Hughes
Subject: Re: Macro tutorial
Date: 1 May 1999 05:09:11
Message: <372AB664.BDE0E4EF@aol.com>
Although great tutorials there (didn't realize Sonya R. had done these) I
failed to find any mention of 'macro', I would have been interested to
learn more about macros too. :(


Phil Clute wrote:
> 
> In addition to Spider's instruction,
> This is also a good tutorial on looping and using macros
> by Sonya Roberts:  http://www.spake.org/rtimes/article/povindx.htm
> 
> --
> ...coffee?...yes please! extra sugar,extra cream...Thank you.

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

From: Gilles Tran
Subject: Re: Macro tutorial
Date: 1 May 1999 08:28:31
Message: <372AE5ED.E6F20A38@inapg.inra.fr>
Recursive macros were a cypher too until I found the pyramid.pov & pyramid2.pov macros
in the
povray directory. There was (is ?) also an example of a simple fractal tree made with
a
recursive macro in the isosurface patch which was the grand daddy of the MakeTree
family. I
didn't check with the latest version of this patch but it should be still there. Most
of what
I learnt on macros was obtained by reverse-engineering the clean, well-designed ones
by Chris
Colefax, John VanSickle, Margus Ramst, Steve Pigeon and many other contributors in the
povray
newsgroups.
Gilles

Andrew Cocker wrote:

> Hi all,
>     I really want to be able to write my own macros similar to Maketree and Madpipe
by
> Gilles Tran, but I just don't understand what's going on. I can *just about* get my
head
> round a very simple macro, but when loops get involved, I'm totally lost. Maybe I'm
just
> stoopid. Would it be possible for someone to put together a tutorial for me that
explains
> what's going on in this kind of recursive macro, or point me in the direction of an
> existing tutorial? I would be most grateful.
>     Oh..and yes, I have RTFM ;-)
>
> all the best,
>
> --
> ----------------------
> Andy
>
------------------------------------------------------------------------------------------
> -
> --The Home Of Lunaland--
> --visit my POV-Ray gallery--
> --listen to my music--
> www.acocker.freeserve.co.uk


Post a reply to this message

From: Andrew Cocker
Subject: Re: Macro tutorial
Date: 1 May 1999 10:12:30
Message: <372afdbe.0@news.povray.org>
Thanks Gilles and everybody else who replied. I agree that reverse-engineering would
be
the way to go, leading to maximum understanding of what's going on. It's just that
most if
not all of the examples I've looked at so far succeed only in confusing me. BUT...I'll
give it another go.

--
----------------------
Andy
------------------------------------------------------------------------------------------
-
--The Home Of Lunaland--
--visit my POV-Ray gallery--
--listen to my music--
www.acocker.freeserve.co.uk


Gilles Tran <tra### [at] inapginrafr> wrote in message
news:372AE5ED.E6F20A38@inapg.inra.fr...
> Recursive macros were a cypher too until I found the pyramid.pov & pyramid2.pov
macros
in the
> povray directory. There was (is ?) also an example of a simple fractal tree made
with a
> recursive macro in the isosurface patch which was the grand daddy of the MakeTree
family. I
> didn't check with the latest version of this patch but it should be still there.
Most of
what
> I learnt on macros was obtained by reverse-engineering the clean, well-designed ones
by
Chris
> Colefax, John VanSickle, Margus Ramst, Steve Pigeon and many other contributors in
the
povray
> newsgroups.
> Gilles


Post a reply to this message

From: Phil Clute
Subject: Re: Macro tutorial
Date: 1 May 1999 23:30:21
Message: <372BBA27.8CF9FBDE@tiac.net>
Perhaps I was confused,

I'm only a beginner with C programing, but as I understand it
macros are esentially the use of the keyword "define" or in the case
of pov "declare" which establish constants(I'm sure there's a 
programer here that can correct my definition).

POV of course also uses the keyword "macro" which is more like a
function
(the pov docs point this out).

As far as "macro" is concerned I've searched high and low to no avail
in order to learn more about this. If you do find anything, please let 
me know...

-- 
...coffee?...yes please! extra sugar,extra cream...Thank you.


Post a reply to this message

From: Jean Montambeault
Subject: Re: Macro tutorial
Date: 2 May 1999 00:05:45
Message: <372bc109.0@news.povray.org>
Hello Andrew.

        Tony B. has a real neat little macro in povray.utilities that, in my
opinion, describes very well what's all about. The rest is just a question
of nesting carefully the pairs #macro....#end and other #while...#end & co.
For me, a macro is much like a #declare with parameters that you can pass.

        Jean


>Hi all,
>    I really want to be able to write my own macros similar to Maketree and
Madpipe


Post a reply to this message

From: Ron Parker
Subject: Re: Macro tutorial
Date: 3 May 1999 10:30:41
Message: <372da501.0@news.povray.org>
On Sat, 01 May 1999 13:30:53 +0200, Gilles Tran <tra### [at] inapginrafr> wrote:
>Recursive macros were a cypher too until I found the pyramid.pov & pyramid2.pov
macros in the
>povray directory. There was (is ?) also an example of a simple fractal tree made with
a
>recursive macro in the isosurface patch which was the grand daddy of the MakeTree
family.

That macro will serve only to confuse you, as the syntax and semantics of the 
isosurface macros were not at all the same.


Post a reply to this message

From: Gilles Tran
Subject: Re: Macro tutorial
Date: 3 May 1999 11:51:07
Message: <372DB868.DEF599A1@inapg.inra.fr>
Oops, my mistake. Should have checked before. Since the isosurface patch is 3.1 now, I
had assumed
that the macro examples had been ported to 3.1 too and to the official macro syntax.
Obviously
there was no reason for Ryoichi Suzuki to do so. However, I did use the original D.
Skarda
algorithm (in the old macro syntax) as a basis for my first 3.1 tree macro, which was
the really
hard way to learn how to create macros.
G.

Ron Parker wrote:

> On Sat, 01 May 1999 13:30:53 +0200, Gilles Tran <tra### [at] inapginrafr> wrote:
> >Recursive macros were a cypher too until I found the pyramid.pov & pyramid2.pov
macros in the
> >povray directory. There was (is ?) also an example of a simple fractal tree made
with a
> >recursive macro in the isosurface patch which was the grand daddy of the MakeTree
family.
>
> That macro will serve only to confuse you, as the syntax and semantics of the
> isosurface macros were not at all the same.


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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