SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
02-19-19, 12:59 PM | #1 | |
Village Idiot
|
Quote:
Height points in a RAW file is 10201 It's 101 floats x 101 floats From looking at the source code I see this....... const int secondsPerPx = 3; //arc seconds per pixel (3 equals cca 90m) So changing = 3 to = 1 would give us 30m (Also saw that commented out so maybe we can't do that?) Resolution for SH5 is 25m per height value is it not? Last edited by Jeff-Groves; 02-19-19 at 01:12 PM. |
|
02-19-19, 01:57 PM | #2 | ||||
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
Quote:
I will let you know if I need you to do some testing Quote:
Quote:
The 30-Meter SRTM dataset that we want to use in game, has a resolution of 1" (= 1 deg / 3600) whereas SH5 RAW files have a resolution of 1.5" (= [1 deg / 24] / 100). Theoretically, using github/OldCoder's exe for downsampling SRTM data to the SH5 resolution, we should apply a stepping factor of 1.5. If a similar factor was applied correctly, for a tile of 1 deg x 1 deg, I would expect an output containing 5,764,801 height points (= 2401 x 2401) rather than the full resolution 12,967,201 (= 3601 x 3601) height values. Yet, no matter what stepping factor I apply (tried with 1, 1.5, 2 and 3), I always obtain an output with 1,442,401 height values (= 1,201 x 1,201) I hope I made myself clearer now |
||||
02-19-19, 02:23 PM | #3 |
Village Idiot
|
Could be this line in the source.............
const int totalPx = 1201; I'm reading the code as I do back ground checks on new applicants for jobs. |
02-19-19, 02:48 PM | #4 |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Maybe try using the data extractor yourself first... maybe I am doing something wrong though I doubt that
|
02-19-19, 03:26 PM | #5 |
Village Idiot
|
Send the files your working with to my e-mail and I'll work with them.
|
02-19-19, 04:41 PM | #6 |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Okay, thanks. Check your email
|
02-21-19, 07:55 PM | #7 |
Village Idiot
|
Had to go back to Cleveland for a few days but I have the files.
Now I just got word I have to go to California for a few days. |
Tags |
enviromental mod, environment, terrain, trees, vegetation |
|
|