UBOAT
Realistic periscope magnification
49 Comments
Kerberos 25 Sep, 2024 @ 1:09am 
my english is not good, but i installed this mod and nothing happen, evrything looks like before. why?
Mav87th 22 Sep, 2024 @ 11:53am 
Sounds brilliant Wintermu-ta. One of my favorite must haves in subsims, and did a mod of my own on the Camera.dat for SH4…
Shinpuren 3 Sep, 2024 @ 3:04pm 
I am not sure, but isn't this already in the base game?

The base game has also milli radians and they work absolutely fine. I do not understand why this mod is needed.
wintermute-ta  [author] 30 Aug, 2024 @ 10:44am 
Hi. I checked that the code I edited has not changed 100% in the new version, but the bundle with the new mod template should be rebuilt. But I couldn't do it right away (the game did not apply the patch - some errors) maybe I'll try to find a solution in the community. I'll try again in a few days. Sorry.
Mav87th 30 Aug, 2024 @ 1:43am 
Hi Wintermute-ta
Can you shed a light on when this mod could be updated ? Sorry if i come off as a bit demanding, but it was just a magnificent add on :D
Marc-Emmanuel 27 Aug, 2024 @ 1:44am 
Any news regarding update ?
DarkRaven 15 Jul, 2024 @ 5:19pm 
You don't. You can figure out the mast height if you know the distance or the distance if you know the mast height. That's why ID book is there.
siyuan 15 Jul, 2024 @ 6:50am 
How can I measure mast height only use milliradian when I don't know its distance or/and AOB and the type of object?
I only want to get object's mast height and I know nothing about the target.
wintermute-ta  [author] 25 Jun, 2024 @ 11:27am 
The mod does not work on the latest version (beta). I'll fix it later. Sorry
Rudi Mentär 25 Jun, 2024 @ 2:24am 
Mast height in meters * 1000 / visual height in milliradians = distance in meters.

Little bit confused... (using latest beta version of the game)

Got a enemy ship with a mast height of 29.6m and using the x1.5 zoom factor in attack periscope..
I know the ship is about 950m away from me (measured on the in game map).

Measured optical mast height:
----------------------------------------------
Vanilla game: 157 milliradians OH (measured @ x1.5 periscope zoom)
> 29.6m / 157 * 50 * 100 == 942m

HARDscope mod: 149 milliradians OH (measured @ x1.5 periscope zoom)
> 29.6m * 1000 / 149 == 199m ????

HARDscope mod + Realistic periscope magnification mod: 149 milliradians OH (measured @ x1.5 periscope zoom)
> 29.6m * 1000 / 149 == 199m ????



Why do I measure the optical height with "HARDscope mod" equal to "HARDscope mod + Realistic periscope magnification mod" - see no differances in game attack periscope

Where is my fault with calculating range?
posthum 18 Jun, 2024 @ 9:39am 
Nevermind it is very hit and miss.
posthum 17 Jun, 2024 @ 1:03pm 
Sigfan did you install the required HARDscope mod mentioned in the description?

