![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Lo van den Berg
Subject: Why can I only render this at recursion_level <= 8 ?
Date: 22 Jan 1998 02:58:47
Message: <34c709eb.0@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hi,
I have a simple pythagoras tree. As you all know this is made using
recursion. I have one problem with it : the recursion level cannot be higher
than 8.
Is there something that I missed?
Lo van den Berg
lvd### [at] baan nl
Post a reply to this message
Attachments:
Download 'Boom.inc.txt' (1 KB)
Download 'Boom.pov.txt' (2 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lo van den Berg <lvd### [at] baan nl> wrote in article
<34c709eb.0@news.povray.org>...
> Hi,
>
> I have a simple pythagoras tree. As you all know this is made using
> recursion. I have one problem with it : the recursion level cannot be
higher
> than 8.
>
> Is there something that I missed?
>
> Lo van den Berg
> lvd### [at] baan nl
>
You're not running out of memory are you ? All that recursive #include-ing
of files is going to eat up memory fast! Do you get any errors during
parsing ? Think about how many copies of the file and all the objects your
going to be creating - from looking at the code it looks like in each
recursion you produce two more copies of everything, so you start with 1,
then you have 3, then 7, then 15, and so on until at level 8 you've got 255
copies, even if the file and objects only take up 100k per level that's
25500k or 24Mb!
--
Scott Hill
Sco### [at] DDLinks co uk
Software Engineer (and all round nice guy)
"The best trick the devil ever pulled was convincing people he didn't
exist..."
- Verbal Kent.
"the Internet is here so we can waste time talking about nothing in
particular when we should be working" - Marcus Hill.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lo van den Berg wrote:
>
> Hi,
>
> I have a simple pythagoras tree. As you all know this is made using
> recursion. I have one problem with it : the recursion level cannot be higher
> than 8.
>
> Is there something that I missed?
>
> Lo van den Berg
> lvd### [at] baan nl
No time right now to check your code, but if its recursively calling
include files, there is a limitation to the depth that POVray supports
#including things. Check the docs. Presumably this is the problem, and
it is limited to 8. Thus, either find another way to make your thing, or
give the sources a bit of a hack, and compile your own version.
Michael Smith
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hi,
It is limited to 10 according to the docs, but I had a similar problem,
then I noticed that my recusive include file was included within an include
within an include (or something like that ;-).
I had the problem with some code I am working on to define a *VERY*
realistic fire (especially good as an animation - not so as a still but I'm
working on it)
--
Tristan Wibberley
(Remove the '.NO_LUNCHEON_MEAT' from my
email address to reply.)
Michael Smith <msm### [at] labyrinth net au> wrote in article
<34C### [at] labyrinth net au>...
| Lo van den Berg wrote:
| >
| > Hi,
| >
| > I have a simple pythagoras tree. As you all know this is made using
| > recursion. I have one problem with it : the recursion level cannot be
higher
| > than 8.
| >
| > Is there something that I missed?
| >
| > Lo van den Berg
| > lvd### [at] baan nl
|
| No time right now to check your code, but if its recursively calling
| include files, there is a limitation to the depth that POVray supports
| #including things. Check the docs. Presumably this is the problem, and
| it is limited to 8. Thus, either find another way to make your thing, or
| give the sources a bit of a hack, and compile your own version.
|
| Michael Smith
|
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Lo van den Berg wrote:
> Hi,
>
> I have a simple pythagoras tree. As you all know this is made using
> recursion. I have one problem with it : the recursion level cannot be higher
> than 8.
>
> Is there something that I missed?
>
> Lo van den Berg
> lvd### [at] baan nl
>
Try a file called "trees" at the Pile. It will do real recursion in Pov, unless I
read itwrong.
http://user.baden-online.de/~mbachman/pile/pile_eng.htm
Timewarp............................
WOW! What a strange warp!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |