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 08-23-07, 12:36 PM   #1
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Quote:
Originally Posted by onelifecrisis
Someone help please - I've found out that the extra channel is definitely an alpha channel. To get the early/mid/late evening sky colours right I need to merge this channel with the RGB channels and output a standard RGB image as a result... but I don't know how to do this!
You can't merge an alpha channel into a RGB image. Alpha channels are a transparency layer and only (in this instance) show when the conditions are right i.e when the day is in the process of changing into night. That is when the alpha comes into play.

The only thing you might be able to do is edit/change the alpha channel to something more to your liking.
__________________
danlisa is offline   Reply With Quote
Old 08-23-07, 12:43 PM   #2
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Perhaps I didn't explain myself very well.

I want to do something like this to every RGBA pixel:

Red:=Red*Alpha/255
Green:=Green*Alpha/255
Blue:=Blue*Alpha/255
Alpha:=255

Is that a better description?

This should save me from having tio manually edit the colours until they look right.
onelifecrisis is offline   Reply With Quote
Old 08-23-07, 01:42 PM   #3
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Nevermind - I did it the hard way.

Not sure why you think Alpha channel is used at sunrise/set - the alpha channel on the skies of all three oceans is pure white all morning/day/evening and only changes after the sun has vanished over the horizon (and is back to being white again before the sun appears on the horizon the next day). Whatever it affects, it affects it only at night.
onelifecrisis is offline   Reply With Quote
Old 08-23-07, 02:51 PM   #4
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

I finally found out what the transparency in the sky is for - it's so you can see the stars! :rotfl:

By playing with the sky colours I've managed to get the mod so that it is indistinguishable from normal GWX, except for this one thing - and I don't think it can be worked around

Well for me personally god's lightswitch is more annoying than no stars, so I'm happy, but methinks the majority of people will want their evenings starlit :hmm:

Last edited by onelifecrisis; 08-23-07 at 04:12 PM.
onelifecrisis is offline   Reply With Quote
Old 08-23-07, 04:03 PM   #5
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Well seeing as this is the culmination of weeks of trial and error, here are the test shots anyway. BTW all though they aren't in these screenies (had to leave the camera in the default position to be sure of getting the same shot twice) the sun and moon both work fine... only the stars are missing.

One side of each screen has the lightswitch fix installed, the other doesn't.




onelifecrisis is offline   Reply With Quote
Old 08-24-07, 06:01 AM   #6
JCWolf
Admiral
 
Join Date: Jan 2006
Location: Spain , Crossing Gibraltar!
Posts: 2,292
Downloads: 202
Uploads: 1
Default

Yep thats what I missed 2, the stars also, with the last
16km mod from Reece there are some strange graphic failier
on the ships shadows on the water, it looks like rect lines
drawn on the sea water were is suposed to be the shadow,
however it hapends from time to time and not regulary!

forgot to take the Screenes sorry but I will next time....
I do not have the slightest idea on how to correct this,
maybe some one can!... REECE
__________________


JCWolf Mediafire SHIII Page

User name : JCWolf
Password : stefre@jcm
JCWolf 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 08:45 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.