Works for me under the latest patch and is more accurate than the stadimeter.
Sigfan86 13 Jun, 2024 @ 4:44am 
I do not believe that this is functional as of 2024 P11, I have tried measuring multiple ships and I am unable to get an accurate measurement that corresponds to in game distance
P4r4n01d 12 Apr, 2024 @ 1:18am 
Got it, thank you!
DarkRaven 11 Apr, 2024 @ 10:27pm 
Technically it's the same. The numbers on the side (50, 100, 150, etc) reference the milliradian count at those marks. By way of example, the third mark would be 30 milliradians, and half way between that mark and the next one would be 35 milliradians.
Centiradians are 10 milliradian, or the number of marks themselves. So, the 50 milliradian mark is 5 centiradian as it's the fifth mark from the center line. It's generally easier and quicker to divide by a single digit number than a two digit number.
In short, mast height * 1000 / milliradians is the same as mast height * 100 / centiradians.
P4r4n01d 11 Apr, 2024 @ 7:30am 
First of all, thank you for the great mod. I have a question about the radians. In the picture, you write „centiradians“ (height x100/radians x 4 = distance at 6 magnification). In the description, you write milliradians and give the formula: height x 1000 / radians. Now, which one is correct? Centiradians or milliradians? Or am I just too stupid to understand the difference between the description in the pictures and the moddescription?
DECAFBAD 30 Dec, 2023 @ 6:08pm 
Shelby 16 Dec, 2023 @ 4:42pm 
Why does this mod want storage access?
J.Mouse 13 Dec, 2023 @ 1:07pm 
Is there a way to work out visual length from this reticle?
panzer456 3 Nov, 2023 @ 8:31pm 
is this for distance or height. it sounds great
silly 30 Oct, 2023 @ 10:23am 
How do you make mods
Dufti 29 Oct, 2023 @ 12:43am 
Beeindruckend :steamhappy:
DarkRaven 20 Oct, 2023 @ 1:39am 
Finally my mod is obsolete! I didn't think a FOV fix would ever come from the devs or modders. Awesome job!
Tarnowinski 16 Oct, 2023 @ 3:15pm 
Much better option than silhouettes. Never could get that to work. Math is far more definitive. But some people are.. well incapable of doing basic bath.
DECAFBAD 16 Oct, 2023 @ 11:17am 
The Germans had this weird thing where the height of their optical scales were marked every 10/16° instead of centiradians. That's off by 9%. Doesn't really matter, if the scope is in centiradians it's just more convenient.
If it is, then it should be marked as such. The /16° label ought to be removed from radian based scales.
DECAFBAD 16 Oct, 2023 @ 10:48am 
The factor of magnification is relative to what you see.

The actual magnification factor for the UBOAT player is this:
the game runs full screen on a 27" display at arms length. The width of the screen is 57°
The UBOAT periscope view covers 33% of the screen, on the sides are the black outline of the simulated vignette. The Apparent Field of View (AFOV), from the player's perspective, is 57/3 = 19°

The Field of View (FOV) rendered by the game is 38° thanks to this mod.

The magnification factor with this mod enabled: 0.5x

To get the correct magnification of 1.5x, the black outline of the periscope has to be removed, and the rendering FOV adjusted to have 38° full screen.
DECAFBAD 16 Oct, 2023 @ 10:48am 
Bunch of bullcrap here from people who probably failed elementary maths.

1.5x magnification means the size of the object is 50% greater when viewed though the periscope. Not smaller.

From the bridge, you hold out your hand and raise three fingers. If your fingers cover the ship ahead, then her width is 5°

Go down to the periscope and look through the optics: the ship now appears to be 50% bigger to you. Adjust the view so it lines up on the lower scale: measuring the angle will tell you that the ship is 5° wide.

The scales present you with real values, the reality that is outside.
wintermute-ta  [author] 15 Oct, 2023 @ 5:33pm 
@pclaurent Yes, you are right. So far I have been working with the reticle that has already been implemented, I will try to fix it in the future. Thank you.
diego6339 15 Oct, 2023 @ 2:11pm 
In real life, the optics of those periscopes made things look smaller than they were. They chose 1.5 because at that zoom level a ship looked the same size as it looked to the naked eye from the bridge. They calibrated the reticle so that 1.5 was the same as 1 for calculating distance. That is why you don't see them multiply by 1.5 in manuals.

Also, the view angle on those periscopes was not proportional. At 1.5 zoom the angle was 38 degrees and at 6 it was 9 degrees. Because of that at 6 zoom the reticle wasn't calibrated and that's why they recommended calculating distance at 1.5 zoom.

Finally, using milliradians makes calculations easier but Germans did not use milliradians. One degree is about 17.45 milliradians but in Uboat reticles a degree was divided by 16.

