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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-14-07, 11:00 AM   #1
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default Where are the files for day/night/twilight?

I'm looking for the files that control how much light is rendered depending on the hour of the day. In many games those are graphic files with a colour gradient going from white (Day) through orange (Dusk/Dawn) to night (Black or dark blue), are they in the "EnvAtlantic.dat" and such, in the "Env" folder? Or is there any other file that controls how much light is rendered in the 3D world depending on the hour of the day?

I'm interested in tweaking the dusk/dawn ambient light to reduce it heavily, for the purpose of reducing the vampire vision bug (If I can't have the crew spot well during twilight, I might alternatively make twilight be as dark as night so their spotting range is correct for the visibility :hmm: ).

Thanks for any help
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 10-14-07, 03:23 PM   #2
von Zelda
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

There was a mod posted on 3-14-07 by Rubini called GWX 8km more lighter environment. He made changes to 2 files regarding the Atlantic in the env folder.

I did a search for envcolors_atl and it popped up.
  Reply With Quote
Old 10-14-07, 04:37 PM   #3
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
I'm not sure if this is what you want, but the colour of the sky is held in a tga stored in the Env\SkyColors_XXX.dat files. Use DatTexExtract.exe to get the image out (and put it back in again after altering it).

The crews vision is, I believe, unaffected by graphical settings such as light levels - but I'm not certain about that
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 10-14-07, 06:48 PM   #4
Kpt. Lehmann
GWX Project Director
 
Kpt. Lehmann's Avatar
 
Join Date: Jul 2005
Location: The Republic of Texas
Posts: 6,994
Downloads: 124
Uploads: 0


Default

Quote:
Originally Posted by von Zelda
There was a mod posted on 3-14-07 by Rubini called GWX 8km more lighter environment. He made changes to 2 files regarding the Atlantic in the env folder.

I did a search for envcolors_atl and it popped up.
As I recall (that was a very long time ago) Rubini was trying to make the nights not be so black from the player standpoint.

for onelifecrisis: The player U-boat AI crew is very much affected by light levels. This is easiest to see with aircraft spotting distances when set at different times of day using single missions where you can specify said times of day.

It has been about a year since I finished tweaking the sensors for GWX... and a fair bit of logged R&D was lost when I had to replace my PC... However, IIRC the higher the setting of "light factor" the harder it is for your crew to spot objects.

(Sensors.Cfg)
__________________

www.thegreywolves.com
All you need is good men. - Heinrich Lehmann-Willenbrock
Kpt. Lehmann is offline   Reply With Quote
Old 10-14-07, 08:55 PM   #5
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 34,715
Downloads: 171
Uploads: 0
Default

I know what your after Hitman, and although changing the Env files do alter the environment light a little it is only slight and changes the overall view .. just a little!
What you want to know ( I think) is what I would like to know also, this issue came up quite a while back but the conclusion was that it is hard coded.
Back then I wanted to change the night going to the high end of twilight, no further, this would give a much brighter night than any changes made to the Env files, If I had to make a guess the answer could lie in the scene.dat file, although I've worked on sunset - sunrise - colors - reflection - sea height - viewing distance, I have not tried the brightness of the various phases, may not be possable, but then again it might.
__________________

Sub captains go down with their ship!
Reece is offline   Reply With Quote
Old 10-16-07, 10:03 AM   #6
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Hi Reece,

actually what I wanted is to eliminate the dawn/dusk moments by reducing it to only some seconds/minutes.

Currently the code for SH3 manages the response of visual sensor to ambient light as follows:

Day time: Visual sensor day mode
Night time: Visual sensor night mode
Dusk/Dawn: Visual sensor also night mode

The problem: When you raise a lot the configuration to ensure correct night spotting distances, the crew is blind during dusk/dawn.

Now, since we can't change the way the game hadnles the visual sensor, I was hoping we could change the way the game handles the ambient light, i.e. the game couldn't care less about how much light is really rendered on screen (What you actually see) but uses apparently the time of the day as a base to switch to night sensor (Rigging for red in the game). And it does it during a time when there still is light for the player, therefore the undesirable effect of you seeing ships clearly the crew doesn't detect

To change that I had thought of making that intermediate dusk/dawn situation actually be FULL night. That would make the sensors performance match properly the current environmental conditions the player is seeing. :hmm:
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 10-16-07, 02:14 PM   #7
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

In which file did you find this Hitman

Quote:
Day time: Visual sensor day mode
Night time: Visual sensor night mode
Dusk/Dawn: Visual sensor also night mode
Is it not possible to get the dusk\dawn JUST to use Visual sensor day mode :hmm:
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly 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:16 AM.


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.