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 05-03-11, 09:52 AM   #1
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default

Quote:
If anyone can help explain wtf is wrong with this ship texture, please do. Im out of ideas.
I think Zedi, I fixed your ship, NMFMPC! At least took away the crazy textures. I think that the error was in the modified occlusion map alpha channel. I used a version that I downloaded here some time ago and it's embedded occlusion map's alpha channel was different than in SH 4. Have to test more, but now I'm off to a victory cigarrette.

EDIT:



As you can see, there is occlusion "glow", but nothing too crazy. Now the next step would be to get some textures to the ships guns and the light thing at the top of the ship.

Last edited by Rongel; 05-03-11 at 10:15 AM.
Rongel is offline   Reply With Quote
Old 05-03-11, 10:22 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rongel View Post
I think Zedi, I fixed your ship, NMFMPC! At least took away the crazy textures. I think that the error was in the modified occlusion map alpha channel. I used a version that I downloaded here some time ago and it's embedded occlusion map's alpha channel was different than in SH 4. Have to test more, but now I'm off to a victory cigarrette.

EDIT:
As you can see, there is occlusion "glow", but nothing too crazy. Now the next step would be to get some textures to the ships guns and the light thing at the top of the ship.
excellent work Rongel Now as I don't fully understand these occlusion and normal maps purposes, can you explain? Also can you tell us what you changed to get Zedi's ship fixed? I've noticed that many of the ship's from SH4 have an occlusion map (the _Oxx files) whose alpha channel doesn't match the RGB channels. Any thoughts as to why

As far fixing the guns and the spotlight that is going to be some major work. The problem is all the guns and spotlights from SH3/4 have to be edited and have images embedded and entries made for their _Oxx and _Nxx entries. Or we can substitute SH5 guns for them....
TheDarkWraith is offline   Reply With Quote
Old 05-03-11, 10:41 AM   #3
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default

Quote:
excellent work Rongel Now as I don't fully understand these occlusion and normal maps purposes, can you explain? Also can you tell us what you changed to get Zedi's ship fixed? I've noticed that many of the ship's from SH4 have an occlusion map (the _Oxx files) whose alpha channel doesn't match the RGB channels. Any thoughts as to why
Explaining what i did might be even more complicated than fixing it! Let's try... The occlusion map and it's alpha channel are indeed totally different looking, but it's not a corrupt or anything like it. So it seems we must leave it alone. There was nothing wrong with the two textures that Zedi sent me, the base texture, and the normal map. I used in this ship a dat-file that I downloaded here earlier and I could see it's occlusion map's alpha channel was different than in SH 4, it was edited. I just changed it back. Still, it didn't change in the game or in S3 editor. It seemed that the game sniffed the old dds files I had in the ships folder, so I simply deleted them, so that it must use the embedded files.

One weird thing I noticed is that the spotlight and guns cast shadows. I tried to use the shcontroller "VisibleUnderWater" to the whole ship and it vanished from the game. You could see it only underwater. Weird thing was that now the spotlight and the gun were rendered and had textures!

Okay one issue more. We can see water reflections in the ships structure near the water (when we aren't underwater). But why only in one side??? Stock ships have this effect on both sides.
Rongel is offline   Reply With Quote
Old 05-03-11, 10:49 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rongel View Post
Explaining what i did might be even more complicated than fixing it! Let's try... The occlusion map and it's alpha channel are indeed totally different looking, but it's not a corrupt or anything like it. So it seems we must leave it alone. There was nothing wrong with the two textures that Zedi sent me, the base texture, and the normal map. I used in this ship a dat-file that I downloaded here earlier and I could see it's occlusion map's alpha channel was different than in SH 4, it was edited. I just changed it back. Still, it didn't change in the game or in S3 editor. It seemed that the game sniffed the old dds files I had in the ships folder, so I simply deleted them, so that it must use the embedded files.

One weird thing I noticed is that the spotlight and guns cast shadows. I tried to use the shcontroller "VisibleUnderWater" to the whole ship and it vanished from the game. You could see it only underwater. Weird thing was that now the spotlight and the gun were rendered and had textures!

Okay one issue more. We can see water reflections in the ships structure near the water (when we aren't underwater). But why only in one side??? Stock ships have this effect on both sides.
Can you send me the files you speak about above regarding the occlusion maps? I'd like to see what you're talking about.

The spotlight and guns will cast shadows because they are being pulled from a gr2 file (they are SH5 guns and spotlight). Only items taken from GR2 files will cast shadows This is that whole granny thing which is a total PITA!!

Now the likely reason why when the ship 'vanished' and all of a sudden the guns and spotlight rendered is because there are two ways the game engine can render items: the granny way and the old way. It can't do both on one object. Since we asked the game engine to render the ship using .dat files (the old way) it rendered everything that way, including the gr2 stuff. Now since the old way couldn't read the textures from the gr2 file () they show up as dark. This is my hypothesis.

Can you show a screenshot of these water reflections you speak about? I want to ensure what you're conveying and my understanding of what you're conveying are the same.
TheDarkWraith is offline   Reply With Quote
Old 05-03-11, 11:16 AM   #5
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default






Hope you can spot them, they show better in motion.

EDIT:

ARGH MY AVATAR

EDIT 2:

I'll send you soon the files!
Rongel is offline   Reply With Quote
Old 05-03-11, 11:20 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Rongel View Post
Hope you can spot them, they show better in motion.
ah, ok, those are the caustic effects. Never noticed that problem actually till you brought it to attention

Try disabling the caustic effects in the Unified Render Controller and adding a regular caustic effects controller and see what happens.
TheDarkWraith is offline   Reply With Quote
Old 05-03-11, 11:36 AM   #7
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

What still bothers me is that damn rust on the ship hull. Is not like I dont like it, but it should not be there. In the first version of TDW Elco boat I managed to apply the new skin properly and cover everything, but in the latest version I have transparency.. the old texture is slightly visible through the new one. The difference.. first version had an external dds texture file, the latest and embedded tgs.

Anyway, if the stupid occlusion map glowing effect is fixed thats already a huge step ahead. You guys are awesome, hats off!!

This topic for STICKY
Zedi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 11:17 PM.


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