|
|
Andrew C on Mozilla wrote:
...
> Aaaahhhh.... I seeeee..... If a pass a variable into a second function,
> POV-Ray calculates the value to pass ONCE, and then passes it, and it
> can then be used multiple times within the second function... excellent!
Yes, you've got it.
=)
> The *real* function I want to render is recursive... POV-Ray reports
> 412K tokens. (!!) If I can figure out how to do it this way, it will
> hopefully parse raster and render lots faster too... (Will probably have
> to use the file-I/O directives to write an SDL file, then #include it
> back in.)
In this post you can find macros that build a function
recursively:
http://tinyurl.com/5d473
http://news.povray.org/povray.text.scene-files/message/%3C3C9F86D5.778C126F%40hotmail.com%3E/#%3C3C9F86D5.778C126F%40hotmail.com%3E
"Code for NURBS surfaces as mesh2{} objects ", 25. Mar. 2002
(Look at the DeCasteljau_U() and BlendUFunction() and macros.)
First I had special versions of these macros that wrote the
function to a SDL file, but for higher order NURBS functions
this quickly became ugly (i.e. HUGE files). So I let POV-Ray
assemble these functions directly.
I guess that you are working on your fractal functions. If you
don't want to generate these functions recursively, then you
might find this post (and thread) interesting:
http://tinyurl.com/6nthl
http://news.povray.org/povray.advanced-users/message/%3CXns93AC374E6D9E5torolavkhotmailcom%40204.213.191.226%3E/#%3CXns93AC374E6D9E5torolavkhotmailcom%40204.213.191.226%3E
"Re: Use of povray functions to make fractals other than
"famous" Mandelbrot with same scalability? ", 2 Jul. 2003
> Thanks for that!
Just glad to help.
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
|