If you have actually modified the TGA file, then you have no choice but to convert it back to DDS, but if you are just talking about changing what part of the texture is mapped to the model, and not actually changing the TGA then no, you don't need to convert it back.
Anyway, the link that Michael gave you is the same link I had given you before, the DDSTools by Janus. Is not going to give you the reverse option of going from TGA to DDS.
The only one I have found that does that is the original
dds.zip by bioware. You create two sub folders below where you have the .exe file, "IN", "OUT" and place the source file(s) in the "IN" folder. run the batch files called runme.bat file and it will convert from whatever form is in the input folder and place the results in the output folder.
Note that the runme.bat file assumes your are going from tga to dds. The processtextures.exe CAN go both ways, but you would have to create another runme2.bat and change the contents to handle processing in reverse order:
--------
cd in
REM First we rename all *.DDS to *. so we can remove the .DDS extension
REM For the mipmap processing
ren *.dds *.
REM Cycle every *. in the /in/ directory
FOR %%i in (*.) DO (
ECHO Processing %%i.dds
REM Rename it back to a .DDS
ren %%i %%i.dds
REM Convert it from DDS to TGA
..\\DDSTools.exe -d %%i.dds
REM delete the mipmaps
IF EXIST %%i1.tga DEL %%i1.tga
IF EXIST %%i2.tga DEL %%i2.tga
IF EXIST %%i3.tga DEL %%i3.tga
IF EXIST %%i4.tga DEL %%i4.tga
IF EXIST %%i5.tga DEL %%i5.tga
IF EXIST %%i6.tga DEL %%i6.tga
IF EXIST %%i7.tga DEL %%i7.tga
IF EXIST %%i8.tga DEL %%i8.tga
IF EXIST %%i9.tga DEL %%i9.tga
IF EXIST %%i10.tga DEL %%i10.tga
REM Rename the 0 to remove the 0 index
IF EXIST %%i0.tga ren %%i0.tga %%i.tga
REM And move it to the /out/ folder
IF EXIST %%i.tga move %%i.tga ..\\out\\
)
pause
--------
I am not sure who gave me that code, but it wasn't me. It may actually have been Michael at some point in the past. Just name that batch file to be "dds2tga.bat" and rename your runme.bat to be tga2dds.bat and you should be fine.
Note that the actual .exe is called processtextures.exe and MUST be run by batch file. Depending on windows version, you may have issues with rights, and for that, I can't really help much.
Modifié par Bannor Bloodfist, 25 mars 2011 - 10:00 .