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 07-21-13, 07:56 AM   #2491
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
A few remarks RE. your sextant/stadimeter implementation.

- It has been noted several times that SH5's celestial sphere is not so accurate to allow accurate position measurements. This is not to say that you should give up your idea, but I think this fact had to be mentioned in order to avoid wrong interpretations of the test results
I don't think that is a correct statement. It was noted in SH3 that it's celestial sphere is very accurate. Since this game is based on the same code then it's sphere should be just as accurate.

See here: http://www.subsim.com/radioroom/show...1&postcount=57

EDIT: just looking over that post has turned the light bulb on. I think the angle value is actually how many vertical graduations on the scope display...

Last edited by TheDarkWraith; 07-21-13 at 08:07 AM.
TheDarkWraith is offline   Reply With Quote
Old 07-21-13, 08:25 AM   #2492
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Just verified that the angle value IS the number of vertical graduation marks on the scopes. Now I have something to work with I know where in the code it's creating this number so time to do a little investigating...
TheDarkWraith is offline   Reply With Quote
Old 07-21-13, 09:36 AM   #2493
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I don't think that is a correct statement.
Of course I hope to be wrong
gap is offline   Reply With Quote
Old 07-21-13, 10:03 AM   #2494
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I do and I don't understand how the game it computing this angle val. Maybe someone can shed some light here. What is the degree spacing between the vertical graduation marks on the obs scope? And the most important question, how do you know this I need these key bits of information to track down where the game is calculating this so I can grab the calculated number and multiply it by the angle val to get the true angle.
TheDarkWraith is offline   Reply With Quote
Old 07-21-13, 11:29 AM   #2495
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I do and I don't understand how the game it computing this angle val. Maybe someone can shed some light here. What is the degree spacing between the vertical graduation marks on the obs scope? And the most important question, how do you know this I need these key bits of information to track down where the game is calculating this so I can grab the calculated number and multiply it by the angle val to get the true angle.
I don't know, but it might be related with the "angular angle" setting of the obs scope camera.

This number may vary from a scope mod to another. This is why I suggested you to set a new "virtual" scope for sextant usage...
gap is offline   Reply With Quote
Old 07-21-13, 01:42 PM   #2496
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

now i will test ....
i have this Star Charts from my telescope and will see if the angel it's good or nope

i will try to follow this tutorial to calculate my position http://onboardintelligence.com/Celes...v/Celnav1.aspx


Last edited by Sjizzle; 07-21-13 at 01:55 PM.
Sjizzle is offline   Reply With Quote
Old 07-21-13, 02:00 PM   #2497
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

The angle val is the number of vertical graduations on the scope. I'm trying to figure out what each vertical separation mark is in degrees currently.

I see the ticker tape for the vertical graduations has 40 marks on it (from periscope dds file). I don't understand what the AngularAngle means for the camera when viewing in Goblin. It has something to do with FOV that's for sure but what? If I can figure out how all the AngularAngle and ticker tape goes together then I can code something to return the true angle. I can read all the camera parameters in memory so that's no issue.
TheDarkWraith is offline   Reply With Quote
Old 07-21-13, 02:08 PM   #2498
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

i can't finde that sextan option in your latest TDW ui test version
Sjizzle is offline   Reply With Quote
Old 07-21-13, 02:24 PM   #2499
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sjizzle View Post
i can't finde that sextan option in your latest TDW ui test version
Click Navigator to bring up his order bar. Click the sextant icon.
TheDarkWraith is offline   Reply With Quote
Old 07-21-13, 02:31 PM   #2500
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

@Sjizzle - see here in regards to sextant:
http://www.subsim.com/radioroom/show...1&postcount=61
and
http://www.subsim.com/radioroom/show...9&postcount=63

If you can take a reading and tell me what the angle val was and what the real value should be I could write some calibration code
TheDarkWraith is offline   Reply With Quote
Old 07-21-13, 02:32 PM   #2501
Beltza
Mate
 
Join Date: Feb 2003
Location: España
Posts: 56
Downloads: 128
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
The game has unlimited potential. It just needs a little TLC and time I'm having a blast turning it into what it should've been on release day.
Bravo, TDW. Your words and your work is our hope. All the 24Flotilla thanks you.
__________________
24th Flotilla Commander
Commander of the U 110
www.24flotilla.com
Beltza is offline   Reply With Quote
Old 07-21-13, 03:13 PM   #2502
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

idk if it's help but it's almost imposible to calculate the angel with that sextan cos u can't look enough up and u can calculate the horizontal angel only the vertical ... ( if the stars or moon are not to high if they are too high u can't calculate the angel cos u can't look up too high )


Moon Shot Example


