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-26-17, 04:12 AM   #1
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Exactly, 256 shades of grey, each shade being a different height. Indeed, we need to know how many meters below the sea level each shade corresponds to. We don't have this information, all I can say righ away is that sea areas are marked with values from 0 to 47, and land areas go from 48 to 255 (0 being the deepest trench and 0 the highest peak)
...
Knowing how deep is that point in game, we can build our own chart with grey values on a column and depths in meters on the other column. I can imagine that there is a linear correlation between grey values and height values, so we don't have to repeat the process 256 times: two or three well space measures, maybe four to stay on the safe side, will be enough to plot a line which will tell us what is the right grey value for the (approximate) depth we want
Precisely, the scale is not linear. A few months ago, I determined for almost all submerged pixels the exact depth, by changing colors of the scale (red-yellow-blue ... in order to distinguish between each depth) and putting land units on each depth in Mission Editor to know the exact depth.

Here is the scale :

 


Quote:
Originally Posted by gap View Post
Knowing that the globe is divided in 180 x 360 = 64,800 elevation squares having a resolution of 126 sq. pixels each, and that the three most external pixels on each side of each square are 'redundant'
Now, here is my idea : instead of searching the exact depth of each pixel (14400 for each square !) in Google Earth, let's take the map with red to blue scale I've posted, and convert into grey scale with the SH3 own scale, then apply to the SH3 map.

After that, I think we have to correct also the 3 pixels borders of the 9 squares around.
  Reply With Quote
Old 07-26-17, 05:53 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
Precisely, the scale is not linear. A few months ago, I determined for almost all submerged pixels the exact depth, by changing colors of the scale (red-yellow-blue ... in order to distinguish between each depth) and putting land units on each depth in Mission Editor to know the exact depth.

Here is the scale :

 
Oh, amazing

Tha's exactly the scale we need, with the Terrain.act palette applied to it. You can replace each shade of blue on it with a grey value going from 0 to 47

Out of curiosity: do the first two values both correspond to -17 m?

Quote:
Originally Posted by Kendras View Post
Now, here is my idea : instead of searching the exact depth of each pixel (14400 for each square !) in Google Earth, let's take the map with red to blue scale I've posted, and convert into grey scale with the SH3 own scale, then apply to the SH3 map.
Sure, we can't do this work pixel by pixel

We are going to face some problems though:

1- what is the scale/projection of your depth map? If we want to do a decent work, that map should be stretched to fit the SHIII world

2- sure we can convert that colour map into a grey-scale image, but then grey values wouldn't have any relation with depths.

It would be better starting from a greyscale haight map. I have read on the web that, though a bit complicated, extracting height data from Google Earth is all but impossible.

Quote:
Originally Posted by Kendras View Post
After that, I think we have to correct also the 3 pixels borders of the 9 squares around.
That's going to be a real PITA
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-26-17, 06:16 AM   #3
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Oh, amazing

Tha's exactly the scale we need, with the Terrain.act palette applied to it. You can replace each shade of blue on it with a grey value going from 0 to 47


Quote:
Originally Posted by gap View Post
Out of curiosity: do the first two values both correspond to -17 m?
I think so, but first value should not be used, as it can take blue or brown color, depending on the map scale...

Quote:
Originally Posted by gap View Post
2- sure we can convert that colour map into a grey-scale image, but then grey values wouldn't have any relation with depths.
Except if we "rescale" the SH3 map picture in order to be linear.

Quote:
Originally Posted by gap View Post
It would be better starting from a greyscale haight map. I have read on the web that, though a bit complicated, extracting height data from Google Earth is all but impossible.
That would be amazing !
  Reply With Quote
Old 07-26-17, 06:42 AM   #4
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Just a note : I realized that the map from Schnell Boot v2 is even better than the map from War Ace Campaign v4.1. So, we should use the one coming with SBM 2.
  Reply With Quote
Old 07-26-17, 02:42 PM   #5
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
Just a note : I realized that the map from Schnell Boot v2 is even better than the map from War Ace Campaign v4.1. So, we should use the one coming with SBM 2.
What card are you talking about? Show the path to the file and how it can be opened.
Anvar1061 is offline   Reply With Quote
Old 07-26-17, 03:21 PM   #6
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Anvar1061 View Post
What card are you talking about? Show the path to the file and how it can be opened.
So here in WAC 4.1 :

 


And here in SBM 2 :

 
  Reply With Quote
Old 07-28-17, 05:49 AM   #7
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
So here in WAC 4.1 :

 


And here in SBM 2 :

 
Does this mean that I should try SB World mod?
Anvar1061 is offline   Reply With Quote
Old 07-26-17, 03:32 PM   #8
the_frog
Commander
 
Join Date: Nov 2010
Posts: 452
Downloads: 17
Uploads: 0
Default

Hello gap,

before making things too complex -- what I was suggesting:

