diff options
-rwxr-xr-x | bin/obj2hackvr.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/obj2hackvr.pl b/bin/obj2hackvr.pl index 3639750..7a60cd0 100755 --- a/bin/obj2hackvr.pl +++ b/bin/obj2hackvr.pl @@ -49,6 +49,7 @@ while(<FILE>) { #convert to triangles foreach $tmp (@faces) { @points=split(/ /,$tmp); +## this map is to split off the vertex texture and vertex normal parts of the face. @points = map { $_ =~ s/\/.+$//g; $_; } @points; # print @points; for($i=2;$i<(@points);$i++) { |