| View previous topic :: View next topic |
| Author |
Message |
etchasketch
Joined: 22 Mar 2005 Posts: 76
|
Posted: Mon Mar 28, 2005 8:28 am Post subject: My research - all about textures |
|
|
Ok, so I made a tool which can extract the textures from the dat files, but it turns out that its a whole lot simpler to update the textures than I thought it would be.
First, some explanation of what I've found out.
Silent Hunter III uses uncompressed TGA files for its textures. These can be found in two places: inside a .dat file, or simply in a tga file in a directory.
You are probably all familiar with the SilentHunterIII\data\Textures directory, because you found a lot of textures in there... but:
- TLowRes\tex contains only low res textures (and more importantly, not ALL the textures).
- TNormal\tex only has a couple of textures in there, and they all seem related to the Bismarck having no swastikas.
But, what's great is you can delete the Texture folder completely, and guess what? The game still runs with textures and everything... in fact, all the textures will be high res.
This is because all the high resolution textures are stored in the various .dat files scattered around the other directories.
At first I was thinking I was going to need to write a tool to extract and inject textures from and into the dat files, but fortunately the Textures folder gives an excellent way to overwrite textures.
If you know the filename of a texture, and you stick it in Textures\TNormal\tex, then SH3 will use that version, instead of the one in the dat file.
So, here's the easy solution to the missing swastikas. Rename
German.tga
German_m.tga
NBB_BismarkC.tga
in SilentHunterIII\data\Textures\TNormal\tex
to something else (like add an _ on the end).
When you start up SH3, it wont find those files (which if you have a look at them they are the versions with no swastika), so it will use the ones in the dat files which DO have the swastika.
No download necessary.
(Note that there is a German.tga in SilentHunterIII\data\Library\tex. Rename that one too if necessary.)
So, the next big question is... What are the filenames?
This is not as simple as it sounds, but my tool does extract the filenames from the dat files. But I realised today that it does this incorrectly, as I seemed to get duplicate filenames for textures, and no textures for some filenames....
Turns out I was extracting wrong, and it seems that every texture has a unique filename, and you can get a lot of them from the TLowRes\tex directory (but not all).
Here's an example:
The nurse textures are called:
Nurse_Gray.tga
Nurse_Blue.tga
Nurse_Brown.tga
Nurse_Dark.tga
Nurse_Green.tga
and they are located in SilentHunterIII\data\Library\fetele.dat
Unfortunately, I'm going to need to fix my tool so it extracts the correct filename, but if you extract one, edit it, stick it in Textures\TNormal\tex you can change the appearance of the nurses.
Ok, so i've gone on long enough, but you know the way it works now, so go have fun. I havent experimented with changing the size of the textures, but as always, dont blame me if you stuff up your game.
Enjoy! |
|
| Back to top |
|
 |
Augie64
Joined: 15 Mar 2005 Posts: 255
|
Posted: Mon Mar 28, 2005 10:08 am Post subject: |
|
|
brilliant.
Have you come across the contact icons for ships and planes. the ones displaying nuetrals and friendlies.
i still cant find them.
so basicly any mods we make should just be able ot be pasted into the texture directories. That defiantly makes it easy to uninstall if things go wrong =) |
|
| Back to top |
|
 |
U-Schultz
Joined: 28 Mar 2005 Posts: 174 Location: North Atlantic
|
Posted: Mon Mar 28, 2005 6:14 pm Post subject: |
|
|
This is a big find. I was wondering why the "Normal" folder is empty. I thought I installed SH3 wrong despite my .cfg saying "hi-res" textures..
It sounds like a similar system to RB3D, where the main textures where kept in huge coded files but were overwritten/overridden when a texture file of the same name was added to the directory.
Has anyone tried moving or deleting the "low-res" directory so that SH3 uses the "normal" or hi-res" textures?
Any difference? |
|
| Back to top |
|
 |
etchasketch
Joined: 22 Mar 2005 Posts: 76
|
Posted: Tue Mar 29, 2005 12:27 am Post subject: |
|
|
| U-Schultz wrote: | Has anyone tried moving or deleting the "low-res" directory so that SH3 uses the "normal" or hi-res" textures?
Any difference? |
There are only two kinds of textures: Normal res and Low res.
If you delete the low res textures from the TLowRes\tex directory, then SH3 will use the Normal res textures even if you have the option for High Res textures off. |
|
| Back to top |
|
 |
Redwine
Joined: 10 Jan 2002 Posts: 1143 Location: Buenos Aires , Argentina.
|
Posted: Tue Mar 29, 2005 12:47 am Post subject: |
|
|
Thanks for tool etchasketch...........!!
I can wait for a mod changing nurses into b.....
The system used by the game was as U-Schultz wrote as in RB 3D...... it is good, i back up the folder with the new dropped or added textures, and when you reinstal the game, you only need to copy the complete folder and thats all.........
Thanks a lot. |
|
| Back to top |
|
 |
