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 02-19-19, 12:59 PM   #1
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,394
Downloads: 131
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
Thank you very much!

I have received your files. The recompiled exe works now, though, whatever stepping value is used as its argument, the resulting .txt output contains 1,442.401 (i.e. 1,201 x 1,201) height points, which is equal to one third of the original resolution (stepping factor = 3).

For our purposes we need to apply a stepping factor of 1.5. Using that value I would expect an output containing 5,764,801 (i.e. 2,401 x 2,401) height points.

Any idea on why the stepping factor doesn't work and how to fix it? I have the source code that you sent me, but I know nothing about C++, and even if I started learning it today, I am afraid it would take long before I could figure out the problem by myself
Not following you here.
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.
Jeff-Groves is offline   Reply With Quote
Old 02-19-19, 01:57 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Ashikaga View Post
You guys are doing an awesome job! Say, how does the landscape buildup/world building of Sh5 compare with for instance IL2 Cliffs of Dover?
I have never messed with any of the games of the IL-2 Sturmovik franchise, so I can't say for sure, but I am afraid that comparing a submarine simulator with a flight simulator wouldn't lead to any conclusion: in one case we have a world made for being observed from the sea level, while in the latter case the privileged view is obviously from top...

Quote:
Originally Posted by Sjizzle View Post
gap m8 if u need a tester for your work just let me know...
btw i just installed this mod in my mod list damn look awesome ....
ROGER that. Thank you mate, the next release shouldn't take too long.
I will let you know if I need you to do some testing

Quote:
Originally Posted by Jeff-Groves View Post
Not following you here.
Height points in a RAW file is 10201
It's 101 floats x 101 floats
true

Quote:
Originally Posted by Jeff-Groves View Post
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?
Forget about meters. Due to distance stretching caused by cylindrical map projections, and to the arbitrary scale used in SH5, we better use angles than meters as unit of measure.

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
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-19-19, 02:23 PM   #3
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,394
Downloads: 131
Uploads: 0


Default

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.
Jeff-Groves is offline   Reply With Quote
Old 02-19-19, 02:48 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
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.
Maybe try using the data extractor yourself first... maybe I am doing something wrong though I doubt that
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-19-19, 03:26 PM   #5
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,394
Downloads: 131
Uploads: 0


Default

Send the files your working with to my e-mail and I'll work with them.
Jeff-Groves is offline   Reply With Quote
Old 02-19-19, 04:41 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Jeff-Groves View Post
Send the files your working with to my e-mail and I'll work with them.
Okay, thanks. Check your email
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-21-19, 07:55 PM   #7
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,394
Downloads: 131
Uploads: 0


Default

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.
Jeff-Groves 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 07:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.