Jump to content

DDS utilites?


krawhitham

Recommended Posts

anyone know of any command line DDS utilities

Mainly I'm looking for converters

like taking two BMP images (main image plus the alpha) and converting it to a DDS

and I would also like to go the other way from DDS to 2 bmp images

I tried DxTex but I can not seem to get it to insert the alpha into the DDS file

the command I used was

DxTex.exe 0000.BMP -a 0000-a.BMP DXT3 0000.dds

here is the readme on DxTex

dxtex [infilename] [-a alphaname] [-m] [DXT1|DXT2|DXT3|DXT4|DXT5] [outfilename]




infilename:			   Name of the file to load.  This can be a


							.bmp or .dds file.




-a alphaname:			 The next parameter is the name of a .bmp 


							file to load as the alpha channel. If no 


							alpha filename is specified, DXTex still


							looks for a file named Infilename_a.bmp. If 


							it exists, use that file as the alpha 


							channel.




-m:					   Mipmaps are generated.




DXT1|DXT2|DXT3|DXT4|DXT5: Compression format. If no format is 


							specified, the image will be in ARGB-8888.




outfilename:			  Name of the destination file. If this 


							option is not specified, the user interface 


							shows the current file and all requested 


							operations.  If an outfilename is specified, 


							the application exits after saving the 


							processed file without presenting a user 


							interface.

it makes the DDS file using the main image and creates a blank alpha

If I run DxTex in GUI mode I can import the main image and then the alpha and the saved DDS file if fine but I really need command line util to do the work

Link to comment
Share on other sites

MIPS are a pain in the ***

dxtex will not let you limit how many MIPS you have it just goes all the way down to 2x2 (ads0 in cram32.fsh only needs 5 MIPS)

so I found

nvdxt by Nvidia (also free)

but nvdxt will not let you use a seperate file for the alpha, it has to all be in one file

SO I needed to convert the TWO bmps to one TGA file with an alpha channel

imagemagick does the trick but it is not a short proccess

Imagemagick comes with a series of command line tools (IM is also free)

first I had to convert the main image to a TGA with a blank alpha channel

convert main.BMP -matte main.tga
then I injected the alpha
composite -compose CopyOpacity alpha.bmp main.tga complete.tga
now the TGA is ready for nvdxt
nvdxt.exe -file complete.tga -nmips 5 -output alldone.dds

if anyone knows a shorter way of doing this please let me know

Link to comment
Share on other sites

Have you tried Imagetool yet? It's included in the gmax Gamepack SDK for Microsoft's Flight Simulator 2004, which can be found right here: http://www.microsoft.com/games/flightsimul...wnloads_sdk.asp

I've had a look at it, but I'm not really good with stuff like that. Just type "imagetool -help" for instructions on how to use it.

no have not tried it (or heard of it), but I will try in the morning

thanks

Link to comment
Share on other sites

  • 2 weeks later...

hello MVP friends and my friend krawhitham!

check out the new version soon to be released of DOLFFIN Live 2.1.b!

As you may know, this GUI game development program works now to import/export files and images used in MVP 2005 and many EA games also including NBA Live, NHL, FIFA, and NFS. it works for BIG/VIV/FSH and others graphics texture and object files used in the games. Included in the release, is gfshmgr.exe which is the command-line version of the utility. In the 2.1.b version there will be released the new FSHIMAGE program. using this program you'd run the command:



fshimage -dds --pixelFormat a8r8g8b8  --genMips 4 myimage.png logo.dds
valid formats are:


FSHIMAGE v1.k


Valid dds pixelFormats are:


  A8  R5G6B5  A1R5G5B5  A4R4G4B4


  A8R8G8B8  DXT1  DXT2  DXT3


  DXT4  DXT5  3DC  RXGB


  L8  A8L8  A8B8G8R8  R8G8B8


  X4R4G4B4  X8B8G8R8  X8R8G8B8  R3G3B2


  A8R3G3B2  P8  A4L4  A8P8


  L16  X1R5G5B5  A2B10G10R10  A2R10G10B10


  G16R16  A16B16G16R16  CxV8U8  V8U8


  Q8W8V8U8  V16U16  Q16W16V16U16  L6V5U5


  A2W10V10U10  X8L8V8U8  G8R8_G8B8  R8G8_B8G8


  UYVY  YUY2  R16F  G16R16F


  A16B16G16R16F  R32F  G32R32F  A32B32G32R32F

thx krawhitham for your support to get DOLFFIN Live compatible with MVP 2005!

we'll be releasing this for you and your community and the other game communties soon!

thx again!

existing version 2.0 and mirrors are available here:

http://nba2kstuff.nbalive.org/

http://nba2kstuff.nbalive.org/doc/dolffin/dolffin.htm

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...