Credit for this tutorial goes to Skylla from Grim Dawn forums:
https://forums.crateentertainment.com/t/creating-animated-texture/32223The method explained here uses TextureCompiler found in your main game folder via Windows Command Line. Using it you will be able to combine multiple TGA textures into a single animated TEX file. Here is an example of animated texture:
Part I - Initial Setup Before you start making the textures you want to combine, there are few preparations that need to be done. Here are the steps for setting up:
1. In Windows, go to Search Panel and in the empty field type: cmd
Right Click on command prompt and pin it to your taskbar for faster access later.
2. Run it. You will see something like this:
In this case, my current location is C:\Users\User. Yours will probably be different.
3. Now open Windows Explorer and go to that directory (whatever it is), and inside it create a new folder. Let’s name it “TQ” (this will be your working folder for animated textures).
4. Next, go to your main Titan Quest installation folder. Copy the following files:
TextureCompiler.exe
devil.dllThen paste them in the “TQ” folder you crated:
5. You are set to go.
Part II – Making the texturesAs in all animations, animated textures consist of separate parts or frames. For the above example with the rainbow glowing armbands I used 18 parts total. Here is how they look before combining:
The trick in most cases is to make the texture to “loop” - starting and ending with the same shape (or color in this case), while gradually changing in between, before it completes the animation circle. Example of looping animated sequence with changing shape:
You get the idea.
Part III – Combining the Textures into TEXAfter you’re done with the different parts of the texture sequence, place them all inside the “TQ” folder you created before. It should look like this:
Its better if you use simple names or numbers (less writing after). I just named them from 1.tga to 18.tga
Now open the command prompt again, and in the empty field type: cd TQ
Press Enter. This will redirect you to the TQ subfolder in your User directory, where TexCompiler and your textures are located (“cd” stands for “change directory”):
You are ready to combine the TGAs.
A general example of a command is this:
“TextureCompiler filename1.tga filename2.tga filename3.tga -fps 15 -format dxt5 animatedtexture.tex”
“fps 15” stands for frames per second – of this number depends how fast your animated texture will change or loop. Higher number will make it fast, lower will slow it down.
“format dxt5” is the conversion method – I assume you can put dxt1 or dxt3 there at least.
In my case with 18 parts I used the following command:
TextureCompiler 1.tga 2.tga 3.tga 4.tga 5.tga 6.tga 7.tga 8.tga 9.tga 10.tga 11.tga 12.tga 13.tga 14.tga 15.tga 16.tga 17.tga 18.tga -fps 9 -format dxt5 rainbowarmbands.tex
Press Enter. If you did everything right, the animated TEX file should appear in your working “TQ” folder with the other files.