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

@ Kendras

Have you seen my post #485?

Quote:
Originally Posted by Kendras View Post
Correction : I'm testing with vanilla game, but modded with WAC 4.1 terrain and WAC 4.1 locations.


Quote:
Originally Posted by Kendras View Post
I think it's a very good idea, and it does not cause any problem.
lighthouse text labels are much more smooth now, yet I can see some unwanted effects too: they are visible at lower zoom levels, meaning that the map will look a bit messy when there will be many lighthouses around the coasts, and no matter how hard I tried finding an paragraph end marker which works for those labels, I couldn't find any: Lighthouse names and their shortened characteristics must be on the same line.

A question: do enemy units still attack our lighthouse set as naval bases?

Quote:
Originally Posted by Kendras View Post
The CTD is probably due to the Locations.cfg file in Terrain folder. You have to install manually the new locations in your own Locations.cfg file (ignore the Brest_U_Bunker new entry) from line ; LIGHTHOUSES, and correct the numbers in each [Location ---] .
I don't think so. I am testing over GWX, and the Locations.cfg file included in the last beta (which I took from you, with some basic modifications), doesn't cause any crash. I must be something text-related

Quote:
Originally Posted by Kendras View Post
I've tried to launch the mission in 1945, and no CTD occured.
Tested with v12?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-08-17, 10:49 AM   #2
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Have you seen my post #485?
Oh yes, sorry. So, this was exactly what I was searching for, but it didn't help to sort out the idea I was following. Thank you anyway. These .tga with colored background are something very strange to me. The same thing happens with trees' textures. And in game the background is transparent...

Quote:
Originally Posted by gap View Post
Tested with v12?
Yes.
  Reply With Quote
Old 08-08-17, 11:24 AM   #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
Oh yes, sorry. So, this was exactly what I was searching for, but it didn't help to sort out the idea I was following. Thank you anyway.
My pleasure

Quote:
Originally Posted by Kendras View Post
These .tga with colored background are something very strange to me. The same thing happens with trees' textures. And in game the background is transparent...
Tree materials are hardcoded; it is possible that they have been coded so that their texture's background color is transparent in game. Other textures require (semi-)transparent areas to be painted as grey/black in their alpha channel, and the "enable alpha blend" flag of their material to be enabled. Texture particles seem to be the exception to that rule, as their transparency mask is often painted on the RGB channel rather than on the alpha channel
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-09-17, 12:28 PM   #4
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,456
Downloads: 976
Uploads: 0
Default

I tested the patch I modified on another version of the GWX. And it works, except my game GWX_Rus.https://www.dropbox.com/s/ay48lvxv90...%20Rus.7z?dl=0



But I do not have the "Lighthouse" symbol on the map.

I want to deal with the problem now, whatever happens to the final version "Lighthouses mod".

Last edited by Anvar1061; 08-09-17 at 02:06 PM.
Anvar1061 is offline   Reply With Quote
Old 08-09-17, 01:22 PM   #5
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

@ Anvar : The foam particles have a different texture from the one I added ... !

I think I should change its name in Materials.dat.

Would you want to use Teamviewer with me ? I may help you to sort out your problems directly.
  Reply With Quote
Old 08-09-17, 01:46 PM   #6
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,456
Downloads: 976
Uploads: 0
Default

Quote:
Originally Posted by Kendras View Post
@ Anvar : The foam particles have a different texture from the one I added ... !

I think I should change its name in Materials.dat.

Would you want to use Teamviewer with me ? I may help you to sort out your problems directly.
The problem was "GWX terrain +Sein" mod!
You will render a huge service to modders if you specify what you changed in Materials.dat and particles.dat.
Anvar1061 is offline   Reply With Quote
Old 08-09-17, 05:03 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
Yes, I know this. In the foam_particles generator, MaxParticles=40, life for each particle is 2s, and rate of creation is 10/s, so there is a maximum of 20 particles ...
Yep, you are right: it can't be that. It is possible that when generator's height is under the lower limit set in GenHeightControl, the generator is stopped and all its particles deleted instantly, thus causing splashes to disappear abruptly. BTW: shouldn't Runmode set to 'Stop'?