I made a couple of GUIs for Silent Hunter III and I calibrated them so that at 1.5 a ship looked the same size from the periscope than from the bridge.
pclaurent 15 Oct, 2023 @ 8:38am 
@wintermute-ta: This whole discussion is about the significance of the scale that appears in the eyepiece of the periscope. If you prefer to keep the scale as it is, I have no problem with that, as its advantage is that it simplifies the calculation at low magnification. It's just that in this case they're not milliradians (and, yes, I'm already anticipating certain remarks: who cares?).
pclaurent 15 Oct, 2023 @ 8:21am 
@wintermute-ta: I trust you regarding the optical magnification. So if it is 1.5x, the milliradians scale (wich is appparent visual angles) should be adjusted so that we get distance(km) = mast height(m) / angle (milliradians) x 1.5. It's just pure geometry.
If the "magnification" was 1 (so... no magnification), we would'nt need the 1.5 factor, of course.
But as you magnify the image, you naturally have to multiply the visual angle observed through the periscope by a factor equal to the magnification to get the distance. So we should always have: d = h / angle x magnification (for small angles, of course, as I mentioned before).

When using the milliradians scale of the basic vanilla periscope, the calculation gives exact distances with factors of 1.8, 5 and 18 and as a result these values should be considered as the actual magnifications in the vanilla version. In your mod, the space between milliradians marks should logically be revised as to match geometry. Does it make sense?
wintermute-ta  [author] 14 Oct, 2023 @ 5:48pm 
@pclaurent We can check the magnification parameters in a very primitive way. We use the fact that magnification proportionally increases the linear size of objects (Yeap... Captain Obvious). We take two screenshots, one from the periscope. The other one is from the free camera mode (N button), set the camera exactly on the place of the periscope head. Compare the sizes. Make sure that the linear size of the object increased 1.5 times. (in 1.5x mode).
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3051113370&fileuploadsuccess=1
DECAFBAD 14 Oct, 2023 @ 3:00pm 
The relationship between the angle and the distance is
Distance = Height / tan(Angle)

If you don't use degrees, instead opt for radians you can simplify because
tan(Angle) = Angle
for angles less than 0.1 radians.

So Distance = Height / Angle
DECAFBAD 14 Oct, 2023 @ 2:53pm 
@pclaurent
You are missing the point, that the numbers that are marked on the reticle are angles, not random fancy numbers you have to multiply with factors you pull out of a basket. Your equations where you use 1.5 therefore make no sense.
pclaurent 14 Oct, 2023 @ 10:01am 
@dead: I can surely understand that 6 = 1.5 x 4... My question was not about the multiplier between low and high magnitification, but about the formula used to convert the angle to a distance, whatever magnification you are using. And, as you can see in the description:
"Divide the height of the ship by the centiradians, and multiply by 4 if the periscope is zoomed in."

Let's *only* consider the low magnification (supposed to be 1.5). If the divisions were really in milliradians, we should use the formula:
distance (meters) = mast height / angle (radians) x 1.5
And the point is precisely about "x 1.5"...
pclaurent 14 Oct, 2023 @ 10:01am 
For example, if a ship with a 26 meters high mast is viewed at a 50 milliradians angle, the distance should be 780 meters (26 / 0.05 x 1.5), and not 520 meters (26 / 0.05).
For purists, the exact formula is: distance = height / tan(angle) x 1.5. But for small angles (say < 10 degrees), there's no need to resort to trigonometry, and the basic formula works just fine.

However, as I said earlier, the distance calculation proposed by wintermute-ta works well without the x 1.5 coefficient. So: either the graduations are not exactly milliradians, or the visual magnifications are not 1.5 and 6, but rather 1 and 4.

I hope I've made myself clear (English is not my native language), and I apologize for the long explanation. I know I sound like an obsessive geek. But if this question doesn't keep me awake at night, I just wish I'd had the author's explanation, just to satisfy my curiosity.

And thanks again anyway...
-dead- 14 Oct, 2023 @ 2:03am 
@pclaurent
It's the difference in size from 1.5x to 6x: 6 = 1.5 x 4

Whatever you see in "non zoomed" 1.5x view will look 4 times bigger in the zoomed 6x view.

If the base "non zoomed" view was 1x then it'd look 6 times bigger, but as it's 1.5x, it's only 4 times bigger.
Quoellfrisch 12 Oct, 2023 @ 1:43am 
I created a simple App from the spreadsheet I use for calculations.
You will need to download it.

https://oaa.app.link/launch-app-42d19825-b104-4646-90f5-5c41353f47e8

Fill in the mast hight and ship length on the starting page. Those parameters will be the base for all calculations.

By refreshing (wiping down normally), it does delete all values and send you back to start.
Use the buttons to navigate, except at the end of a fight
Walter White 11 Oct, 2023 @ 5:24pm 
pov: your a nerd
pclaurent 11 Oct, 2023 @ 2:12pm 
@DECAFBAD: that was not my question, but thanks anyway for the answer :-)
DECAFBAD 10 Oct, 2023 @ 3:17pm 
@pclaurent
The periscope reticule has angle scales that are accurate when viewed at 1.5x magnification. When switched to 6x magnification, the reticle remains the same, however the angles narrowed. You must either divide by 4 to get to get the correct angle, or multiply by 4 to get the correct distance.

