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-22-17, 07:55 AM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by MLF View Post
The reflections look good, apart from the light (halo) missing - that doesn't look right IMO. See screenshot 1
Okay, I hope in the next days you will get the time to test my tweaks of the light FX without halo but with water reflection controller. See one of my answers below for more details on that.

Quote:
Originally Posted by MLF View Post
I believe caustics are the reflection of light from 1 surface to another. https://en.wikipedia.org/wiki/Caustic_(optics)
Yes, you are right. More specifically, caustics are sun rays refracted by the wavy sea surface and reflected on other surfaces. This is how this optical effect looks in reality:

 


and this is how SH5 mimics it:

 


I know caustics are also featured in SHIII, but I don't know how well implemented they are.

Quote:
Originally Posted by MLF View Post
I would therefore expect to see light being reflected from the sea on to the lighthouse which I don't I'm afraid. However the light/shade does change when the sun moves around the tower. (See screenshot 2 and 3)
Yes, I don't see any caustics in your screenshot

Quote:
Originally Posted by MLF View Post
As Kendras reports, the model was black with speckles. I deleted the alpha channel and the light was rendered correctly but possibly specular reflections isn't working?
No, specular reflections are coming from the alpha channel. No alpha channel, no specularity

Quote:
Originally Posted by MLF View Post
I believe the reflection of the light on the water is more desirable as you have to be very close to the light to see the line under the platform which is still there. (See screenshot 4)
I think there's a misunderstanding here: to the best of my knowledge the main purpose of the RayTracedHalo controller, is making light sources to cast light on surrounding objects. When Kendras worked on the light effect (now stored in the Lighthouse_FX file), he added one to the light node, and this is where the light halo on platform's underside is coming from, I think. The controller has two states: "True" and "False"; when used in its main role, the controller must be set to "True", but I have read on the forum that the same controller could be used on some objects for making them to block the light from a nearby light source, so to prevent the light from affecting its back faces. As far as I understood, this is done by adding a second RayTracedHalo controller to the desired object, and by setting its flag to "False". This is exactly what I did with the platform, as i thought it could cure the glitch shown in your screenshot. When you tested my files, you reported that nothing had changes and I removed the controller (the one set to "False" from the platform, not the one one attached to the light effect, which is set to "True" and which has always been there from day one.
I then tried to add water reflections to the ligh effect, and attached a WaterReflectionController to it. When you tested this new version, you told me that the game crashed just after the first light flash and that you fixed the problem by removing the RayTracedHalo controller. That must have been the one stored in Lighthouse_FX, as the other one (the I had previously attached to the platform) had already been removed. Now my question is:

after you removed that controller, were light reflections working? was the lack of light halo acceptable?

I hope I made myself clear this time

Quote:
Originally Posted by MLF View Post
I also noticed a gap (not you) appearing between the tower and the base/rock as the sea level rises and falls – IMO not critical as underwater (See screenshots 5&6)
That's a bit puzzling too.

You said a gap "between the tower and the base/rock". Base/rock and tower are two separate objects, that's right. Their junction lies at the top of the concrete base (bottom of the yellow/black tower), and it is well above the sea level. Your screenshot and your wording clearly show that the glich happens underwater, near the water line, and that it only affects the concrete base, which is a solid mesh. Did you ever notice a similar glitch while testing other versions of the mod? Might the Caustics controller (attached to the base) have anything to do with it?

Quote:
Originally Posted by MLF View Post
Chart Icon is much much better. (Screenshot 7)


Quote:
Originally Posted by MLF View Post
Rock and tower both collisionable (Screenshots 8 & 9)


Quote:
Originally Posted by MLF View Post
As reported by Kendras, after shooting away the light – halo and top mark still exist. (Screenshot 10)
That was expected. I wish someone had tested v11 with patch 1 enabled on top of it

Quote:
Originally Posted by MLF View Post
Hope this helps

Out for most of day, so won't be able to test.
Sure it did! Thank you for your feedback and enjoy the week-end

Quote:
Originally Posted by Kendras View Post
The tower falls down, and then disappears.
Coool

I have one of the damage decals ready, and another one is in the works. When we finish with more important features/fixes, I can create a destroyed tower model to be linked to the main model through ObjectRemains controller (or, if it doesn't work, I can split the main model in two halves), and we can work on some 'concrete debris falling in the water' effect. What do you think?

P.S: can you please copy/paste your zone settings here?
I might decide to reinstall the game and to do some tests myself

Quote:
Originally Posted by Kendras View Post
Nothing is working. I did exactly as you asked, and here is the result at the end
Okay, no problem: we will fix it. I would give up on that if I wasn't sure that a good specular mask could greatly improve the look of that model
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-22-17, 03:29 PM   #2
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
When we finish with more important features/fixes, I can create a destroyed tower model to be linked to the main model through ObjectRemains controller (or, if it doesn't work, I can split the main model in two halves), and we can work on some 'concrete debris falling in the water' effect. What do you think?
IMO, it's not a good idea to use the ObjectRemains controller, not enough realistic to have a new model poped up from no where. The idea to create several destroyable parts is much better, like ships breaking in two parts. There, you could create several small parts that could have collisionable spheres in order they fly in the air when they are hit by shells. No need to create a new effect !

Quote:
Originally Posted by gap View Post
P.S: can you please copy/paste your zone settings here?


Here are my first values, but they can be a bit lowered if needed.

 
[ReinforcedTower]
Multiplier=1.000000
Flotability=0.000000
HitPoints=1000
Destructible=Yes
Armor Level=100
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None

[ConcreteTower]
Multiplier=1.000000
Flotability=0.000000
HitPoints=1000
Destructible=Yes
Armor Level=90
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None

[StoneTower]
Multiplier=1.000000
Flotability=0.000000
HitPoints=700
Destructible=Yes
Armor Level=60
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None

[BrickTower]
Multiplier=1.000000
Flotability=0.000000
HitPoints=600
Destructible=Yes
Armor Level=50
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None

[MetalTower]
Multiplier=1.000000
Flotability=0.000000
HitPoints=400
Destructible=Yes
Armor Level=40
Critic Flotation=0.300000
Critical=No
Effect1=Effect1=#Fire_small, 70
Effect2=#Fire_big, 100
FloodingTime=59.999996
CargoType=None

[SkeletalTower]
Multiplier=1.000000
Flotability=0.000000
Destructible=Yes
HitPoints=200
Armor Level=40
Critic Flotation=0.300000
Critical=No
Effect1=Effect1=#Fire_small, 70
Effect2=#Fire_big, 100
FloodingTime=59.999996
CargoType=None

[GasCylinder]
Multiplier=3.000000
Flotability=0.000000
HitPoints=50
Destructible=Yes
Armor Level=5
Critic Flotation=0.300000
Critical=No
Effect1=#Small_splinter_explosion_no_halo, 100
Effect2=#Fire_big, 100
FloodingTime=59.999996
CargoType=Fuel

[LanternRoom]
Multiplier=1.000000
Flotability=0.000000
HitPoints=150
Destructible=Yes
Armor Level=20
Critic Flotation=0.300000
Critical=No
Effect1=Effect1=#Fire_small, 70
Effect2=#Fire_big, 100
FloodingTime=59.999996
CargoType=None

[LanternBig]
Multiplier=1.000000
Flotability=0.000000
HitPoints=50
Destructible=Yes
Armor Level=5
Critic Flotation=0.300000
Critical=No
Effect1=#Small_splinter_explosion_no_halo, 100
FloodingTime=59.999996
CargoType=None

[LanternSmall]
Multiplier=1.000000
Flotability=0.000000
HitPoints=10
Destructible=Yes
Armor Level=1
Critic Flotation=0.300000
Critical=No
FloodingTime=59.999996
CargoType=None


Quote:
Originally Posted by gap View Post
Please scrap all the tweaks I suggested yesterday and check the 'Disable z-buffer wtite + enable alpha blend' checkbox for all the materials with SpeculaMask action controller attached
Still black.

Quote:
Originally Posted by gap View Post
Please, enabled this patch on top of alpha v 11 without your node changes, and tell me if now lantern and topmark are destroyed when the platform is destroyed
No, halo and top mark are still there after the platform is destroyed.
  Reply With Quote
Old 07-22-17, 04:03 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
IMO, it's not a good idea to use the ObjectRemains controller, not enough realistic to have a new model poped up from no where.
Well, when I talked about that controler I was thinking mostly about a burned out and warped version of the tourelle, after the gas explosion

Quote:
Originally Posted by Kendras View Post
The idea to create several destroyable parts is much better, like ships breaking in two parts. There, you could create several small parts that could have collisionable spheres in order they fly in the air when they are hit by shells. No need to create a new effect !
Well, there is not much in that tower that can be break apart if not the tower itself, but I can break it in two detachable parts, and I can make ledge to break apart as well

Quote:
Originally Posted by Kendras View Post
Here are my first values, but they can be a bit lowered if needed.
Thanks

Quote:
Originally Posted by Kendras View Post
Still black.
Le's see it The_Frog can give us some clue on that

Quote:
Originally Posted by Kendras View Post
No, halo and top mark are still there after the platform is destroyed.
Okay, no big problem here: your solution of moving Y02 and Y03 into the platform model is good enough
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-23-17, 07:28 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

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?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-23-17, 09:33 AM   #5
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   #6
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   #7
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
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:44 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.