maGen

This tool is for batch generation of material files for DOOM3. In order to create material files, you'll need to follow naming conve...

Download

Uploading...
Do not refresh or leave this page!

File Description
This tool is for batch generation of material files for DOOM3. In order to create material files, you'll need to follow naming conventions for your textures.

Features added in this version:

maGen now can create and resize editorimages for you. Just choose what map (local, specular, diffuse) you'd like to use. Then you can specify, how magen should resize it (to lower editor memory demands) If the specified map does not exist, maGen will use diffuse map as default for given texture. Default value for resizing is 256.

Read More

Download 'magen_v2.zip' (14KB)

Readme
maGen version 2.0
++++++++++++++++++++++

THIS TOOL MUST BE INSTALLED IN YOUR DOOM3 DIRECTORY!
NOT IN THE BASE OR ELSEWHERE!

IT ALSO REQUIRES .NET FRAMEWORK.

maGen = material Generator

My convention is taken from id's:

editor files must end with:	_ed.tga
diffusemap files must end with: _d.tga
localmap files must end with:	_local.tga
bumpmap files must end with:	_b.tga
specular files must end with:	_s.tga
colormap files must end with:	_add.tga

With your textures named like this, you can use my tool to generate .mtr file.

New features:
++++++++++++++++++++++

--createbumpmaps This creates bumpmap by converting diffusemap to greyscale.

Available parameters:
++++++++++++++++++++++

--moddir <value>
	note: default is base

--texturedir <texture directory>

--materialfile <material.mtr>

--mtrtype <plastic, metal, stone, ect>
    note: refer to the mtrtypes.txt for all types and how to properly use them

--editorimage <value>
	0 - use diffuse
	1 - use localmap
	2 - use specular
	3 - use _ed.tga
	note: when 1, 2 or 3 does not exist, using 0 as default

--editorimagesize <size>
	0 - no resampling
	note: resized by x or y until both meet specified size, default 256

--bumpmapheight <height>
	note: default value is 5

--createbumpmaps <value>
	0 - no
	1 - yes
	note: default value is 0

++!!!+++++++++++++++++
Once you generated .mtr file and made some changes to it, DO NOT RUN this tool
again on same .mtr file! It'd rewrite your file and you'd loose you changes!

SAME CASE FOR MODIFIED TEXTURES!!!
++!!!+++++++++++++++++

Example
++++++++++++++++++++++

You'll run maGen.exe like this:
maGen.exe --moddir base --texturedir foo --materialfile bar.mtr 

Your /base/textures/foo directory will contain some textures named by above convention.
My tool will generate /base/materials/bar.mtr, it'll contain script for each texture 
from your directory. Localmap of your texture will be used as qer_editorimage and if you
have some bumpmaps, it will use height of 4 as default parameter for the heightmap 
function. Voila!

This tool is open-source. http://www.chainsaw.cz/tools

Thanks to the authors of The Evil mod for their improvements, support and feedback.
You can find their mod right here: http://www.planetdoom.com/theevil

Adam 'Napalm' Konrád
napalm AT chainsaw DOT cz
http://www.napalm.cz
http://www.chainsaw.cz

Read More

Comments on this File

There are no comments yet. Be the first!

Napalm


50 XP


Registered 12th December 2004

1 Files Uploaded

Share This File
Embed File