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 04-05-14, 10:01 AM   #3106
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Gammel View Post
so add 80.000 would be 00409c47
Yes
TheDarkWraith is offline   Reply With Quote
Old 04-05-14, 10:05 AM   #3107
Gammel
Commodore
 
Join Date: Apr 2005
Posts: 641
Downloads: 276
Uploads: 0
Default

cool, lets have children...

haha your're even in range sometimes. I saw in your posts you went to Osterode/Harz some time? thats not very far. O. is not the best place in DE imho.
Harz mountains is great...

The Converter you recomment is clean afaik, checked with virustotal. Very handy tool
http://www.mediafire.com/download/jg...oatConvert.zip
You never know
Gammel is offline   Reply With Quote
Old 04-05-14, 10:13 AM   #3108
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Gammel View Post
haha your're even in range sometimes i saw in your posts you went to Osterode/Harz some time? thats not very far. O. is not the best place in DE imho.
Yes I usually make it out to Osterode once or twice a year. Walking the streets of Osterode is like stepping back into the 18th century. It's so peaceful and relaxing compared to the US. Are you familiar with the big Piller plant/factory in Osterode or Bilshausen?
TheDarkWraith is offline   Reply With Quote
Old 04-05-14, 10:27 AM   #3109
Gammel
Commodore
 
Join Date: Apr 2005
Posts: 641
Downloads: 276
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Yes I usually make it out to Osterode once or twice a year. Walking the streets of Osterode is like stepping back into the 18th century. It's so peaceful and relaxing compared to the US. Are you familiar with the big Piller plant/factory in Osterode or Bilshausen?
A very good friend of mine did his job trainig as a toolmaker (that CNC stuff etc.) at Piller.
So yes i know it exists but not from a personal point of view.

No luck with the render patch btw activating mid campaign - CTD
Single mission works with no noticable loss of performace afaik
will have to wait when back in port for campaign testing. This will happen this evenig.
Gammel is offline   Reply With Quote
Old 04-05-14, 10:41 AM   #3110
Gammel
Commodore
 
Join Date: Apr 2005
Posts: 641
Downloads: 276
Uploads: 0
Default

to get fully OT

some of the last and very fierce WW2 battles on the western front were fought out
in that Area beginning with Osterode -> Herberg -> Bad Lauterberg -> Braunlage and finally Blankenburg were the "mighty" 12. Army and General Lucht surrendered to american forces.

American (and German) losses were high in that area in that last day of WW2 in April 1945.

Sad stories but also fascinating i pretend you're interested in that stuff as well.

I was born and grew up in Bad Lauterberg.

Maybe you could do some research for that events in those places when you come again some day.

"Festung" Harz 1945:
http://www.alpha64.de/1945.htm only german
Gammel is offline   Reply With Quote
Old 04-05-14, 04:30 PM   #3111
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Today the SH4 forums gave me a great idea for a new patch: have the flags blow in the wind's direction