Lets say this is the data:
DR position Lat = 44.025° N, Lon = -67.850° W
Eye height = 2 meters Greenwich date 7/15/2001
Index correction IC = +3.4’
Time of observation UTC = 14h 20m 21s
Sextant measured altitude of the moon Hs = 44° 22.1’ Upper Limb (UL)
Altitude corrections from moon correction tables, in two parts:
CorrDIP = -2.5’
CorrALT = +50.9’ + 3.2’ –30.0’ (the –30’ is for using the UL) = 24.1’
True altitude Ho = 44° 22.1’ + 3.4’ -2.5’ +24.1’ = 44° 47.1’ = 44.7850°
From the almanac tabular data, at the 14th hour July 15 2001:
GHA table = 100° 23.7’ v = +12.2’
DEC table = +12° 9.4’ N d = +11.2’ HP = 56.8’
Increment of GHA for the 20 minutes and 21 seconds CorrGHA = 4° 51.3’
Additional increment due to variation v Corrv = 4.2’
GHA = 100° 23.7’ + 4° 51.3’ + 4.2’ = 105° 19.2’ = 105.3200°
Increment of DEC for 20 minutes due to rate d is Corrd = +3.8’
DEC = +12° 9.4’ + 3.8’ = 12° 13.2’ = 12.2200°
Calculations:
Local Hour angle LHA = GHA + Lon = 105.32° + - 67.850° = 37.470°
Calculated Altitude
Hc = arcSin[ Sin(12.22°) x Sin(44.025°) + Cos(44.025°) x Cos(12.22°) x Cos( 37.470°) ]
Hc = 44.817° = 44° 49.0’
Intercept Offset distance Doffset = 60 x (44.368° –44.817°) = -2.0 n mile
Offset the assumed LOP away from the moon’s azimuth.
Calculated Azimuth direction of moon
Zo = arcCos[{Sin(12.22 °) – Sin(44.025°) x Sin(44.817°)}/{Cos(44.025°) x Cos(44.817°)}]
Zo = 123°, and since 0 < LHA <180 (post-meridian), Zn = 360 - Zo = 237°


Star Shot Example


You took a shot of Deneb in the constellation of Cygnus, morning twilight:
DR position Lat = 44.025° N, Lon = -67.850° W
Eye height = 2 meters Greenwich date 7/15/2001
Index correction IC = +3.4’
Time of observation UTC = 8h 31m 24s
Sextant measured altitude of Deneb, Hs = 59° 47.8’
Altitude corrections from the abridged corrections table:
CorrDIP = -2.5’
CorrALT = -0.5’
True altitude Ho = 59° 47.8’ +3.4’ –2.5’ – 0.5’ = 59° 48.2’ = 59.8033°
From the almanac tabular data, at the 8th hour July 15 2001:
GHAAries table = 53° 14.4’ SHADENEB = 49° 37.4’
DECDENEB = +45° 17.1’ N

No v or d corrections for stars
Increment of GHA for the 31 minutes and 24 seconds CorrGHA = 7° 52.3’
GHA = 53° 14.4’ + 7° 52.3’ + 49° 37.4’ = 110° 44.1’ = 110.735°
DEC = DECDENEB = +45° 17.1’ N = +45.2850°
Calculations:
Local Hour angle LHA = GHA + Lon = 110.735° + – 67.850° = 42.885°
Calculated Altitude
Hc = arcSin[ Sin(45.285°) x Sin(44.025°) + Cos(44.025°) x Cos(45.285°) x Cos( 42.885°) ]
Hc = 59.830° = 59° 49.8’
Intercept Offset distance Doffset = 60 x (59.8033° –59.830°) = –1.6 n mile
Offset the assumed LOP away from the star’s azimuth.
Calculated Azimuth direction of star
Zo = arcCos[{Sin(45.2850°) – Sin(44.025°) x Sin(59.83°)}/{Cos(44.025°) x Cos(59.83°)}]
Zo = 72°, and since 0 < LHA <180 (post-meridian), Zn = 360 - Zo = 288°


Last edited by Sjizzle; 07-21-13 at 03:25 PM.
Sjizzle is offline   Reply With Quote
Old 07-21-13, 03:15 PM   #2503
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
The angle val is the number of vertical graduations on the scope. I'm trying to figure out what each vertical separation mark is in degrees currently.

I see the ticker tape for the vertical graduations has 40 marks on it (from periscope dds file). I don't understand what the AngularAngle means for the camera when viewing in Goblin. It has something to do with FOV that's for sure but what? If I can figure out how all the AngularAngle and ticker tape goes together then I can code something to return the true angle. I can read all the camera parameters in memory so that's no issue.
Let's assume that the AngularAngle setting is the horizontal FOV and that it is relative to a resolution of 1024 x 768 pixels. In order to know the angular distance between each vertical graduation mark, you should measure the distance in pixels between two marks, multiply it by AngularAngle, and divide the result by 1024
gap is offline   Reply With Quote
Old 07-21-13, 03:25 PM   #2504
rolandslaw
Bosun
 
Join Date: Jun 2013
Posts: 66
Downloads: 66
Uploads: 0
Default Problem of no human audio and possible workaround

Quote:
Originally Posted by TheDarkWraith View Post
I have to have something that I can test on my own computer using the debugger or I'll never be able to help you. You have to give me specifics and some way to reproduce what you're experiencing.

TDW: Thank you for reply. I think i will try first trying another mission with same mod list and if that does not work... try your latest version of generic patcher... I have all the original release files saved :<)

I will report back my results... I will not do this evening the 21st. I have to start a probate file and finish another... so I am looking at Tuesday:<)

Thank you

Rol
rolandslaw is offline   Reply With Quote
Old 07-21-13, 03:32 PM   #2505
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Let's assume that the AngularAngle setting is the horizontal FOV and that it is relative to a resolution of 1024 x 768 pixels. In order to know the angular distance between each vertical graduation mark, you should measure the distance in pixels between two marks, multiply it by AngularAngle, and divide the result by 1024
Maybe. I really don't know.

I had to clear my head so I took one of the motorcycles out for a little ride. I was riding next to the river enjoying the view and beautiful day when it hit me...I'm making this harder than it needs to be. All I need to do is find the camera's view matrix and extract the pitch from it. Now to find the camera's view matrix...
TheDarkWraith is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 12:06 AM.


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