Ogre Mesh XML Scientific Notation

I noticed that Ogre wasn’t handling a mesh very well that used scientific notation. So I wrote this little perl script to remove the notation. It just converts any scifi notation to zero for now. You’ll need Perl to run the script.
————- ogre_remove_scifi.pl ———–
use strict;

my ($arg1) = shift;

print "Processing… $arg1\n";

open(FILE, "<$arg1")
or die("Unable to open $arg1");

open(FILE2, ">$arg1.xml")
or die("Unable to open $arg1.xml");

while(<FILE>)
{
$_ =~ s/"[^"]*e-[\d][^"]*"/"0"/g;
print FILE2 $_;
}

close FILE2;
close FILE;

print "Done. $arg1.xml [ OK ]\n";

exit;

GUIDs in Perl

Here is a handy Perl module called [GuidGen] that let’s you create GUIDs (Global Unique Identifiers) in Perl. A GUID is basically a random number that is guaranteed to be unique across the net. It is based on time and your MAC address. A GUID is useful in something like the ‘user agent’ string, hehe.

72H GDC 29th-Aug 1st starts now

Theme suggestions can be given immediately. On July 15, when I announce it, stage 1 voting will begin. On July 22, stage 2 voting will begin. On July 29, at exactly 12:01 PM EST (that’s right after noon), the results of the voting will be announced and the competition will begin. On August 1, at exactly 12:01 PM EST, the competition will be over and no more entries will be accepted.

I apologize in advance for time conflicts you may have. Unfortunately, there’s no way to ensure that everyone gets all the time. I tried to select a time which would be most appealing to everyone.

Good afternoon.

The voting was close, but the theme that won out is…

HORROR

Enjoy. There’s a lot you can do with the topic, so be creative and have fun. And if you haven’t read the rules, please go read them closely.