Making bundled .tex files with KSConvert Utility - Senscape/Dagon GitHub Wiki
CONVERTING THE YOUR CUBEMAP IMAGES TO TEX FORMAT:
First download and unzip the needed files, ksconvert.exe, MyFiles.bat, and SDL.dll, which are available here.
Copy your cubemap images into a working folder. Move the ksconvert.exe file, which is the image converter utility, and the SDL.dll file into the same folder.
The BAT file, MyFiles.bat, was made by NigeC and will convert a batch of TGAs into TEX format very quickly. MyFiles.bat is a simple text file that you'll need to alter for each batch of TGAs that you convert. You do this by changing the path in the BAT file to your working folder containing your TGAs followed by a list of the nodes that you wish to convert plus the extension used.
example:
cd C:\MYGAME\CONVERT TO TEX
ksconvert Garden1 tga
ksconvert Garden2 tga
ksconvert Garden3 tga
ksconvert Lobby1 tga
ksconvert Lobby2 tga
ksconvert Office1 tga
ksconvert Office2 tga
Once you've made the changes, save the BAT file in the same folder that contains your TGAs, SDL.dll, and the ksconvert.exe file. It's handy to rename each altered BAT file in case you need to re-convert the same group of files later.
To convert the TGAs, just double click the BAT file. A pop-up will show the progress of the conversions. The TEX files will be created in the same folder as your TGAs. When the conversion process is done, you can then move the TEX files to the Resources/Nodes folder of your game.
- Imari, 7-29-2012