POV-Ray : Newsgroups : povray.binaries.images : The Endless Palace (WIP2) : Re: The Endless Palace (WIP2) Server Time
1 Aug 2024 08:18:02 EDT (-0400)
  Re: The Endless Palace (WIP2)  
From: Kirk Andrews
Date: 4 Feb 2009 14:35:00
Message: <web.4989ed0920659213da29fa390@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Kirk Andrews wrote:
> > I think this is a significant improvement over the previous images.
>
> BTW, what kind of technique did you use to ensure you didn't have (for
> example) balconies without doors leading to them, or something like that?
> (Other than the one that looks like it needs a trap door... :-)
>
> I.e., what does the top-level loop look like, in general terms?
>
> --
>    Darren New, San Diego CA, USA (PST)
>    "Ouch ouch ouch!"
>    "What's wrong? Noodles too hot?"
>    "No, I have Chopstick Tunnel Syndrome."

Well, it basically works like this:

1. Determine the number of stories of each block and store in an array

2. Determine the type of roof for each block depending on info from the first
array, and store these in an array.

3.  Run the loop.  If there's an exit at the current level and direction, make a
door; if not, make a window.  If you're at the top, make the appropriate roof.

Unfortunately, I do end up with lots and lots of nested #if statements.


Post a reply to this message

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