View Single Post
Old 01-07-11, 04:00 AM   #8
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

[QUOTE=CapnScurvy;1568288]
First the game's Camers.dat parameter of "AngularAngle=62.4814" is influenced by the parameter "Viewport=xxxx". Now, I'll be the first to admit I don't understand this relationship, so being able to give you a math lesson on how the 62.4814 (which in Silent 3ditor states is in degrees) relates to a True Field of View of 36 degrees in-game....

I DON'T KNOW!! But it does. And the FoV is 38 degrees when you use the 1280x1024 game resolution!! I don't know why or how I just know it does.

A group of stationary ships set at about equal distance from a stationary sub will do the trick. Try THIS download called "Optical Test Mission Pack".
done !

NOTE: These two mods were intended for use with the American side of play. So, let me know if your scope mods are only for the German side. If they are, I'll make you a German mission and put the Big Compass Bearing on the German periscope.
I'll need one for our IJN mod : I guess I might've to correct the IJN scope view, and it uses the german side, so yes please do make it for me !
Once you have the mods running on a stock game, go to the periscope and choose the low power magnification. Try to put the center line of the scope directly on a degree mark (does not matter what it is) and make sure one of the outer edges of the scope is lined up on a reference point of a ship background (again, it does not matter what reference point you choose, or whether you go left or right) but choose a reference point that you will find easily and precisely when you do the next step.
ok 005°
Move the scopes center line onto the point you picked out at the edge of the scope.
ok

Now read the compass bearing (and be exact; no almost, or just a bit off will do).
355°
The difference between compass degrees of where you started and what the reference point compass bearing reading is will be half the true field of view for the scope.
10° so FOV of 20° !

If you count 18 degrees difference between the center line bearing and the edge bearing you measured to, the True Field of View is 36 degrees wide. To see some images of doing this, check out the first couple of posts in this thread.

I could do math all day and couldn't get the "AngularAngle=62.4814" to end up being a true FoV of 36 degrees when the game is running!! BUT, That's what it is!!

So, find out what your specific French periscopes Field of View and Magnification in real life really is. Make a "Periscope_Mask" image to suit the French style (if the French uses the 32 degree FoV, simply measure the Alpha channel black image and divide the width of pixels by 32. This will give you the correct spacing of the Telemeter divisions to put onto the periscope_mask. Every image is different, for instance my periscope images I'm using for Optical Targeting Correction are larger than the stock periscope viewable size. The viewable image size is 768 pixels wide (least wise that's the size on a 1024x1024 canvas). Dividing 32 into 768 you get 24 pixels. So, there is 24 pixels between each Telemeter division on my scopes. This will give you the correct measurement for the FoV of the scope you make, you just need to re size the AngularAngle and Magnification of the Camera.dat file to have the view match the 32 degree width of the scope you made.

You may ask, How did you make the AngularAngle come out to the correct FoV size?

The old saying "If you don't succeed the first time try again" was the way I got it. You know Thomas Edison did hundreds of tries to find the right metal element to put into his light bulb before he found tungsten worked the best. Well, after changing the magnification parameter to what the American scope should be, I just kept fiddling with the AngularAngle until I came up with the correct FoV when I'd restart the game using my "Test 21" mission. No math, I'm just too stupid to know what to do (in this case)!!
but you did it !

regards

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote