I believe Orbiter's .tex files are DDS format.
In which case Googling "DDS to PNG" gives a number of alleged tools to do this.
One I spotted (but haven't tested): https://sourceforge.net/projects/aorta/
Also this old GIMP plugin (but the comments imply installation method may have changed): http://registry.gimp.org/node/70
I believe Orbiter's .tex files are DDS format.
In which case Googling "DDS to PNG" gives a number of alleged tools to do this.
One I spotted (but haven't tested): https://sourceforge.net/projects/aorta/
Also this old GIMP plugin (but the comments imply installation method may have changed): http://registry.gimp.org/node/70
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.
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).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.