Game Development Community

dev|Pro Game Development Curriculum

Material Maker

by Shaderman · 02/01/2009 (2:48 am) · 3 comments

Material Maker is a small (Dos) tool to create a materials.cs files from image files found in a directory.

Usage: mm C:\somedir

This is what a material would look lile for a file Image.jpg:

new Material(mImage)
{
   baseTex[0] = "Image";
   bumpTex[0] = "Image_bump";
   pixelSpecular[0] = true;
   specular[0] = "1.0 1.0 1.0 1.0";
   specularPower[0] = 32.0;
};

Download Material Maker

Warning! An existing materials.cs file will be overwritten.

#1
02/01/2009 (3:41 am)
If you need a batch-w-gui file renaming application for your images I suggest the "MFR_3_R2" here

cheers
#2
02/01/2009 (7:37 am)
That's pretty cool. Thanks. :-)
#3
02/03/2009 (9:33 pm)
Anything to save a little art pipeline time is good in my book. Thanks!
I was doing the old "cut & paste, then edit the names" trick. This is a little faster!