U-Schultz
Joined: 28 Mar 2005 Posts: 174 Location: North Atlantic
|
Posted: Tue Mar 29, 2005 1:14 pm Post subject: |
|
|
"If you delete the low res textures from the TLowRes\tex directory, then SH3 will use the Normal res textures even if you have the option for High Res textures off."
Sorry, I guess I wasn't clear.
Is there a difference in graphics between the low-res and normal graphics? I would think they would be better but is the change obvious?
I haven't had a chance to check on my home system/SH3 install. |
|
| Back to top |
|
 |
etchasketch
Joined: 22 Mar 2005 Posts: 76
|
Posted: Tue Mar 29, 2005 2:35 pm Post subject: |
|
|
| U-Schultz wrote: | "If you delete the low res textures from the TLowRes\tex directory, then SH3 will use the Normal res textures even if you have the option for High Res textures off."
Sorry, I guess I wasn't clear.
Is there a difference in graphics between the low-res and normal graphics? I would think they would be better but is the change obvious?
I haven't had a chance to check on my home system/SH3 install. |
Yes! The low textures are half the dimensions of the normal textures. That's 4 times less pixels. If you compare something like the port holes on the side of ships, it will be blocky for low res textures, and not so blocky for normal. |
|
| Back to top |
|
 |
U-Schultz
Joined: 28 Mar 2005 Posts: 174 Location: North Atlantic
|
Posted: Tue Mar 29, 2005 2:48 pm Post subject: |
|
|
Excellent!!
Fortunately I just bought a new computer for SH3 so I got the horsepower to handle improved graphics.
I would think this would be big news here...hopefully Drebbel will see this thread and post it in the SH3 FAQ "sticky thread."
Thanks for the info and your work on this. Can't wait to give it a try! |
|
| Back to top |
|
 |
etchasketch
Joined: 22 Mar 2005 Posts: 76
|
Posted: Wed Mar 30, 2005 11:05 am Post subject: |
|
|
This is quite cool...
SH3 handles even higher resolution textures. Here's proof:
Thats the Bismarck, with the file NBB_BismarckC.tga enlarged to 2048x1024 (from 1024x512), and I've written over the texture with pixel words. These are clearly readable inside the game.
The only downside I can see is that the game may require more grunt from your PC, as you are quadrupling the texture memory size. |
|
| Back to top |
|
 |
etchasketch
Joined: 22 Mar 2005 Posts: 76
|
Posted: Wed Mar 30, 2005 12:44 pm Post subject: |
|
|
*cough* it had to be done sooner or later....
 |
|
| Back to top |
|
 |
U-Schultz
Joined: 28 Mar 2005 Posts: 174 Location: North Atlantic
|
Posted: Wed Mar 30, 2005 1:17 pm Post subject: |
|
|
 |
|
| Back to top |
|
 |
TheStranger
Joined: 30 Mar 2005 Posts: 4
|
Posted: Sat Apr 02, 2005 3:57 pm Post subject: |
|
|
Hi,
i try out these tool and find the tga-files from the bismark. But i cant find the tga-files from the menu (menu\data\academy02.tga). I installed the german Version - if there other files if i installed in english? |
|
| Back to top |
|
 |
etchasketch
Joined: 22 Mar 2005 Posts: 76
|
Posted: Sun Apr 03, 2005 4:12 am Post subject: |
|
|
| TheStranger wrote: | Hi,
i try out these tool and find the tga-files from the bismark. But i cant find the tga-files from the menu (menu\data\academy02.tga). I installed the german Version - if there other files if i installed in english? |
If the file is already a tga, and its not in the Textures directory, then it wont be in a dat file.
Just edit the tga file directly in menu\data.
I havent tried it, but you could try saving your version in the Textures directory, but as it is a menu graphic, i'm not sure it would be taken in preference to the original. |
|
| Back to top |
|
 |
RS-RD
Joined: 08 Feb 2005 Posts: 61
|
Posted: Wed Apr 06, 2005 3:42 pm Post subject: |
|
|
Most the dat files are accessable it seems apart from the NSS submarine ones.. Whats the correct way to get these hull and tower tga's out of the dat file ?
Thanks in advance,
J |
|
| Back to top |
|
 |
darkdrone
Joined: 02 Apr 2005 Posts: 192 Location: deep space recon mission
|
Posted: Wed Apr 06, 2005 7:47 pm Post subject: |
|
|
use Timetraveller's excellent tga extraction tool it'll do a complete search thru all the Dat files and extract em to it's own subfolder(pardon the pun) i presume u mean this (it's modified from orig)
URL=http://img137.exs.cx/my.php?loc=img137&image=nssuboat7chull3zu.jpg] [/URL] |
|
| Back to top |
|
 |
|