Up
Next
Antiprism Resource Files
Antiprism includes a number of resources. These are support files which
are used by the program, and can be accessed directly. They are also
useful as examples and as a starting point for creating new resources.
Nearly all the resources may be used, modified and redistributed without
restriction (check the begining of each resource file for details.)
Please,
send me
any resources that you create and would like to share with other
Antiprism users.
If Antiprism has been installed then the resources are
automatically available by their names. If Antiprism is
not installed then set the ANTTIPRISM_DATA
environment variable to point to the share
directory of the Antiprism distribution.
How to set this variable will depend on your system.
Otherwise, the resources are just ordinary files so simply give the
full path to the resource you want to use.
When you specify a filename the program will look for the file
in three places in this order
- The current working directory
- The relevant directory in ANTTIPRISM_DATA (if set)
- The relevant directory in the installed data directory (if installed)
Directory: col_maps
OFF elements may be coloured by index numbers. Colour maps provide
a way to convert these index numbers into colour values. As well as
the Antiprism colour map format the progams also understand
Gimp Palette format and Fractint colour maps. Colour
maps are used by off_color -m, antiview -m and
n_icons -M.
- X11 (549 colours)
- Broad range of named colours from X11's rgb.txt. The names may also be used
to specify colours on the command line
- html (140 colours)
- Broad range of colours. These are the colours that can be used by
name in HTML.
- jumble (100 colours)
- Broad range of colours, with adjacent colours not alike.
Directory: col_lights
Lights are OFF files whose vertex elements are coloured. These
colours are taken as lights in the direction of the vertices,
and are used to colour the elements of other OFF files. Lights
are used by off_color -l.
- default
- Red, green and blue opposite their complements on the vertices of
an octahedron. This makes a rainbow effect on a sphere, and is
the default lighting in off_color.
- lg3d
- Lighting similar to LiveGraphics3D lighting effect.
- rgbw
- Red, green, blue, and white on the vertices of a tetrahedron.
- pastel
- Like default but using pastel colours for a softer rainbow
effect.
Antiprism will convert OFF files to POV-Ray format. The POV-Ray file
is written in such a way that much of the final presentation can be
modified after the file is written. One way to override the defaults
and preset values is with POV-Ray include files. POV-Ray include files
are used by off2pov. See especially
POV-Ray file structure.
Some include files have user configurable variables. These are
described at the start of the file. They can be set in several ways -
- rot90.inc
- faces are converted to a ring around the face normal at the centroid,
struts lead to the face's edge centres. Edges are convverted to a
ring around the edge at the edge centre.
Up:
Programs and Documentation
Next:
Named Colours in Antiprism
Antiprism Documentation 16.11.2007 -
http://www.antiprism.com/