The Pure Perl RayCaster

Index

Installation and Usage

Installing the PAR (Perl Archive) Package (Win32 only)

In order to use the executable (produced by PAR's pp) you don't have to install anything.
Just download the .exe file and the "gadget.raw" file (a default object), put them in the same directory and start the application.
The "gadget.raw" is the default RAW object (thanks to George Papaioannou for the object) that Pure Perl RayCaster tries to load when the application is being started (must be found in the same directory as the .exe), when no file is given as input.

Installing from Source

Some basic information on how to install from source.
You will need Perl (version 5) already installed. On Windows you can get ActivePerl. On UNIX (or UNIX like systems) you probably already have Perl already (or you know how to get it).
Pure Perl RayCaster uses wxPerl for the GUI. Some quick notes on how to install wxPerl (you can follow the instructions at wxPerl official site). wxPerl is available from CPAN and as ppm (for ActivePerl), so it is very easy to install. A quick one:

Usage

If you are using the PAR version put the .exe and the gadget.raw in the same directory and run the executable.

If you are using the source, enter the following in a terminal (or windows command prompt) to run application:
	perl pureRaycaster.pl
You can specify some options as arguments in a command line (no matter which distribution you are using, either the .exe or the .pl), if you wish.

Options currently supported are:

Two examples:
	perl pureRaycaster.pl -w 100 -s
or if using the .exe:
	purePerlRayCaster.exe -w 100 -s
Will load the default object (gadget.raw) and will use the default (blue) color to create the ray casting output on a window that has 100 pixels width. Smooth shadows will be calculated.

	perl pureRaycaster.pl -c red -w 640 -f diamond.raw
Will load object in diamond.raw file and use red color to create the ray casting output on a window that has 640 pixels width. No smooth shadows will be calculated.

Valid XHTML 1.0 Transitional