
Welcome to my page of POV-Ray macros. I will be including and updating files for creating stuff here. Here you will also find how to use these macros in simple and easy ways.
Follow the links below for navigation in the page.
Tower creation macro
The author,
Back to main page
George Akritides
Tower creation macro This macro is part of a larger project - a castle creation macro.
Yet on this stage, since it is a complete stand-alone package, it has no attachment to the castle creation macro.Already features:
- Towers created brick to brick - bricks are superellipsoid objects
- Variety in bricks - from colour, to size, rotation and properties
- The inside of the towers is complete, with floor, stairs and support beams
- 5 different tower tops, 2 different insides and existence of basements
Known bugs:
- Collision of bricks at connection point-not too visible
- Mortar is inexistent yet
On queue:
- Fix mortar bug - currently mortar is unusable and thus inexistent.
- Connect to castle creation macro
- Fix Collision bug
License information:
The Tower creation macro package is Copyright (c) 2002 George Akritides All Rights Reserved.
For further information look at license.txt in the package file.Installation:
1.Download the Tower creation macro package. Extract the package and copy the files tower.mcr and storey.mcr in the include files directory of POV-Ray. Normally this is C:\Program Files\POV-Ray for Windows 3.5\include.Usage:
Usage requires at least some basic POV-Ray knowledge. Knowing how to set up a simple scene, how to include a file and how to invoke a macro. Some examples will be given to help you through.Include the file tower.mcr in your scene file.
#include "tower.mcr"Invoke the macro with the six macro parameters you want.
It is tower(randomness,top type,stories,stair type,radius,basement)
Each of them means:
- Randomness: A factor to be added to give variation between the bricks - good values are between 0 and 0.5
- Top type: The type of the top of the tower. These are:
- Rooftop
- Crenellations
- Embrasures
- Rooftop with crenellations
- Embrasures with crenellations
- Stories: The number of stories between the ground level and the top level. The ground level and top level are not included in the number. Can have any number from 0 and up, but beware as large values can increase parsing times. Each storey is 3 POV units high.
- Stair type: Whether the stairs are constant (1) or begin anewed (0) in every floor. In the former case, there will be no floors in the storey levels and the windows will be rotated along the stairs.
- Radius: The radius in POV units. Must be larger than 1.5 and suggested to be smaller than 5.
- Basement: Whether the tower has a basement (1) or not (0).
Example:
tower(0.15,2,1,0,2.5,0)
This will create a tower at point 0. If you want to translate scale or otherwise do any other functions to the tower, then you must enclose it in a union. e.g.
union{tower(0.15,2,1,0,2.5,0) scale 2}
CSG is not suggested with the tower.Epilogue:
That's most about it. If you know more you may search the macro files and tamper with them. I intend to expand it on a castle creation macro, so check the webpage for future updates.
Hope you find it useful. If you like it, or have any suggestion feel fre e-mail me about it.