Talking about GenHeightControl, I forgot to mention that the idea of asscoaiting it with the FloatingObject controller to trigger the splash effect, is brilliant! Is it your, or you borrowed it from somewhere else?

Quote:
Originally Posted by Kendras View Post
Yes ok, if it's still working.
Sure it is. On my HD, all of your particle genertors and materials are stored in the custom FX library file I had created for light effects. I wanted to create yet another library file to be used only for materials, but it didn't work. Apparently particle materials can only be stored either in Materials.dat, or in the same file as the particle generator(s) calling for them.

Quote:
Originally Posted by Kendras View Post
@ Anvar : The foam particles have a different texture from the one I added ... !

I think I should change its name in Materials.dat.
Quote:
Originally Posted by Anvar1061 View Post
You will render a huge service to modders if you specify what you changed in Materials.dat and particles.dat.
That is what I was talking about. Tweaking those files and looking for compatibility with every single mod/megamod also changing them, is a mess. Please download my files below to fix this kind of issues once and for all

Quote:
Originally Posted by Kendras View Post
The one with a bitmap particle item attached creates the visual effect. The other one creates one "object" which has a sound attached. Long time ago, I tried to create a particles generator with both bitmap and object items, and it didn't work properly, IIRC.
Okay, so the generator with the sound attached to it has no visual effect?

Quote:
Originally Posted by Kendras View Post
Really, no details can escape from you !


Quote:
Originally Posted by Kendras View Post
This node was part of an attempt to create a unique generator throwing several particles generators all around the beacon, but it didn't work.
Yes, I think that keeping them separate is a better idea, as they can be triggered independently from each other on different areas of the model. There is the other side of the coinn though: placing them all around bigger and irregular models, as the rock of La Vieille, will be a pita

Quote:
Originally Posted by Kendras View Post
You can ignore/delete it. Same remark for both nodes called "$mat_int_halo_2".
well, that's weird: if I delete it, all the bitmap particles become opaque, and I can only see whitish squares where there used to be water sprays. Can you please have a look in the issue?

Quote:
Originally Posted by Kendras View Post
Yes, the direction of the foam is in the other direction of the wave, because (in my mind) the water crashes on the beacon, splashes in the air and returns in the other direction with foam.
Okay, I will give your configuration a second try, but as I said before, during my first tests I had the feeling that if a wave was coming from south, tsplashes appeared on the north side of the lighthouse base, and vice versa

Quote:
Originally Posted by Kendras View Post
Do you have a screenshot ?
I don't, but I have uploaded my tweaked files:

Tourelle de La Plate v12 - Patch 2

Instructions: remove Particles.dat, Materials.dat and Materials.dsd from Tourelle de La Plate v12 - Patch 1, enable it over Tourelle de La Plate v12 and then enable Tourelle de La Plate v12 - Patch 2 on top of the two previous mods.

Quote:
Originally Posted by Kendras View Post
I fear it won't be possible.
Why not? Life Variation, Creation Rate Variation, Size Variation, Velocity Variation, Weight Variation, Opacity Variation, Spin Variation, RandomMotion
and Wind Coefficients are there for a reason. Many of the cool SH5 effects were created using more or less the same controllers and textures as SHIII, but making the best of the rendom features which are seldomly used in SHIII.

Quote:
Originally Posted by Kendras View Post
In the generator with the bitmap item attached, you can add as many items (with different materials linked, and different settings) as you want.


Quote:
Originally Posted by Anvar1061 View Post
But I do not have the "Lighthouse" symbol on the map.

I want to deal with the problem now, whatever happens to the final version "Lighthouses mod".
The symbol gets visible on map at higher zoom levels than the lighthouse name

Quote:
Originally Posted by Anvar1061 View Post
The problem was "GWX terrain +Sein" mod!
Okay, you have probably installed a buggy version of those files. There should be a working version of them somewhere in this thread, but I didn't include them in v12 as Kendras wasn't fully satisfied with them. We will keep working on terrain modifications when we will finish with the La Plate tower. Sorry for the inconvenience
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-11-17, 03:35 PM   #8
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
lighthouse text labels are much more smooth now, yet I can see some unwanted effects too: they are visible at lower zoom levels, meaning that the map will look a bit messy when there will be many lighthouses around the coasts
A bit messy, yes :



