Graphics Programs Reference
In-Depth Information
Note If you are on a Windows system with ActivePerl installed, you
may also remove the first line— "#!C:/wamp/bin/perl/bin/
perl.exe"— from the parser.pl file. It will not affect the out-
put.
If you are on a *nix system and relying on the executable permission
to work for you, you must modify this line to point to your local Perl
path.
After making these edits, you can parse mesh files. On Windows, you must double-
click on the parser.pl file (if ActivePerl is installed) to execute it. ActivePerl sets
a special icon for files with .pl extensions, similar to the blue-green icon in Figure
4-46 . On *nix system, you can run the parser.pl file by invoking the Perl inter-
preter and giving your file as input. I demonstrate how to execute the parser.pl
file using ActivePerl . As mentioned previously, double-click on the parser.pl file
to execute it. This opens the command prompt.
Now, you must enter the name of the Obj file—“tankFence5” ( Obj and Mtl files
should have identical names). Recall that you copied the Obj and Mtl files ( Figure
4-47 )— tankFence5.obj and tankFence5.mtl— to a separate folder. Since
you specified the path of this folder (when editing parser.pl ), Perl can look it up
now.
Press Enter after you specify the name of the Obj file ( Figure 4-48 ) . Then, click
“Open” in the Security Warning window (if you are on a Windows 7 system), as
shown in Figure 4-49 . You may also uncheck the checkbox in this window. This al-
lows the parser to execute without waiting for confirmation.
 
 
Search WWH ::




Custom Search