Page 1 of 1

TextureTool.exe

Posted: Sat Aug 01, 2009 7:10 pm
by AceMastermind
There's a cool texture making tool in C:\BF2_ModTools\ToolsFL\bin called TextureTool.
This is a command-line utility that can be launched from a command prompt and these are the options that come up:
Hidden/Spoiler:
Image
The main purpose of this tool seems to be for creating specialized textures that can be used along with some Rendertypes that are applied in Edit Flags.

For example:
I have a rock texture named rock.tga located in C:\BF2_ModTools\ToolsFL\bin and say I want an ambientbump texture created from this rock texture so I would type this:

Code: Select all

TextureTool -ambientbump -output newbumptex.tga -input rock.tga
then press enter and wait a couple of minutes and it'll say Operation Successful! when it's done.

Play around with it and see what you get!

EDIT
Here's a better outline of the options:
Hidden/Spoiler:
[code]TextureTool -cubenormalizationmap -output <output file> -width <width of texture> -height <height of texture>

TextureTool -specular -output <output file> -width <width of texture> -height <height of texture> -power <power>

TextureTool -cubemappack -output <output file> -posx <image> -negx <image> -posy <image> -negy <image> -posz <image> -negz <image>

TextureTool -identity -output <output file> -width <width of texture> -height <height of texture> -blue <blue channel value>

TextureTool -hemispherenormalizationmap -output <output file> -width <width of texture> -height <height of texture>

TextureTool -specularspot -output <output file> -width <width of texture> -height <height of texture>

TextureTool -water -output <output file> -numframes <number of keyframes> -totaltime <seconds of animation> -width <width of texture> -height <height of texture>

TextureTool -randombump -output <output file> -width <width of texture> -height <height of texture>

TextureTool -attenuationvolume -output <output file> -width <width of volume> -height <height of volume> -depth <depth of volume>

TextureTool -ramp -output <output file> -width <width of ramp> -height <height of ramp> -start <start value> -end <end value> -power <exponent>

TextureTool -specularcubemap -output <output file> -width <width of texture> -height <height of texture> -rspecpower <red spec power> -gspecpower <green spec power> -bspecpower <blue spec power> -aspecpower <alpha spec power>

TextureTool -cubetosphere -output <output spheremap> -input <input cubemap> -width <width of texture> -height <height of texture> -samples <number of samples per texel (defaults to 4)>

TextureTool -convolvediffusecubemap -output <output convolved cubemap> -input <input cubemap> -diffuse <diffuse coefficient>

TextureTool -convolvespecularcubemap -output <output convolved cubemap> -input <input cubemap> -specularpower <speculat power> -specularcoefficient <specular coefficient>

TextureTool -ambientbump -output <output file> -input <input file>

TextureTool -fractal -output <output file> -width -height

TextureTool -terrainblend -output <output file> -input <input file> -width -height

TextureTool -simdither -output <output file> -input <input file>

TextureTool -noisevolume -output <output file> -width <width> -height <height> -depth <depth> -scale <scale> -amp <amplitude> -noisemode <NOISE|ABSNOISE|VEINS|RAW|DISTANCE>[/code]

Re: TextureTool.exe

Posted: Mon Aug 03, 2009 9:46 am
by vegati
So does it actually tell you the commands? Or do you have to have some scripting knowledge to be able to use it?

Re: TextureTool.exe

Posted: Mon Aug 03, 2009 10:07 am
by DarthD.U.C.K.
it displays the commands pon the screen ace posted :P

Re: TextureTool.exe

Posted: Mon Aug 03, 2009 10:09 am
by vegati
Oh, sorry. It just looked like a jumble of random words and phrases that I'm used to getting out of a command console.