Quote:
Originally Posted by gap View Post
A question: do enemy units still attack our lighthouse set as naval bases?
Tested : yes, they do.

----

Back to the 'stuttering' problem. I knew it ! The problem comes from the second particle generator (the one with the object item attached to). If you delete it, my foam effect is perfectly smooth. So, we might find a solution by changing time parameters in this generator (although I have very few hope), or another solution would be to add this sound generator independently from the foam generator, with an own genheight controller, and even an own floatingobject controller if needed.

Quote:
Originally Posted by gap View Post
Okay, I am a afraid we will get to live with the stuttering.
I don't want to. Visual effect is more important for me than sound effect.

Quote:
Originally Posted by MLF View Post
Just had a chance to have a look at V12 Patched to 4 - what magic.
I'm glad that you like it !
  Reply With Quote
Old 08-11-17, 04:16 PM   #9
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by MLF View Post
Just had a chance to have a look at V12 Patched to 4 - what magic. The stuttering of the waves appear to be a switch-on , switch off and then resume where it left off - the waves splash, rise up, switch off, switch on with the splash still high and splash subsides. Is that how you see it? I have tried to keep up, but real life took over so excuse if I'm out of touch. Anything you need tested with screenshots?
Quote:
Originally Posted by Kendras View Post
Back to the 'stuttering' problem. I knew it ! The problem comes from the second particle generator (the one with the object item attached to). If you delete it, my foam effect is perfectly smooth. So, we might find a solution by changing time parameters in this generator (although I have very few hope), or another solution would be to add this sound generator independently from the foam generator, with an own genheight controller, and even an own floatingobject controller if needed.
Since the object particle that the sound is linked to is not supposed to be visual, we might try placing it in the same ParticleGenerator as the visual bitmap particle, as an array item.

I have also noticed that increasing the max number of particles makes the effect somehow smoother. My suspect is that the total count of particles spawned must be multiplied by the number of times the particle generator is linked to the object (8 times in our case). Anyway, here are two more versions of the effect:

Tourelle de La Plate v12 - Patch 5

Tourelle de La Plate v12 - Patch 6

Both versions: max number of particles increased from 40 to 400 and two splash effects used: one for waves higher than 1 m and another effect for waves higher than 2 m.

Patch 5: the lower particle effect uses the same waterspray bitmap particle as the high one, but squeezed vertically to look shorter.

Patch 6: the lower particle effect use a new bitmap particle.

Patch 3 to 6 are alternative to each other and shouldn't be enabled together.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-11-17, 04:56 PM   #10
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Since the object particle that the sound is linked to is not supposed to be visual, we might try placing it in the same ParticleGenerator as the visual bitmap particle, as an array item.

I have also noticed that increasing the max number of particles makes the effect somehow smoother. My suspect is that the total count of particles spawned must be multiplied by the number of times the particle generator is linked to the object (8 times in our case).
You are not searching in the right direction.

Here, it works very well :

  Reply With Quote
Old 08-11-17, 05:04 PM   #11
MLF
Weps
 
Join Date: Sep 2002
Location: SW France
Posts: 358
Downloads: 137
Uploads: 0
Default

IMO patch 5 is better - reduced stuttering but spray switches off too quickly. Patch 6 the splash is too reduced, you would expect some spray even in calmer weather. What about splash refection - possible? If you look at the lighthouse from above it's weird that the splash is there and then is immediately gone without any aftermath.

MLF
__________________
Je pense donc je fuis!
MLF is offline   Reply With Quote
Old 08-11-17, 05:34 PM   #12
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
You are not searching in the right direction.

Here, it works very well :
Like this?

Tourelle de La Plate v12 - Patch 7

Quote:
Originally Posted by MLF View Post
IMO patch 5 is better - reduced stuttering but spray switches off too quickly. Patch 6 the splash is too reduced, you would expect some spray even in calmer weather.
Wait, I am going to post a couple of variants which might address the lack of spray you noticed with patch 6

