POV-Ray : Newsgroups : povray.unofficial.patches : Macros in POV-source Server Time
1 Sep 2024 18:18:54 EDT (-0400)
  Macros in POV-source (Message 1 to 5 of 5)  
From: Paul Blaszczyk
Subject: Macros in POV-source
Date: 19 Nov 2000 18:27:51
Message: <3A186246.8AFA7CBC@alpharay.de>
Hi,

what you think about implementing of macros directly in POV
source-code??
I don't mean every small macro, i mean the famous macros,  like the
hair-macro and the tree-macros. Theese will be much faster in the source
as an POV-macro.

It is possible? Hard to implement?

Paul


Post a reply to this message

From: Chris Huff
Subject: Re: Macros in POV-source
Date: 19 Nov 2000 20:27:59
Message: <chrishuff-F1CBC4.20281919112000@news.povray.org>
In article <3A186246.8AFA7CBC@alpharay.de>, Paul Blaszczyk 
<3d### [at] alpharayde> wrote:

> what you think about implementing of macros directly in POV
> source-code??
> I don't mean every small macro, i mean the famous macros,  like the
> hair-macro and the tree-macros. Theese will be much faster in the source
> as an POV-macro.

More work than it is worth, and it would break consistency with the rest 
of the POV language. If those things are added as POV features, they 
should be modified to use the correct syntax. For example, trees should 
be objects, not functions, POV keywords should all be lower-case, etc...
Also, it would be a tremendous amount of work to simply convert the more 
complex macros and includes into functions.

BTW, for a lot of my patches, I do prototyping in POV-Script and then 
use that as a base for the actual patch. The particle_system patch was 
descended from a simple particle system written in POV-Script, the 
extended blur patch I am now working on has it's algorithms being tested 
in .pov files, etc...

Also, some features were originally macros, for example, the "sgn()" 
function in MegaPOVPlus.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Geoff Wedig
Subject: Hair Macro? (Re: Macros in POV-source)
Date: 20 Nov 2000 08:39:38
Message: <3a192999@news.povray.org>
Paul Blaszczyk <3d### [at] alpharayde> wrote:

> Hi,

> what you think about implementing of macros directly in POV
> source-code??
> I don't mean every small macro, i mean the famous macros,  like the
> hair-macro and the tree-macros. Theese will be much faster in the source
> as an POV-macro.

I thought I had a pretty good handle on what was out there.  Is there a hair
macro?  If so, where can I get it?  I don't see anything on the pov links
page.

Geoff


Post a reply to this message

From: Warp
Subject: Re: Hair Macro? (Re: Macros in POV-source)
Date: 20 Nov 2000 09:28:36
Message: <3a193514@news.povray.org>
Geoff Wedig <wed### [at] darwinepbicwruedu> wrote:
: I thought I had a pretty good handle on what was out there.  Is there a hair
: macro?  If so, where can I get it?  I don't see anything on the pov links
: page.

  There may be several, but I think that Colefax's macro is one of the
most popular.
  It may be a little hard to find since it's "hidden" inside another
macro: The povray compressed mesh (PCM) macro. The hair macro is part of it.

http://www.geocities.com/ccolefax/pcm.html

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Geoff Wedig
Subject: Re: Hair Macro? (Re: Macros in POV-source)
Date: 21 Nov 2000 07:55:16
Message: <3a1a70b3$1@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:

> Geoff Wedig <wed### [at] darwinepbicwruedu> wrote:
> : I thought I had a pretty good handle on what was out there.  Is there a hair
> : macro?  If so, where can I get it?  I don't see anything on the pov links
> : page.

>   There may be several, but I think that Colefax's macro is one of the
> most popular.
>   It may be a little hard to find since it's "hidden" inside another
> macro: The povray compressed mesh (PCM) macro. The hair macro is part of it.

Ah, that would explain why I couldn't find it.  Thanks.

Geoff


Post a reply to this message

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