-- consider a less complex file structure (this may cause SH3 loosing track of all texture file paths ... that sometimes causes funny texture effects ....
-- this happens often preferentially with textures in the Texture folders ... that's why in GWX most textures were placed into the respective *.dat files or into the subfolders of the Air and Sea folder. Also, loading of large external texutures takes longer (and may cause fancy effects) than of embedded textures
the_frog is offline   Reply With Quote
Old 07-26-17, 03:38 PM   #9
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon14

Quote:
Originally Posted by the_frog View Post
Hello gap,

before making things too complex -- what I was suggesting:

-- consider a less complex file structure (this may cause SH3 loosing track of all texture file paths ... that sometimes causes funny texture effects ....
-- this happens often preferentially with textures in the Texture folders ... that's why in GWX most textures were placed into the respective *.dat files or into the subfolders of the Air and Sea folder. Also, loading of large external texutures takes longer (and may cause fancy effects) than of embedded textures
Thank you very much, the_frog !
  Reply With Quote
Old 07-27-17, 04:42 AM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by the_frog View Post
Hello gap,

before making things too complex -- what I was suggesting:

-- consider a less complex file structure (this may cause SH3 loosing track of all texture file paths ... that sometimes causes funny texture effects ....
-- this happens often preferentially with textures in the Texture folders ... that's why in GWX most textures were placed into the respective *.dat files or into the subfolders of the Air and Sea folder. Also, loading of large external texutures takes longer (and may cause fancy effects) than of embedded textures
This is an extremely simplified testing version of La Plate (only the tower) with resized textures embedded into the dat file:

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

Let me know if the specular mask is still black
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-26-17, 07:53 AM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Kendras View Post
I think so, but first value should not be used, as it can take blue or brown color, depending on the map scale...
Maybe that's a feature. Let's take a mental note of it, just in case we will need something like that in future

Quote:
Originally Posted by Kendras View Post
Except if we "rescale" the SH3 map picture in order to be linear.
Believe me, that's not going to happen. The SH world is the way it is and, once you know the rules, everything is in its right place. Look for any known location on my spreadsheet if you don't believe it.
Sure, distances are not right, and land masses are stretched out, but there is no way we can squeeze a spherical world into a cylindrical one. The one thing we would achieve, is moving around islands, ports, straits, landmarks and other geographical features in unpredictable ways

Quote:
Originally Posted by Kendras View Post
That would be amazing !
Let's put us on that. Provided that we manage getting our hands on good quality grayscale heightmaps, we couldn't use them as they are. Reason is that shades of gray shown on them are a linear fucntion of RW heights, whereas in SHIII the relation is not linear. I have plotted data from your chart on an Excel graph and left the program to interpolate a likely tendency line. This is the result:

 


Before we could use any heightmap, we should adjust its tonal range to reflect the graph above...
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-26-17, 08:06 AM   #12
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Provided that we manage getting our hands on good quality grayscale heightmaps, we couldn't use them as they are. Reason is that shades of gray shown on them are a linear fucntion of RW heights, whereas in SHIII the relation is not linear.
Yes.

Quote:
Originally Posted by gap View Post
Believe me, that's not going to happen. The SH world is the way it is and, once you know the rules, everything is in its right place. Look for any known location on my spreadsheet if you don't believe it.
Sure, distances are not right, and land masses are stretched out, but there is no way we can squeeze a spherical world into a cylindrical one. The one thing we would achieve, is moving around islands, ports, straits, landmarks and other geographical features in unpredictable ways
You didn't understand me. I mean the picture of the SH3 scale, in photoshop or paint.net : for each meter of depth, and thanks to the scale i've posted, we add the correct grey used by SH3 (Terrain Editor). Then, we get a real depth map (heightmap for example), we create the depth color scale used by it, and put this scale just above the grey SH3 scale. And then, for each SH3 depth intervall (one unique grey color), we select all the colors from the real depth map scale, and convert them into the correct grey. Easy ! But maybe i'm not clear enough...
  Reply With Quote
Old 07-26-17, 08:37 AM   #13
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 didn't understand me. I mean the picture of the SH3 scale, in photoshop or paint.net : for each meter of depth, and thanks to the scale i've posted, we add the correct grey used by SH3 (Terrain Editor). Then, we get a real depth map (heightmap for example), we create the depth color scale used by it, and put this scale just above the grey SH3 scale. And then, for each SH3 depth intervall (one unique grey color), we select all the colors from the real depth map scale, and convert them into the correct grey. Easy ! But maybe i'm not clear enough...
I think I got you now

That would be easier if we had access to a bathymetric chart with several bands of different colours, each colour representing a range of heights, like the one below:

 

Okay, this is for wind speeds but you get the idea


Even easier if we had a graph showing bathymetric curves:

 



Working on colour gradients, as the ones in the graph we have currently available, makes things much more complicated
__________________
_____________________
|May the Force be with you!|
...\/

Last edited by gap; 07-26-17 at 08:45 AM.
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: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.