Meaning of 1.5x / 6x magnification: looking through the periscope ocular, the picture you see is 54° wide to you (your vision extends to about 170°). The width of what you see, on the other hand, is 36° wide. 54/36 = 1.5, this is the magnification of the optical system. Switching to 6x the picture is still 54° wide, it covers the same area of your vision, but what you see is in a 9° cone. 54/9 = 6

Coincidentally, the angle of a 27" monitor at arms length is also about 54°. So the next logical step to get the perfect realistic optics for UBOAT is to have a periscope sight / reticle picture that is full screen and doesn't cut off at the left and right sides of the monitor.
pclaurent 10 Oct, 2023 @ 2:27pm 
Simple question: why multiplying by 1 or 4 to get distance? If magnifications are 1.5 and 6 respectively, I suppose we should use 1.5 and 6 as multipliers... Does it mean that graduations are not really milliradians, or that magnification values are in fact 1 and 4? Just to know... (I confirm that with your mod in its present state, x1 and x4 give correct distances).
wintermute-ta  [author] 10 Oct, 2023 @ 12:26pm 
@DECAFBAD Yes, all of this can be realized with mods. I have high hopes for the release version of the game. Then we will polish the game with mods. I think, even try to instantiate the functioning 3D RAOBF ( https://sketchfab.com/3d-models/raobf-52b89b0903704c77900b400a7a85bd9c ) in a view above the optics.
DECAFBAD 10 Oct, 2023 @ 9:16am 
Nice! Been waiting for this for ever!

Do you think it's possible to make it so the UZO:

- Zoomed out you have a view above the optics (it had an iron sight on top)
- Zoomed in your FOV is less than the periscopes' (7.42° UZO vs 9° periscope)

Even without that, this change is a massive improvement to UBOAT. Thanks!
Quoellfrisch 10 Oct, 2023 @ 5:44am 
thanks! figured it out myself in the meantime. I created an excel worksheet to type in the measured values and get distance, AOB and such. now that I know those are mrad's, I corrected the calculations
Thanks again
pclaurent 9 Oct, 2023 @ 9:46am 
Mod: *milliradians*, not centiradians... Graduation 100 is 0.1 radian, or 5.7 degrees. Which leads to the fact that in UBoat, the sun has 3 times its real diameter ! (40 milliradians or 1.5° instead of 0.5)... I hope that 1.0 release will fix that.
Anyway, tx a lot for this mod that adds a lot more realism to the sim.
wintermute-ta  [author] 9 Oct, 2023 @ 7:34am 
Yes, of course, the top bar is just bearing...
pclaurent 9 Oct, 2023 @ 6:23am 
Only vertical scale is in centiradians. Horizontal scale is relative bearing in degrees.
Quoellfrisch 9 Oct, 2023 @ 12:41am 
Great Mod! distance with vertical centiradians works perfect.
but the horizontal centiradians are wrong, can that be or what am I doing wrong?