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 01-09-11, 06:46 AM   #16
Obelix
Seasoned Skipper
 
Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
Default

Quote:
Originally Posted by Antar View Post
"Almost correct" doesn't mean "correct" - as I wrote in the past, I played without mods and moon was not correctly rotated to sun - it means that the moon did not unfold illuminated side to the sun.

Strange. In the screenshot (post #4, mods environmental disabled) horn crescent moon turned to the right, as it should be. Here are just a tilt of sickle should be the other way. The screenshots post #1 (Environmental enabled) horns are turned the other way - so should not be. Although the slope is generally correct. But while the sun should be on the other side of the moon.
To eliminate the misunderstanding between us, I would like to see screenshots explaining your words.
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
Obelix is offline   Reply With Quote
Old 01-09-11, 08:34 AM   #17
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by Magnum View Post
Its not possible to fix this problem, W_Clear tried many times but failed.
I think that it is possible, but it should be completely reworked - what we need:

1. Sun/moon angle position - done (base: Otto's Chalkboard mod)
2. Sun height - done (current latitude)
3. Moon height - don't know how to calculate yet
4. Math formula to calculate current moon phase and current angle of moon (always illuminated side to sun) - can be prepared by me
5. Put current moon texture to SH5 sky based at: angle position, height, phase, texture angle - don't know how to do it

The problem is that Otto's Chalkboard mod and datas based on real scripts but not on real sun/moon positions in game.
The perfect solution is:
- read current sun/moon position
- math phase and angle
- delete existing texture
- put new texture
...but TDW told me that is impossible to read current sun/moon position from game.

But here is other problem:
Now we have 16 sun phases. Each sun phase should be rotated to curent sun position (always illuminated side to sun)
Each sun phase with 10° accuracy = 360°/10 = 36x16 phases = 576 moon textures...

__________________

PL_Andrev is offline   Reply With Quote
Old 01-09-11, 09:16 AM   #18
Obelix
Seasoned Skipper
 
Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
Default

Quote:
Originally Posted by Antar View Post
I think that it is possible, but it should be completely reworked - what we need:
Sounds promising. But when I see this implementation complexity. I think such precision is needed only when the sun and moon are in the sky simultaneously. At dawn and dusk accuracy can be increased. At night can also prevent an even greater error.
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
Obelix is offline   Reply With Quote
Old 01-09-11, 09:56 AM   #19
Cerberus62
A-ganger
 
Join Date: May 2010
Location: 52° 31' N, 13° 24' E
Posts: 76
Downloads: 75
Uploads: 0
Default

I'm sure that whatever we try, it wouldn't fix this error. That's because of the simple method SH5 calculates the position and displays the image of the Moon.

First: Orbital planes and trajectories aren't calculated precisely in this game. Second: It's not possible to simulate the different aspects of a sunlit body with 16 images. Even if you would rotate the images it would look wrong, because you would incline the axis of the Moon together with the aspect of the surface.

I reworked the Moon.dds and Moon_halo.dds texture files and replaced each single phase by it's counterpart. After this I often found the correct side of the Moon facing the Sun, but not always. So this error only occured less frequently. But the rework introduced another error. Now the lunar phases develop in the wrong direction: Starting with New moon you'll see the waning crescent followed by the last quarter and so on during the synodic cycle.

To get rid of this problem we would need a three-dimensional textured spherical body, illuminated by an almost point-shaped source of light. I think that's far beyond the possibilities of the SH5 game engine.

For those who are interested in astronomy and still don't know the wonderful freeware program Celestia: http://www.shatters.net/celestia/

Last edited by Cerberus62; 01-09-11 at 10:14 AM.
Cerberus62 is offline   Reply With Quote
Old 01-09-11, 11:36 AM   #20
homsikpanda
Torpedoman
 
Join Date: Dec 2010
Posts: 112
Downloads: 4
Uploads: 0
Default

poor moon D: it's not your fault youcan't line up with the sun correctly!, i can understand how everything is 2 dimenionsal and it's hard to give the appearance of 3d -gives moon a hug- atleast you try!
homsikpanda is offline   Reply With Quote
Old 01-09-11, 12:03 PM   #21
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by Cerberus62 View Post
Second: It's not possible to simulate the different aspects of a sunlit body with 16 images. Even if you would rotate the images it would look wrong, because you would incline the axis of the Moon together with the aspect of the surface.
That's right, I'm not sure that game generates different height of sun at noon for different seasons with white night / black day at polar regions...
But it is not important. It is not important where moon exactly was at 06:43 15.sep.1942. But if we'll have positions and height of sun and moon we can calculate correct phase and correct position of crescent of the moon to avoid stupid situations like it:

No mods, stock game only, 5.30 AM


- difference between bearings builds moon phase,
- difference between heights builds moon texture's rotation angle
__________________

PL_Andrev is offline   Reply With Quote
Old 01-12-11, 03:12 AM   #22
iidesu
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

well, frankly, I've never delved into that part.
  Reply With Quote
Old 01-12-11, 02:43 PM   #23
Meldric
Officer
 
Join Date: May 2010
Location: Germany
Posts: 237
Downloads: 167
Uploads: 0
Default

I have seen the problem with the moon being lit from the wrong side today (after I have red this thread). I have a number of mods, but I am not using Env-mod:

Generic Mod Enabler - v2.6.0.157
[C:\Spiele\Silent Hunter 5\MODS]

000_00_Antilag
001_00_RemoveLogoIntroTheDarkWraith
001_01_CommandKeys v1.02
002_01_Detailed Caustics v1.0
002_01_ShadowImprovement LR
002_03_ConusGraphicMod v1.1
002_04_OldStyleExplosions V1.1
002_05_SH3_to_SH5_sub_physics
002_06_NoDamnBubblesNoDamnHalo
002_07_Dooms Decks for VIIABC41 1.4
002_08_AilRain 1.0
002_99_CustomEmblem - Wolf
003_00_MightyFineCrewMod v1.2.1 - Alt w beards
003_01_MoraleMod
003_03_LiteCampaign v1.21
003_05_CriticalhitsTorpedos v1.1
004_00_CapthelmsAudioMod
004_01_DBSM_Speech_1_0_5
004_02_DBSM_Music_1_0_5
004_03_GrossdeutscherRundfunk
004_04_MightyFineLessAnnoyingFootsteps v1.0
004_05_Speech fixes and additions (german version) V1.0
005_00_FX_Update_0_0_11_ByTheDarkWraith
005_01_FX_Update_0_0_11_BARF_1_3_Full_Fix
006_00_NewUIs_TDC_6_3_4_ByTheDarkWraith
006_01_NewUIs_TDC_6_3_4_Das_Boot_Crew_Mod_by_Illyu strator
006_02_NewUIs_TDC_6_3_4_emtguf_rework_scopes_5_8_r atio
006_03_NewUIs_TDC_6_3_4_ERM_Reaper7_NightVision
006_03_NewUIs_TDC_6_3_4_ERM_Reaper7_NightVision_Bl ack_Skin
006_05_NewUIs_TDC_6_3_4_No_Aircraft_Spotting_At_De pth
006_20_IRAI_0_0_29_ByTheDarkWraith
006_21_IRAI_0_0_29_No_Aircraft_Spotting_At_Depth
006_50_Sub_Exhaust_1_0_4_byTheDarkWraith
006_51_SubFlags_0_0_5_byTheDarkWraith
007_00_IO_StrategicMap_2_2_for_TDW_6_0_0
007_01_IO_MapCourseLine_normal pencil_mod
Meldric is offline   Reply With Quote
Old 02-05-11, 02:28 PM   #24
vickers03
Pooped from posting
 
Join Date: May 2007
Location: germany
Posts: 999
Downloads: 712
Uploads: 37


Default

Quote:
Originally Posted by Cerberus62
For those who are interested in astronomy and still don't know the wonderful freeware program Celestia: http://www.shatters.net/celestia/
thanks
vickers03 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 02:49 PM.


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