|
 |
Now for another crazy idea that - of course - came to me as I was _trying_ to
get some sleep. Some days the brain never stops buzzing.
I recall discussing "pre-parsing" scene files to gather information preparatory
to a second parsing, though I of course can't find that thread.
Also, while writing my example scene to re-scale Sergey's 0-5.5 color_map, I
thought it would be great to be able to write macros and store data at the end
of the file where I didn't have to scroll past it to get to the functional parts
of the scene. Very much like writing Arduino sketches, or programming languages
that are compiled - where you can reference things that aren't defined until
later in the file.
And then I thought, "What if I skipped the first part of the scene when I parsed
it, and then included the file so it would parsed again, and switched the parts
that got meaningfully/functionally parsed?
And that got me thinking about a recursive POV-Ray file.
Inception, SDL-style.
Let's see what you folks can do with it - maybe forward to a friend we haven't
seen on the forums in a long time to tempt them to try their hand at it.
Post a reply to this message
Attachments:
Download 'selfincludingpovfile.pov.txt' (3 KB)
|
 |