Local Availability
There is a copy of POVRAY version 3 available on the lab machines. You do not
have to setup a path in order to access it. But, you do need a path for
including POVRAY's header files. Because our jobs are not big ones,
a single command line would be good enough. The following is an example:
povray -i$1.pov -o$1.tga +L/usr/local.csl/povray3/include +a +j +v +w640 +h480
- Switches +a, +j and +v are recommended.
- +w640 and +h480 give the horizontal and vertical
pixels. Thus, this example requests to trace a 640-by-480 image.
You can change this number, but you'd better keep the 4/3 aspect
ratio.
- -i and -o specifies the input and output file names.
In the above, your input file has a name like test.pov and the output
is sent to test.tga, where .tga means TARGA format.
- Switch +L specifies the directory that contains POVRAY's
header files.
After tracing your image, you can use ImageMagick or xv to view your result.
If you prefer to use ImageMagick, which is simpler, then issue the following
command line:
display test.tga
where test.tga is the output from running POVRAY. In display, use left-button
to bring up a menu or right-button for a short-cut menu.