POV-Ray : Newsgroups : povray.general : recursive objects. Server Time
2 Nov 2024 13:21:36 EDT (-0400)
  recursive objects. (Message 1 to 5 of 5)  
From: abc
Subject: recursive objects.
Date: 29 Mar 1999 20:48:34
Message: <37002F51.735EA24D@email.uc.edu>
I'm trying to make a few objects for a scene I'm working on and am
wondering if there is an easy way to do recursion in POVray, e.g.,
trees.  I can do it using while loops and #declares...(declare an object
as multiples of itself scaled and translated/rotated) but am wondering
if there is an easier way as this eats up a lot of memory and processor
time.  Thanks for any attention this gets.


Post a reply to this message

From: Nieminen Mika
Subject: Re: recursive objects.
Date: 30 Mar 1999 11:53:08
Message: <37010174.0@news.povray.org>
abc <def### [at] emailucedu> wrote:
: I'm trying to make a few objects for a scene I'm working on and am
: wondering if there is an easy way to do recursion in POVray, e.g.,
: trees.  I can do it using while loops and #declares...(declare an object
: as multiples of itself scaled and translated/rotated) but am wondering
: if there is an easier way as this eats up a lot of memory and processor
: time.

  AFAIK there's no other way.

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


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: recursive objects.
Date: 30 Mar 1999 13:44:39
Message: <37011b97.0@news.povray.org>
In article <37002F51.735EA24D@email.uc.edu> , abc <def### [at] emailucedu>
wrote:

> I'm trying to make a few objects for a scene I'm working on and am
> wondering if there is an easy way to do recursion in POVray, e.g.,
> trees.  I can do it using while loops and #declares...(declare an object
> as multiples of itself scaled and translated/rotated) but am wondering
> if there is an easier way as this eats up a lot of memory and processor
> time.  Thanks for any attention this gets.

What exactly do you want to use the recursion for, creating objects, i.e.
single leaves of a tree? If you want to create objects this way it will be
possible (with some limitations) to use macros.


    Thorsten


Post a reply to this message

From: Nieminen Mika
Subject: Re: recursive objects.
Date: 31 Mar 1999 02:08:57
Message: <3701ca09.0@news.povray.org>
Thorsten Froehlich <fro### [at] charliecnsiitedu> wrote:
: What exactly do you want to use the recursion for, creating objects, i.e.
: single leaves of a tree? If you want to create objects this way it will be
: possible (with some limitations) to use macros.

  The recursion limit for macros is very limited, so they are not very
useful here.

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


Post a reply to this message

From: Gilles Tran
Subject: Re: recursive objects.
Date: 31 Mar 1999 03:08:04
Message: <3701D861.BD00FECC@inapg.inra.fr>
In case you missed them, there are examples of recursive objects in the
povray directories (look for pyramid.pov and pyramid2.pov). Also, there have
been several examples of complex trees made with recursing algorithms
involving macros:
- Steve Pidgeon's macro posted on 1/1/99 in povray.binaries.images
- my own macro, posted last Friday in povray.binaries.utilities (and look at
the current "tree" threads in povray.binaries.images for examples)

Anyway, this process does use a lot of memory and processing time, but it's
the price to pay for complexity.

I hope this helps
Gilles Tran


abc wrote:

> I'm trying to make a few objects for a scene I'm working on and am
> wondering if there is an easy way to do recursion in POVray, e.g.,
> trees.  I can do it using while loops and #declares...(declare an object
> as multiples of itself scaled and translated/rotated) but am wondering
> if there is an easier way as this eats up a lot of memory and processor
> time.  Thanks for any attention this gets.


Post a reply to this message

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