Subscribe to GameFromScratch on YouTube Support GameFromScratch on Patreon
25. August 2011

 

In putting together content for this site, I find myself working in Visual C++ which presented an unintended consequence, the project folder’s files are big, huge in fact!  Most of the problem boils down to the intermediate files that Visual C++ generates for intellisense and pre-compiled headers.

 

Therefore each time I wanted to post a code example to this site, I had to go through and delete all of these temporary files or my archives would be huge.  Worse still, every time I open up the solution, they would be regenerated.  ( Yes, you can move these files outside of your folder as a possible work around ).  I figured with the whole me being a programmer thing, I could throw together a program that did this work for me.

 

Therefore I present to you ProjectCleaner.  Aim it at a folder containing your project or sln file click “Clean Project” and it will go through and delete all the temporary cruft ready for you to zip up and share.  For the record, it deletes log, tlog, pch, pdb and obj files as well as the ipch folder.

 

image

 

 

Here are the results after applying to a relatively simple project folder:

image

 

As you can see, it results in a 37MB reduction in size, which saves more than just a small bit of bandwidth.

 

So, if you are finding yourself needing to shrink your Visual C++ projects down to share them, this tool may prove useful.  The source is exceedingly primitive.  It’s written in C#, requires .NET 4.

 

 

Files:

 

CleanProject.zip  -- program executable

CleanProjectSource.zip -- source code

Programming


21. May 2011

 

In every industry there are definitely trends, and the CG world is no exception.  I remember the days when patch modeling were the “IT” thing, and every package under the sun added some forms of patch or spline modeling feature to its toolbox.  Then came NURBS and Sub-D surfaces, etc…

 

 

Pixologic_Logo_2

These days, the “IT” thing is sculpting.  Pretty much modeling via “virtual clay”.  Maya’s Artisan Tools no doubt was one of the big contributing factors to the whole sculpting movement with its release in 1998, but without a doubt the most disruptive and important program in the sculpting movement was Pixologic's zBrush.  Put simply it changed how the industry worked and if you have never checked it out, it is really worth a look! 

 

 

 

Now the gotcha, zBrush meshes by nature tend to be quite dense, as in high in polygon count.  Therefore it is a pretty piss poor tool for creating real time meshes ( although still useful for normal maps ).  In recent years though, lower polygon tools have more commonly made their way into the toolset.  Now, in regards to our project here, zBrush isn’t really all that relevant as simply put, it cost 700$.  That said, there are options.

 

See, a fellow by the name of DrPetter started an amateur project to create his own sculpting software.  In that way that can make you so damned jealous of other peoples abilities, the son of a… er wait… well anyways, he pulled it off, and created a pretty damned cool piece of software in just 6 months.  Being a hobby project he was pretty much going to abandon it, but the folks at pixologic stepped in an employed the fellow to continue work.

 

So, long story short, there is a freely available sculpting solution out there, thanks to drpetter and pixologic.  Given the cost of admission, you really owe it to yourself to check it out.  It is now called Sculptris Alpha 5 and you can download it here.  It’s a zip, download, extract and run the EXE, simple enough.

 

And to whet your appetite so you actually go ahead and download this powerful and FREE program, check out the following video!  Oh, and it is truly free, no watermarks, no limitations, simply free.

 

Sculptris in action

Art


See More Tutorials on DevGa.me!

Month List