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 01-20-19, 06:31 PM   #1
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,655
Downloads: 137
Uploads: 0


Default

Appears to be what is hard coded somewhere is my guess at the moment.
Jeff-Groves is offline   Reply With Quote
Old 01-20-19, 06:39 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Appears to be what is hard coded somewhere is my guess at the moment.
I wish that we could read that matrix in ascending order from the top left to the bottom right, assigning to each height value a grey value as follows:

-1500=0 ; -448=1 ; ... ; 7888=254 ; 8000=255

Am I asking too much?

EDIT: I have just received confirmation; my guessing was correct

Now I need to create two custom palettes: one for sorting grey values of those raw files in ascending height order, so that we can edit them in photoshop, and a second palette for sorting values back in the SH5 (dis-)order
__________________
_____________________
|May the Force be with you!|
...\/

Last edited by gap; 01-20-19 at 06:58 PM.
gap is offline   Reply With Quote
Old 01-20-19, 06:59 PM   #3
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,655
Downloads: 137
Uploads: 0


Default

I'm playing with one of the RAW files now.
So the scale is 256 colors as the code snippet shows.
Each pixel is 8 bits I believe.
In Hex that all checks out.

Last edited by Jeff-Groves; 01-20-19 at 07:17 PM.
Jeff-Groves is offline   Reply With Quote
Old 01-20-19, 07:05 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
I'm playing with one of the RAW files now.
In hex they are not a perfect match to what I think is the floats chart listed but real close.

So the scale is 256 colors as the code snippet shows.
Each pixel is 8 bytes I believe.
Before you waste your time on complex calculations read my edit below please:

Quote:
Originally Posted by gap View Post
EDIT: I have just received confirmation; my guessing was correct

Now I need to create two custom palettes: one for sorting grey values of those raw files in ascending height order, so that we can edit them in photoshop, and a second palette for sorting values back in the SH5 (dis-)order
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-20-19, 08:08 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Something doesn't add up

At first I thought that the height values in the code provided by Mihai was in casual order, but with only a few exceptions that's not true. Most values are sorted in ascending order. If the matrix was read from top left to bottom right, the grey values on the raw heightmaps should be much more intelligible than they actually are...
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-20-19, 09:11 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

These are the five heightmaps composing Helgoland and Dune, assembled together:



As a test, I selected all the white pixels (#ffffff). If there was an univocal correspondance between grey values on the raw maps and elevations in game, I would have expected pixels with the same intensity to coincide with areas having at least similar heights. Well, this is the result of my selection, overlayed to the chart of the two islands, as we see it on the navigation map:



Obviously some kind of noise gets applied to the height information of those heightmaps, and/or they don't represent absolute elevation values, but variations of elevation over terrain elevation data stored in TerrainData.BFD
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-26-19, 03:57 PM   #7
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

OT
"Due to certain broken aspects of SH5's launcher, there is a possibility that even upon reaching campaign chapter ending date, campaign transfer still may fail to initialize"
Is this still the case ?
THE_MASK is offline   Reply With Quote
Old 01-26-19, 04:43 PM   #8
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,655
Downloads: 137
Uploads: 0


Default


Sure your in the right thread?
Jeff-Groves is offline   Reply With Quote
Old 01-26-19, 06:31 PM   #9
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by sober View Post
OT
"Due to certain broken aspects of SH5's launcher, there is a possibility that even upon reaching campaign chapter ending date, campaign transfer still may fail to initialize"
Is this still the case ?
You should ask the same question in the TWoS thread sober; many valiant captains actively involved in the Battle of the Atlantic check that thread on a daily basis, and I am sure they will give you an answer. Here you will meet mostly mechanics and engineers, more interested in the inner workings of the game than in the progress of the war
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Reply

Tags
enviromental mod, environment, terrain, trees, vegetation


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 01:52 AM.


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.