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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-23-17, 09:33 AM   #1
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Hi Kendras,

when you get time, if you select any 3d model chunk in s3d, there is an uncaptioned parameter to the right of the "Model info" section, about under the Import/Export buttons, whose exact meaning is beyond my understanding.

In most SHIII files I have seen so far (and for all the 3d objects linked to a material with SpecularMask action controller and with an alpha channel in their texture), the said parameter is set to 4, but in our files it is set to 6.

I start wondering if this is not the culprit for the corrupted reflections on our model. I know the chance of this being true is low, but as someone else said: "when you have eliminated the impossible, whatever remains, however improbable, must be the truth". Maybe worth a try?
Hi Gap,

No. It doesn't solve our problem.

I think the only solution to apply a specular effect is the value to choose (specular strenght), even if it gives only a uniform effect.
  Reply With Quote
Old 07-23-17, 11:43 AM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
Hi Gap,

No. It doesn't solve our problem.

I think the only solution to apply a specular effect is the value to choose (specular strenght), even if it gives only a uniform effect.
The way specular reflections are set in our files is nothing experimental; if you look at stock ships, you will see that their materials have the SpecularMask controller and textures with an alpha channel. I don't get why those settings work for them, but not for our unit. Can the problem be in the texture we are using?

I ask you to do one last test to narrow down the problem: export the hull texture (NBB_BismarkNewest.tga) from NBB_Bismark, rename it LH_LaPlate.tga, and drop it in the tex folder of our mod, therefore replacing the original texture, but not before you embedded it (the original version of LH_LaPlate.tga) to a copy of NBB_Bismark.dat which you will have added to our mod. Add then the Bismark to our testing mission and run it.

If our texture/alpha channel is "wrong", at this point the Bismark will have an almost antirely black hull, and our lighthouse will have messed up texture but with correct looking specular reflections. Vice versa, if the problem resides elsewhere, the Bismark will have messy -but not black- textures, and our lighthouse will still look black.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-23-17, 01:07 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by gap View Post
I ask you to do one last test to narrow down the problem...
To ease your task, I have created a patch that you can enable on top of the last alpha to test what I am suggesting:

https://www.mediafire.com/?5u88cqe4j1v484v

All you have to do is adding the Bismark to our testing mission, and run it after enabling the patch.

On a partly unrelated note, something I have noticed about stock sea units, is that they have two UV coordinates/Map channel sets. That's common in SHIV & 5 units, the second UV set being used for amblient occlusion mapping. So far, I thought that the apparently redundant Map channels in SHIII were the leftover of an abandoned feature, as their UV unwrapping is quite messy, but I start wondering if -messy as it is- it isn't required for additonal map channels (normal or specular maps) to be rendered on the model. If that was true, the implementation of only two Map channels would explain why, at best, we can only have one additional map (besides the diffuse texture) for any given model
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-23-17, 03:54 PM   #4
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
To ease your task, I have created a patch that you can enable on top of the last alpha to test what I am suggesting:

https://www.mediafire.com/?5u88cqe4j1v484v

All you have to do is adding the Bismark to our testing mission, and run it after enabling the patch.
My game stays blocked on the start screen of the mission ...



More tests tomorrow.

  Reply With Quote
Old 07-23-17, 05:52 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
My game stays blocked on the start screen of the mission ...

The test patch 1 contains only two files. I suppose it will be easy understanding which one makes the game to freeze. I suspect NBB_Bismark.dat: the version of it I have tweaked might come from GWX and might not be compatible with your game installation. The one change I made to it, is replacing the embedded hull texture with the one of our lighthouse.

Quote:
Originally Posted by Kendras View Post
More tests tomorrow.

No problem. Tomorrow, if you get time, also run a test with testing patch #2:

https://www.mediafire.com/?w7b55ob5ros1g52

This patch adds additional map channels to the tourelle and to all its parts. Maybe it is not the ultimate fix to the specular mask problem but, if my suspects are right, it should definitely make some difference in game.
If you can't see any, we will remove the alpha channels from our textures, and we will keep their implemetation (if still possible) as last task before release
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-24-17, 07:00 AM   #6
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Results of tests with patch 1 :

- the .tga file embedded in the bismark.dat must be resized at 512x512, original size makes the mission impossible to load.

- still a problem of black pixels on the tower model

- pics :

bismark :

 


tower :

 
  Reply With Quote
Old 07-24-17, 07:05 AM   #7
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Result of test with patch 2 :

nothing new, tower is still black (and yes, i have corrected added the new files, there was no data folder)
  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 07:47 AM.


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