How i can convert .tex file to png?

Will Gimp do it? That's what I've used to flip formats. Haven't had time to do much with any thing in a while due to work.
 
How i can convert .tex file to png?

Technically, Orbiter's TEX files are concatenations of many DDS files that resemble tiles of the whole texture. These tiles have to be assembled in a non-trivial way to get the full picture. This way even differs between usages of TEX file. Planet map TEX vs. ring texture TEX, or low-level resolution TEX vs. high-level TEX.

An easy - but not totally correct - way to find the start of each DDS file is to search for the magic header "DDS " (mind the white space at the end - hex-code 44 44 53 20). The correct way is to examine the header of the DDS file to check the size of the file.
Once it is clear where the DDS files start and stop, you can split the TEX into the many DDS files. With tools like texconv.exe, you can convert DDS files to PNG.
Once you have PNGs for all the tiles, you can stitch them together.

There is a conversion tool on OHM that does that tedious process for you, but I am not sure if it works with all TEX variants (ring, high-res): [ame="http://www.orbithangar.com/searchid.php?ID=4114"]Tune Your Planet v0.3[/ame] .
 
Tune Your Planet will work only for legacy level 1-8 textures. The ring textures will be extracted by it just fine, as they contain just first 3 levels in the same layout as planetary textures.
 
The ring textures will be extracted by it just fine, as they contain just first 3 levels in the same layout as planetary textures.

Alright then. Somehow I had the impression the planetary texture layout only yields an arc, but no full ring, on ring textures.
 
Somehow I had the impression the planetary texture layout only yields an arc, but no full ring, on ring textures.
Yes, ring is just an arc, in level 1, 2, 3 of the TEX file. Higher levels aren't taken. Orbiter mirrors it multiple times around the planet (level 1 x8, level 2 x12, level 3 x16) this way.

The texture extractor will extract all 3 levels of the ring textures just fine as they are stored in the same layout (of the TEX file, i.e. a single level 1 DDS, then a single level 2 DDS, and then a single level 3 DDS) as the 1st 3 levels of planetary textures (multiple tiles only start from level 4).
 
Back
Top