Graphics Programs Reference
Note tankFence5.obj and tankFence5.mtl files are also
available in the source code for this chapter. You can open and read
through them in your favorite text editor to understand more about
Obj and Mtl mesh data. Do not modify them!
To get this parser into action, your system requires a Perl (version 5) installation. Of
course, if you are on a *nix system, Perl comes pre-installed. There are eight steps to
install Perl on Windows 7:
Note Perl (version 5) comes pre-installed with most *nix systems,
so there is nothing to install or configure. After creating a Perl script
(for example, program.pl ), you must add execute permissions to
run it. From shell, run " chmod + x program.pl ". Now, to run
this script, you can simply type " program.pl ".
If you are launching the script by running " perl program.pl ",
the script does not need execute permissions. If, however, you are
executing it using " program.pl " or " ./program.pl ", it does
need execute permissions.
1. For this demonstration, we use ActivePerl —a closed-source distribution
of Perl from ActiveState . (You can read more about ActiveState at ht-
the ActivePerl installer corresponding to your system from