I fired up OllyDebug and figured out where the object's matrix data is and where it's combined matrix data is (it's matrix data * parent's matrix data). After locating those two key bits of info I then had to figure out the kernel functions for reading angles from the matrix data and storing new angles to the matrix data. Luckily for me, the kernel just happened to have those two functions After a bit of playing around to figure out which value of the 3 angles returned was the yaw value (of the pitch, yaw, and roll returned) I was able to modify the yaw value returned for the flag. I modified the yaw value to have the flag yaw (rotate around it's Y axis) +45 degrees. I then called the kernel function to set the new angles in the matrix and it worked first try

What I'm trying to derive currently is how to figure out how much the wind influences the flag's yaw. For instance, if the unit's speed is 8 knots @ 90 degrees, the wind's speed is 5 knots @ 315 degrees, how much should the flag yaw
TheDarkWraith is offline   Reply With Quote
Old 04-05-14, 05:28 PM   #3112
Tonci87
Captain
 
Join Date: Jun 2012
Posts: 547
Downloads: 116
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Today the SH4 forums gave me a great idea for a new patch: have the flags blow in the wind's direction

I fired up OllyDebug and figured out where the object's matrix data is and where it's combined matrix data is (it's matrix data * parent's matrix data). After locating those two key bits of info I then had to figure out the kernel functions for reading angles from the matrix data and storing new angles to the matrix data. Luckily for me, the kernel just happened to have those two functions After a bit of playing around to figure out which value of the 3 angles returned was the yaw value (of the pitch, yaw, and roll returned) I was able to modify the yaw value returned for the flag. I modified the yaw value to have the flag yaw (rotate around it's Y axis) +45 degrees. I then called the kernel function to set the new angles in the matrix and it worked first try

What I'm trying to derive currently is how to figure out how much the wind influences the flag's yaw. For instance, if the unit's speed is 8 knots @ 90 degrees, the wind's speed is 5 knots @ 315 degrees, how much should the flag yaw
I have drawn something to illustrate how it works IRL. [/URL] Using tangens you should be able to get the correct angle.
Tonci87 is offline   Reply With Quote
Old 04-05-14, 06:29 PM   #3113
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Actually I think the law of cosines applies here:

ship's heading (90) - winds heading (from 315 or 45 degrees) = 45 degrees
square root of (8^2 + 5^2 + (2*8*5*COS(45))) = 12.065

12.065 is the length of the 3rd side of the triangle.

flag's angle in relation to ship = COS-1((8^2 + 12.065^2 - 5^2) / (2*8*12.065)) = 17.04 degrees

flag's angle = 17.04 + 90 = 107.04 degrees
TheDarkWraith is offline   Reply With Quote
Old 04-05-14, 09:34 PM   #3114
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

flags affected by wind patch coming along nicely
TheDarkWraith is offline   Reply With Quote
Old 04-06-14, 12:06 AM   #3115
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,816
Downloads: 405
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Yes I usually make it out to Osterode once or twice a year. Walking the streets of Osterode is like stepping back into the 18th century. It's so peaceful and relaxing compared to the US. Are you familiar with the big Piller plant/factory in Osterode or Bilshausen?
i live in germany and Osterode is a pretty nice place for a relaxing vacation but
if u wish to go back in time i recomand u a vacation in Sighisoara ( my home town )
sorry for offtopic



Dracula's ( Vlad the impaler ) birth place

http://upload.wikimedia.org/wikipedi...birthplace.jpg

Last edited by Sjizzle; 04-06-14 at 03:45 AM.
Sjizzle is offline   Reply With Quote
Old 04-06-14, 02:56 AM   #3116
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
flags affected by wind patch coming along nicely
A great idea for a patch, really looking forward to it!
Sartoris is offline   Reply With Quote
Old 04-06-14, 05:50 AM   #3117
Tonci87
Captain
 
Join Date: Jun 2012
Posts: 547
Downloads: 116
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Actually I think the law of cosines applies here:

ship's heading (90) - winds heading (from 315 or 45 degrees) = 45 degrees
square root of (8^2 + 5^2 + (2*8*5*COS(45))) = 12.065

12.065 is the length of the 3rd side of the triangle.

flag's angle in relation to ship = COS-1((8^2 + 12.065^2 - 5^2) / (2*8*12.065)) = 17.04 degrees

flag's angle = 17.04 + 90 = 107.04 degrees
Maybe I´m wrong (just got up) but why do you need the lenght of the 3rd side of the triangle? It is not needed unless you want to determine how high the flag should wave. I you know the lenghts of the opposite and adjacent sides then you can calculate the angle by using tangent. Right?
Tonci87 is offline   Reply With Quote
Old 04-06-14, 07:49 AM   #3118
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Tonci87 View Post
Maybe I´m wrong (just got up) but why do you need the lenght of the 3rd side of the triangle? It is not needed unless you want to determine how high the flag should wave. I you know the lenghts of the opposite and adjacent sides then you can calculate the angle by using tangent. Right?
I don't see how you can use TAN. There are no right triangles. Unless I'm forgetting some form of math the only way I can see to solve this problem is with law of cosines . If you can show me an eaiser/better/another way I'm all ears
TheDarkWraith is offline   Reply With Quote
Old 04-06-14, 07:51 AM   #3119
Tonci87
Captain
 
Join Date: Jun 2012
Posts: 547
Downloads: 116
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
I don't see how you can use TAN. There are no right triangles. Unless I'm forgetting some form of math the only way I can see to solve this problem is with law of cosines . If you can show me an eaiser/better/another way I'm all ears
Yeah, now that I´m more awake I can see why tangens won´t work.
Tonci87 is offline   Reply With Quote
Old 04-06-14, 07:59 AM   #3120
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Quote:
flags affected by wind patch coming along nicely
Wow!Every day another piece of the puzzle comes up!Great great work TDW and thank you very much for all your efforts to render the game more realistic and playable!Very well done!
Salute Herr Kaleun!
Viktor_Prien is offline   Reply With Quote
Reply


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 04:12 PM.


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.