SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-15-19, 05:27 AM   #1
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 874
Downloads: 72
Uploads: 3
Default Textures questions

Hi guys,

Newbie in need of help I have been trying to retexture a model to create a clone with different paintjob. Having some problems though, so I thought to ask you for guidance.

When I load .dds file in Gimp it looks like this:


I then make a new layer, insert and edit new textures there. When I'm ready I merge the new layer with the old one and export as .dds.



Thing is, the changed bits lack something. They are not... how to say it - "partially transparent" like the original textures (no checkerboard all over them). Upon loading in game,they have a problem with lighting: when direct sunlight is reflected by the surface it becomes almost white, looking like some extremely reflective polished metal. This would be perfect if I was making a sci-fi starfighter but looks out of place on worn-down Messerschmitt.

Obviously I am missing something, so how to do it correctly?
kapuhy is offline   Reply With Quote
Old 04-17-19, 12:21 PM   #2
Polak2
Weps
 
Join Date: May 2005
Posts: 371
Downloads: 60
Uploads: 0


Default

I think you merging original and new skin with alpha channel switched to "on". Switch that off then merge, but then make new alpha channel.
Polak2 is offline   Reply With Quote
Old 04-18-19, 01:00 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Most stock SH5 models, have their specular maps stored in the alpha channel of their diffuse textures. Gimp reads alpha channels as opacity masks, which is obviously not right for our purposes.

I don't know if there is a workaround to that. Maybe switch to Paint.net when you need to deal with models that include a specular map, or if anything else fails upload here both your textures (diffuse and specular) and I will save them in a new file using photoshop
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 04-19-19, 01:13 AM   #4
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 874
Downloads: 72
Uploads: 3
Default

Thanks for replies guys!

I do not own Photoshop, but I seem to have the problem solved ("seem" because I didn't have time to test it beyond a quick look at the skin in game's Museum) by doing the following:

- Load original .dds file in DXTBmp
- Export alpha layer to separate file
- Import file in Gimp 2.1 and make a new skin in separate layer, then merge layers so that the new skin is on top
- Remove alpha layer from the image
- Export back to .dds
- Open again in DXTbmp and import the original alpha channel

Doing it this way, the model looked normal in game, although as I said I'll have to test it further with various models in various weather settings (different lighting).
kapuhy is offline   Reply With Quote
Old 04-19-19, 08:12 AM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by kapuhy View Post
Thanks for replies guys!

I do not own Photoshop, but I seem to have the problem solved ("seem" because I didn't have time to test it beyond a quick look at the skin in game's Museum) by doing the following:

- Load original .dds file in DXTBmp
- Export alpha layer to separate file
- Import file in Gimp 2.1 and make a new skin in separate layer, then merge layers so that the new skin is on top
- Remove alpha layer from the image
- Export back to .dds
- Open again in DXTbmp and import the original alpha channel

Doing it this way, the model looked normal in game, although as I said I'll have to test it further with various models in various weather settings (different lighting).
I don't have those programs installed, but your method should work. Just a note: if you are changing the main texture, you might want to update its specular map (i.e. alpha channel) accordingly.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 04-23-19, 01:48 AM   #6
hauangua
Grey Wolf
 
hauangua's Avatar
 
Join Date: Jul 2011
Location: Verona, Italy
Posts: 913
Downloads: 1352
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
I don't have those programs installed, but your method should work. Just a note: if you are changing the main texture, you might want to update its specular map (i.e. alpha channel) accordingly.
Hi Gap forgive me for this Off Topic, I probed send you PM . (because if I can write in Italian language it is better for me ) but your mailbox is full,
I wanted clarification on "enemy gun accuracy" you had tested this a few years ago...with Rongel,and Volodya61,
Can help me? A quali conclusioni eri giunto?
Thanks Gap
__________________
Parked under the balcony with my U-27 waiting Juliet finish makeup
hauangua is offline   Reply With Quote
Old 04-23-19, 02:06 AM   #7
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 874
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by gap View Post
I don't have those programs installed, but your method should work. Just a note: if you are changing the main texture, you might want to update its specular map (i.e. alpha channel) accordingly.
Seems to work. tga textures that are embedded in .dat files treat alpha channel differently though, when I used above method on them result is weird noise covering half the texture. That said, these files seem to work ok when I simply remove their alpha channel and then generate new alpha channel in DXTbmp on final texture (black cockpit was also on original texture in this case):



Quote:
Originally Posted by hauangua View Post
Hi Gap forgive me for this Off Topic, I probed send you PM . (because if I can write in Italian language it is better for me ) but your mailbox is full
Yeah, so did I. I wish I could donate 80% my alotted space for PM's to Gap and vdr1981

Last edited by kapuhy; 04-27-19 at 09:52 AM.
kapuhy is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.