POV-Ray : Newsgroups : povray.general : recursively defined objects and memory : Re: recursively defined objects and memory Server Time
29 Jul 2024 02:20:03 EDT (-0400)
  Re: recursively defined objects and memory  
From: Anthony D  Baye
Date: 14 Aug 2013 01:10:11
Message: <web.520b1085e896405b328783aa0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 14.08.2013 02:46, schrieb Bald Eagle:
>
> > Looks like you've run into the oft-encountered function/macro parse/render
> > dichotomy.
> >
> > As I understand it, and folks can correct me if I'm wrong or mis-state this,
> > functions are evaluated ONCE - at parse time.  So if you want something that
> > gets updated during RENDERING, then you need to call the function with a MACRO.
>
> Um... no, not at all.
>
> - Macros are /always/ evaluated during parsing.
>
> - Functions may be evaluated either during parsing or during rendering,
> depending on the context in which they are used.

So... Just not going to work?

The idea was to build up a progressively more complex function for the surface
of the planet.  While I could do this using built-in patterns, that wasn't the
point of the exercise.

I finally found the site where I first read about this:
http://freespace.virgin.net/hugo.elias/models/m_landsp.htm

The great thing about it is: the more iterations you do, the better it gets.

Regards,
A.D.B.


Post a reply to this message

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