Jump to content
Sign in to follow this  
Guest

Removing alpha channel from DXT3 textures

Recommended Posts

Guest

AI aircraft repaints tend to be in a wide variety of image formats: 8 bit, 32 bit, DXT1, DXT3, with or without mipmaps, with or without alpha channel...I like them to be *all* in DXT1, mipmapped, *no* alpha channel. :-)This would release about 700 kB harddisk space for each of the hundreds of repaints. Any ideas of a mass conversion procedure, especially the alpha channel removal?Regards,Claudius

Share this post


Link to post
Share on other sites

I know you can run ImageTool from the command line, and that there is batch processing capability. How? I haven't got a clue. But at least that should get you started looking in the right direction. Dick Ludowise (Rhumbaflappy) over in the scenery forum has mentioned doing some batch work on scenery tiles in ImageTool. Maybe he could be of assistance.


Bill Womack

------------------------------------------------------------------------------------------------------------------------------------------------------

Visit my FS Blog or follow me on Twitter (username: bwomack).

Intel i7-950 OC to 4GHz | 6GB DDR3 RAM | Nvidia GTX460 1gb | 2x 120GB SSDs | Windows 7 Ultimate 64Bit

Share this post


Link to post
Share on other sites

Hi Claudius.If you open imagetool from the commandline ( dos ) as:imagetool -?...you'll get the info you need for batch processing.Try this ( after you've backed up your images to a different folder! )imagetool -batch -DXT1 -mip -noalpha *.bmpSave that lines as a 'DXT1.bat' file, and put it in a folder with the images to convert, along with imagetool. Then doubleclick on the 'DXT1.bat' file. Should be a done deal...I think the output will be *.mip...... just change the .mip extension to .bmpOr do this in the batch file:imagetool -batch -DXT1 -mip -noalpha *.bmpren *.mip *.bmpDick

Share this post


Link to post
Share on other sites
Guest

Dick and Bill,thanks a lot! I'll try this later.Now this only needs to walk recursively through all the aircraft texture folders.... Back to DOS. :-)Claudius

Share this post


Link to post
Share on other sites

OMG!! You have NO idea how much work you just saved me. I normally convert my dxt3 files to 32 bit targas then work on them...then save back to dxt3 with alpha channel no mipmaps for my artwork. I had been doing this by hand, but now you have just AUTOMATED the process for me. I cant thank you enough.I wrote a bat file that will do as I just wrote above.Friggin FANTASTIC STUFF.imagetool -batch -DXT3 -nomip -alpha *.tgaren *.mip *.bmp


rexesssig.jpg AND ftx_supporter_avsim.jpg

Share this post


Link to post
Share on other sites
Guest

That's it! I need glasses. :-)However, converting everything to DXT1 doesn't seem to be a good idea. Usually I add mipmaps to every texture and never noticed anything regarding picture quality. But now, by converting back to DXT1, a lot of color banding appears. I just wanted to strip the alpha channel to gain some kB, without deterioration in picture quality...The process: DXT3 (alpha) -> 24 bit (RGB,no alpha) -> DXT3 (no alpha) gives *no* reduction in file size. I wonder why?I think I'll have to do some testing.Claudius

Share this post


Link to post
Share on other sites
Guest

Hi Claudius,The aircrafts are better with alpha and mipmaps.But if you don't want it, just run imagetool, open the DXT1 file, select format 34-Bits and save as targa.tga on your disk.Close the DXT1 file do not save. Open your saved 34Bit targa file,select format DXT1 and save it where it was the first time.Your DXT1 file has no mipmaps more.That's all.Regards,Cees

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...