2
\$\begingroup\$

Is there a command line tool that can convert PNG and JPG files to ATITC compressed textures?

I have my own export pipeline that converts all textures to PVRTC, ATITC, and DXT, so I have no use for a GUI-based tool like the Compressonator. Also, I'm running on Linux (although Wine might be able to handle simple conversion tools).

\$\endgroup\$
3
\$\begingroup\$

Compressonator can be used through the command line.

TheCompressonator <-command> [options]
Commands:
  help     - display help
  convert  - convert image type to another, or compress
  diff     - compare textures
  plugins  - get list of plugins and their options
\$\endgroup\$
  • \$\begingroup\$ Indeed! It's quite terrible under Wine, and I haven't gotten it to work yet... but I guess that's the only option. \$\endgroup\$ – EboMike Mar 17 '11 at 7:52
  • \$\begingroup\$ Based on a quick search it looks like the compressonator is the only way to do it. There's some hints that some SDK used to support it as well, so one might be able to roll your own tool, but nothing concrete. See this thread for some clues: opengl.org/discussion_boards/… \$\endgroup\$ – Jari Komppa Mar 17 '11 at 8:04
  • \$\begingroup\$ Oh well... I decided to run the compressonator under VirtualBox, which can access my Linux file system, so I can still fully automate it. And at least I can do all my DXT textures with the same tool too. \$\endgroup\$ – EboMike Mar 17 '11 at 8:09
1
\$\begingroup\$

For future reference: ImgTec has both a texture compression utility and a texture compression library (which works under both Linux and Windows). They support some compressed texture formats, like DXT and PVRTC.

Rolling out your own command-line tool is easy as pie using the library. I'm currently adding PVRTC support for my XNA pipeline (the processor is made with Managed-C++) and haven't found any problems yet.

\$\endgroup\$
  • 1
    \$\begingroup\$ Thanks! I've use the PVRTexTool on Linux and it works like a charm. Still no solution for the ATI tool, it doesn't work right under Wine. I've actually resigned to using PVR and ETC only at this point. I'll consider DXT5 for alpha textures. \$\endgroup\$ – EboMike Apr 11 '11 at 17:24
1
\$\begingroup\$

I managed to get the compressonator to run under Ubuntu 12.04 by first running

winetricks vcrun2005

then copying the installed compressonator files to ~/.wine/drive_c and running it from there with

wine TheCompressonator.exe
\$\endgroup\$
  • \$\begingroup\$ I need vcrun2015 instead for TheCompressonatorCLI.exe V2.3.2953 and override api-ms-win-crt-time-l1-1-0 to use native first (see winecfg). I'm on macOS 10.12 \$\endgroup\$ – mems Oct 13 '16 at 10:40
1
\$\begingroup\$

Andreno SDK provides a windows library to compress your texture without Compressonator. You can build your own tool to convert PNG, BMP, TGA or JPEG to ATITC on windows platform.

Otherwise, Unity3D which is running on OS X and windows generates ATITC for mobile assets, but i don't find the internal tool which does it (No wine too).

NB: our build system can compress to ETC, PVR and DXT on Win, OSX and Linux but for ATITC we zip all src images, send them to a server and use ATI Compressonator to compress them and download them when it's done.

NB 2: use PVRTextTool for PVR, it is faster or better than textureTool (Apple's one).

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.