I recently learned that VRML worlds which contain ziggaruts are in general better than those that don't. So I wrote a little CGI script, hosted here, to generate them on-demand. First of all, I acknowledge that I am misusing the term Ziggarut. To start with, real Babylonian ziggaruts were square, and there were ordinary stairways from one level to the next; none of this wrap-around stuff. |
The ziggarut (OK, let's just call it a tower) has the following parameters:
Geometric Parameters
|
It's a perl script, 400+ lines in length, that does a whole bunch of elementary trigonometry. I don't think this kind of a tower can be drawn with fewer polygons. It should be done with a VRML prototype/extension, except for I haven't figured out how to do that. This would be good because even though the towers render efficiently, their ASCII representation gets very large. Eventually I'll make the code open-source, but not until I make up my mind what language it wants to be in, and also added some options (what's the point of a tower without a treasure chamber?)