![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
GLOBAL MODDING TERRORIST
|
![]()
Appears to be what is hard coded somewhere is my guess at the moment.
|
![]() |
![]() |
![]() |
#2 | |
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]() Quote:
-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 ![]() Last edited by gap; 01-20-19 at 06:58 PM. |
|
![]() |
![]() |
![]() |
#3 |
GLOBAL MODDING TERRORIST
|
![]()
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. |
![]() |
![]() |
![]() |
#4 | ||
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]() Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#5 |
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]()
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... |
![]() |
![]() |
![]() |
#6 |
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]()
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 ![]() |
![]() |
![]() |
![]() |
#7 |
Ace of the deep .
|
![]()
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 ? |
![]() |
![]() |
![]() |
#8 |
GLOBAL MODDING TERRORIST
|
![]() ![]() Sure your in the right thread? ![]() |
![]() |
![]() |
![]() |
#9 | |
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
Tags |
enviromental mod, environment, terrain, trees, vegetation |
|
|