|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Took about 90 hours to render.  I can't do another level of recursion, or
else it would take 90 hours just to parse!
Took a few tries to render this.  The first try I used +am2 +r4, but that
was going to take weeks...  So I was forced to use +am1.
Radiosity + transparency + anti-aliasing = Long render
 Post a reply to this message
 Attachments:
 Download 'SomeFractal.jpg' (525 KB)
 
 
 Preview of image 'SomeFractal.jpg'
  
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Verrrry cool idea!
 Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Great image!
"Ronald Chen" <pyr### [at] shaw ca> wrote: Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | "Ronald Chen" <pyr### [at] shaw ca> wrote:
> Took about 90 hours to render.  I can't do another level of recursion, or
> else it would take 90 hours just to parse!
>
> Took a few tries to render this.  The first try I used +am2 +r4, but that
> was going to take weeks...  So I was forced to use +am1.
>
> Radiosity + transparency + anti-aliasing = Long render
Wow.  That is really sharp.  I like it.  Just beautifully designed and
executed all the way around!
Dave Matthews Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  | 
| From: Lutz-Peter Hooge Subject: Re: Some sort of Fractal - recmacro.jpg [1/1]
 Date: 30 Jul 2004 18:53:53
 Message: <410ad181@news.povray.org>
 
 |  |  | 
|  |  | 
|  |  | 
|  |  | Ronald Chen <pyr### [at] shaw ca> wrote:
> Took about 90 hours to render.  I can't do another level of recursion, or
> else it would take 90 hours just to parse!
I assume you generate everything in one big recursive macro, so that this
macro is called (sum_{n=0}^{recursion_depth} 8^n) times?
Using #declares it is possible to construct such an L-system fractal with
just recursion_depth+1 macro calls. This is much faster, though I doubt
you can add more than one additionaly level without running out of memory.
I tried with a very similar object, and with recursion_depth=5 it took 
more then 1GB memory in a few seconds, so I had to cancel it ;-)
I attached the scene file and a rendered image of it.
Lutz-Peter Post a reply to this message
 Attachments:
 Download 'recmacro.jpg' (62 KB)
 
 
 Preview of image 'recmacro.jpg'
  
 |  | 
|  |  | 
|  |  | 
|  |  | 
| From: Lutz-Peter Hooge Subject: Re: Some sort of Fractal - recmacro.pov [1/1]
 Date: 30 Jul 2004 18:53:54
 Message: <410ad182$1@news.povray.org>
 
 |  |  | 
|  |  | 
|  |  | 
|  |  | 
 Post a reply to this message
 Attachments:
 Download 'recmacro.pov.txt' (3 KB)
 
 
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Thanks for the suggestion Lutz!
But I am already doing the method you describe.  Infact at recursion level 4
your file took 17s, while mine took 14s.  But of course you have about 50k
more items to process at recursion level 4 (you have 177149 objects at
recursion 4, I have 126390).
Honestly I havn't let my computer try a recursion level 5 for very long yet.
Who knows, maybe it would only take 1 mins...hehe
But anyways, even recursion level 5 took 1 min to parse, it would take
forever to render using the same quality as my orginal image.
Btw, the method I used to generate the image doesn't involve a macro at all.
I just used a while loop.  That might speed yours up a bit if you tried
that.
Here's the pseudo code:
#declare base = object{some_kick_ass_object}
#declare unit = object {base}
#declare n = 4;
#while(n > 0)
#declare unit = union {
 object {base}  // this base object is your simple one.  you add scaled down
units around it etc
 union {
  // your scaled down version of unit objects, 8 of them for this picture
  }
}
#declare n = n - 1;
#end
//then you render the object by saying
object {unit}
Enjoy!
Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | ATTENTION: Extreme levels of excellentness detected!
I really like this! I can think of all sorts of things you could do with 
it - but at 90 hours per render... hmm... maybe not. ;-)
Andrew @ home.
 Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Ronald Chen <pyr### [at] shaw ca> wrote:
> But I am already doing the method you describe.  Infact at recursion level 4
> your file took 17s, while mine took 14s.
Ok, then I misunderstood your first post, it gave me the impression you had a 
problem with the parsing time.
> Btw, the method I used to generate the image doesn't involve a macro at all.
> I just used a while loop.  That might speed yours up a bit if you tried
> that.
IMHO it's more elegant with the macro, also I don't plan to develop this scene
further since it is just a cheap ripoff of yours. I only made it as an example.
Lutz-Peter Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Yes, I understand you coded that up just as an example, but the pseudo code
I showed is applicable all L-System sort of things  =)
 Post a reply to this message
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  |