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 05-14-11, 08:40 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Did a lot of testing today with the alpha channel of the _Oxx maps. I've concluded that the alpha channel is like the specular intensity factor. If I make that alpha channel black (0x00000000) I get no specular reflections from sunlight. If I make it white (0xFFFFFFFF) I get amazing specular reflections.

Still playing with the alpha channel of the _Txx maps.

These shaders are responsible for the rendering of the _Oxx map:
\data\Shaders\UnifiedRender\URTex2PLightSMPS controls rendering from long distances (>= LowLODDistance)
\data\Shaders\UnifiedRender\URTex2PLightSMNMPS controls rendering from close distances (< LowLODDistance)

If you look at the alpha channel of the SH4 _Oxx maps you'll notice that they have NOTHING to do with the RGB channels. Recommend either deleting that alpha channel or setting it to some shade of white.

Adding/Removing alpha channel from the _Txx maps appears to have no effect on final rendering.

Last edited by TheDarkWraith; 05-14-11 at 08:56 PM.
TheDarkWraith is offline   Reply With Quote
Old 05-14-11, 09:13 PM   #2
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
Did a lot of testing today with the alpha channel of the _Oxx maps. I've concluded that the alpha channel is like the specular intensity factor. If I make that alpha channel black (0x00000000) I get no specular reflections from sunlight. If I make it white (0xFFFFFFFF) I get amazing specular reflections.

Still playing with the alpha channel of the _Txx maps.

These shaders are responsible for the rendering of the _Oxx map:
\data\Shaders\UnifiedRender\URTex2PLightSMPS controls rendering from long distances (>= LowLODDistance)
\data\Shaders\UnifiedRender\URTex2PLightSMNMPS controls rendering from close distances (< LowLODDistance)

If you look at the alpha channel of the SH4 _Oxx maps you'll notice that they have NOTHING to do with the RGB channels. Recommend either deleting that alpha channel or setting it to some shade of white.

Adding/Removing alpha channel from the _Txx maps appears to have no effect on final rendering.
I am pretty sure you could just remove the alpha channel of SH5 shadow maps. They really make no difference.

Edit: Yup, just tested it, removing the alpha channel altogether looks just like if you set the image to full opacity.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 05-14-11, 09:18 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SteelViking View Post
I am pretty sure you could just remove the alpha channel of SH5 shadow maps. They really make no difference.

Edit: Yup, just tested it, removing the alpha channel altogether looks just like if you set the image to full opacity.
Just deleting the alpha channel though doesn't look correct when sun is low on horizon. The specular reflections are way too strong. I think a color of medium white (alpha of 0x7F) is a good balance.
TheDarkWraith is offline   Reply With Quote
Old 05-14-11, 09:29 PM   #4
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
Just deleting the alpha channel though doesn't look correct when sun is low on horizon. The specular reflections are way too strong. I think a color of medium white (alpha of 0x7F) is a good balance.
TDW, could you please send me the Oxx map for the NMFMPC after you have done this?
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 05-14-11, 09:37 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SteelViking View Post
TDW, could you please send me the Oxx map for the NMFMPC after you have done this?
I'm using a different ship now. The Akita. Do you have it? If not, I'll send it to you after this last test I'm doing.
TheDarkWraith is offline   Reply With Quote
Old 05-14-11, 09:41 PM   #6
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

I have the NKMCS_Akita.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 05-14-11, 09:49 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SteelViking View Post
I have the NKMCS_Akita.
Using Photoshop I adjusted the levels of the RGB channels of the _Oxx map. I set the output levels to 122. I set the alpha channel to 0xB4B4B4 and set the alpha channel of the _Txx map to 0x3A3A3A. Looks really good
TheDarkWraith is offline   Reply With Quote
Old 05-14-11, 10:00 PM   #8
naights
Sparky
 
Join Date: Mar 2008
Location: Spain
Posts: 154
Downloads: 384
Uploads: 7
Default

Quote:
Originally Posted by TheDarkWraith View Post
Did a lot of testing today with the alpha channel of the _Oxx maps. I've concluded that the alpha channel is like the specular intensity factor. If I make that alpha channel black (0x00000000) I get no specular reflections from sunlight. If I make it white (0xFFFFFFFF) I get amazing specular reflections.

Still playing with the alpha channel of the _Txx maps.

These shaders are responsible for the rendering of the _Oxx map:
\data\Shaders\UnifiedRender\URTex2PLightSMPS controls rendering from long distances (>= LowLODDistance)
\data\Shaders\UnifiedRender\URTex2PLightSMNMPS controls rendering from close distances (< LowLODDistance)

If you look at the alpha channel of the SH4 _Oxx maps you'll notice that they have NOTHING to do with the RGB channels. Recommend either deleting that alpha channel or setting it to some shade of white.

Adding/Removing alpha channel from the _Txx maps appears to have no effect on final rendering.
Hi:

Whats the color of the texture? specular maps in very white textures reacts more shinier than in darker ones (the light intensity affects too), probably you need to find good balance (rgb grey scale).

If the model comes with shadow maps, you can try adjusting white input to be darker, so all de model will take darker tone, lowering lightness of the diffuse will help too.

Bye !!
naights 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 02:12 PM.


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.