Quote:
Originally Posted by Kendras View Post
What about splash refection - possible? If you look at the lighthouse from above it's weird that the splash is there and then is immediately gone without any aftermath.
Do you mean water reflections (they should be already there) or what else? We are planning to add foam on the surface...
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-11-17, 07:17 PM   #13
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by MLF View Post
IMO patch 5 is better - reduced stuttering but spray switches off too quickly. Patch 6 the splash is too reduced, you would expect some spray even in calmer weather. What about splash refection - possible? If you look at the lighthouse from above it's weird that the splash is there and then is immediately gone without any aftermath.
MLF, can you please test the following:

Tourelle de La Plate v12 - Patch 8

Two versions included:

Patch 8a:

- Particles, wave height ≥ 1m: 'shortened' vertical spray particles and horizontal splash particles used in the same quantity
  • half the quantity of vertical spray particles than used in patch 5 (not used in patch 6)
  • half the quantity of horizontal splash particles than used in patch 6 (not used in patch 5)

- Particles, wave height ≥ 2m: unchanged

Patch 8b:

- Particles, wave height ≥ 1m:
  • from no vertical spray particles to half the quantity used in patch 5 (this is random: the higher wave height, the higher the chance that some spray particles will spawn)
  • same quantity of horizontal splash particles as used in patch 6

- Particles, wave height ≥ 2m: unchanged

I recommend you to test both versions after setting wind speed of the test mission to 15 m/s, and to reload the mission several times (as it seems that sea conditions are slightly diffrent every time a single mission is loaded).

Thanks to Kendras' intuition, the stuttering should be gone for good with no need of giving up the crashing wave sound effect
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 08-12-17, 03:59 AM   #14
MLF
Weps
 
Join Date: Sep 2002
Location: SW France
Posts: 358
Downloads: 137
Uploads: 0
Default

Hi Gap,

I've tested Patch 7, 8a and 8b.

Patch 7 - (Screenshots 1 & 2) Splash very smooth - no stuttering . Origin of spray segments are very apparent from above, with straight edges.

patch 8a - (Screenshots 3 & 4)Better spray effect, but edges still apparent when spray reduces/dissolves

Patch 8b - (Screenshots 5 & 6) IMO the best. Spray impressive, and density,height better. No straight edges apparent from above

Would it be be possible to have the spray go higher and be more wind blown after spawning (depending on wind speed). At the moment I feel there is a certain lack of fury in the spray.

If the idea is to add foam then reflections of the spray would not be needed. The more the sensation of wetness in rough stormy weather, the better

I edited the mission to increase wind speed to 15 m/sec, and I also set cloud cover to heavy with no changes. Unless the clouds are blue there didn't seem to be any change in the sky - have you noticed this?

Regards,

MLF
Attached Images
File Type: jpg P7 - Side.jpg (71.0 KB, 10 views)
File Type: jpg P7 - above.jpg (82.1 KB, 9 views)
File Type: jpg 8a - side.jpg (62.4 KB, 9 views)
File Type: jpg 8a - above.jpg (92.8 KB, 11 views)
File Type: jpg 8b - side.jpg (57.6 KB, 16 views)
File Type: jpg 8b - above.jpg (73.7 KB, 13 views)
__________________
Je pense donc je fuis!
MLF is offline   Reply With Quote
Old 08-12-17, 04:52 AM   #15
MLF
Weps
 
Join Date: Sep 2002
Location: SW France
Posts: 358
Downloads: 137
Uploads: 0
Default

I have attached a screenshot of Patch 8b in calmer conditions, and the reflection of the spray is apparent
Funny thing is I edited the mission and added precipitation. It now rains from a clear blue sky - but don't suppose this has anything to do with this work.

regards,

MLF
Attached Images
File Type: jpg 8b Calm.jpg (44.5 KB, 12 views)
__________________
Je pense donc je fuis!

Last edited by MLF; 08-12-17 at 05:11 AM.
MLF 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:39 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.