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

Reply
 
Thread Tools Display Modes
Old 08-27-08, 07:48 AM   #301
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
Default

Quote:
Originally Posted by Nisgeis
This is what I have been doing, except the shaders use floats between 0.0f and 1.0f for the RGBA colour information. So, if you've got a number that could be 0 - 1000, then you have to divide it by various numbers to get it to give something that isn't saturated over 1.0f and take it from there. It's just a bit tedious and quite time consuming, but I have it all worked out now. Thanks for the tips.
Yea, I didn't mention to normalize the values for the sake of clarity
skwasjer is offline   Reply With Quote
Old 08-27-08, 07:52 AM   #302
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by skwasjer
Yea, I didn't mention to normalize the values for the sake of clarity
Normalizng is a bit hazy... I thought normalizing was for vectors, how does it work for things that aren't vectors?
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 08-27-08, 08:05 AM   #303
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
Default

Quote:
Originally Posted by Nisgeis
Quote:
Originally Posted by skwasjer
Yea, I didn't mention to normalize the values for the sake of clarity
Normalizng is a bit hazy... I thought normalizing was for vectors, how does it work for things that aren't vectors?
If colors are expressed in 0-255, then a value of 255 'normalized' is 255/255 = 1. I wish I knew the correct term.
3D normals however are usually clamped, so they can't exceed the range -1 to 1, whereas in this specific case, an arbritrary value you pick to visualize with the shader could be > 1 or < 0... (f.ex. 400/255) In such a case as I said earlier I would pick a completely different color so you know you are out of your range and at what end (instead of over/under saturating).

[edit] Turns out the term IS correct, just interpreted differently:

http://www.merriam-webster.com/dictionary/normalize
https://www.opends.org/wiki/page/Def...ormalizedValue

So, to recap, normalized colors in shaders are 0.0f to 1.0f, just like you already have worked with

Last edited by skwasjer; 08-27-08 at 08:15 AM.
skwasjer is offline   Reply With Quote
Old 08-27-08, 08:14 AM   #304
Ishigami
Navy Dude
 
Join Date: Mar 2008
Posts: 177
Downloads: 20
Uploads: 0
Default

Quote:
Originally Posted by swdw
Quote:
Originally Posted by kriller2




Thats amazing!
Ishigami is offline   Reply With Quote
Old 08-27-08, 08:49 AM   #305
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by skwasjer
If colors are expressed in 0-255, then a value of 255 'normalized' is 255/255 = 1. I wish I knew the correct term.
3D normals however are usually clamped, so they can't exceed the range -1 to 1, whereas in this specific case, an arbritrary value you pick to visualize with the shader could be > 1 or < 0... (f.ex. 400/255) In such a case as I said earlier I would pick a completely different color so you know you are out of your range and at what end (instead of over/under saturating).
Ah OK, I was confused because there's a normalize() function in hlsl, which applies to vectors only, so that why I didn't get you.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 08-27-08, 09:24 AM   #306
Syxx_Killer
Admiral
 
Join Date: Aug 2003
Location: Michigan, USA
Posts: 2,379
Downloads: 21
Uploads: 0
Default

Quote:
Originally Posted by kriller2
Hi,

Thanks for all the comments!

We are currently working on a new water shader and want this to be as good as possible, if everything turns out the right way you will be very surprised to see what we are working on.

The rest of the mod including textures, colours, bow wave etc. is finished and as soon we have the shader working without to many bugs, I will send out a full pack including submarine pitch and roll, special effects etc. to the testers and we will start betatesting PE4 with different mod-combinations, like OM, TM, RSRD etc.

Sorry for keeping you waiting, but I realy would like to include Nisgeis excelent shader-work and test PE4 with different combinations of mods, to avoid to many updates/patches right after release.
As much as I, and everybody else, want the mod now, take your time and make sure it works right. It is definitely worth the wait no matter how long it takes you guys. Just seeing these screenshots leave me in awe at how you guys have transformed the environment within SH4!
Syxx_Killer is offline   Reply With Quote
Old 08-27-08, 05:04 PM   #307
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Quote:
Originally Posted by Syxx_Killer
As much as I, and everybody else, want the mod now, take your time and make sure it works right. It is definitely worth the wait no matter how long it takes you guys. Just seeing these screenshots leave me in awe at how you guys have transformed the environment within SH4!
I think Kriller and I are going to decide what we want to accomplish for this release and then stick to that. We could just keep improving things, but then we'd never get anything out, so time to call for a freeze and hopefully there'll be no more feature creep. You never know though, there's always that killer effect you want to get in at the last minute, but for testing better to freeze.

There are many things I have changed and then Kriller has changed other things to compliment my changes and then I've changed some more stuff and he's changed it a bit and we're both pulling in the same direction, so that's good. To the shaders, I've added in refraction, so the viewing angle now has a bearing on what you can see, whereas before it was just the depth of water between the object and the camera. I've also changed reflections so they give much more wave details, you can now see more levels of wavelets, Kriller has adjusted the brightness of the reflections to match the new pattern. Increased viewing depth down to your sub (from above due to refraction). You can now see the sea floor, if you are close to the shoreline. Kriller and I have been working on making torpedoes visible from above the water, but no luck so far.

Most important for some, I'm almost certain the white line around the sub at shallow depths effect has been fixed, with no side effects, but testing will make sure.

Lastly, I'm almost 100% sure that Project Top Secret is workable without any serious errors. I didn't want to give any details before we were sure it was possible and I'm almost 100% sure that it is bug free, but testing will make sure.

Project Top Secret is:











Now, even I, as unobservant as I am, can see there's a difference there. It only works close to the shore, I'm hoping I can get it to work at all depths, but I don't know yet. I've obviously chosen the best angles to take screenshots of, so in some angles it doesn't looks as good, like flying up 1,000 feet in the air for example.
__________________
--------------------------------
This space left intentionally blank.

Last edited by Nisgeis; 08-27-08 at 05:21 PM.
Nisgeis is offline   Reply With Quote
Old 08-27-08, 05:33 PM   #308
Syxx_Killer
Admiral
 
Join Date: Aug 2003
Location: Michigan, USA
Posts: 2,379
Downloads: 21
Uploads: 0
Default

I think my eyes are deceiving me! That's brilliant!

I'll probably play SH4 just to watch the water!
Syxx_Killer is offline   Reply With Quote
Old 08-27-08, 05:50 PM   #309
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 3,971
Downloads: 148
Uploads: 10
Default

Will someone please explain to my wife why my jaw just dropped to the floor, which is now covered with drool?
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 08-27-08, 05:54 PM   #310
Defiance
Grey Wolf
 
Join Date: Apr 2005
Location: UK
Posts: 906
Downloads: 673
Uploads: 0
Default

Lol DT

Yeah mine did about the same he he

Dang i am waiting patiently for as long as it takes after seeing the above pics

Awesome work Guys
__________________
Have Fun

Bye

Def
Defiance is offline   Reply With Quote
Old 08-27-08, 08:39 PM   #311
ivank
The Old Man
 
Join Date: Apr 2008
Location: Huntington, Long Island, New York
Posts: 1,424
Downloads: 284
Uploads: 0
Default

i thought i was in the tropics after seeing those pictures just mind blowing
__________________
Head of The Surface Warfare Super-Mod Team

Leutnant z. S. David U. Ziegler
U-105 IXB On Patrol 1

ivank is offline   Reply With Quote
Old 08-27-08, 10:09 PM   #312
Task Force
Navy Seal
 
Join Date: Jul 2008
Location: SPACE!!!!
Posts: 9,774
Downloads: 85
Uploads: 0
Default

The way you did the coast looks amasing. I love this mod, It looks like some picture ive seen. You two are doing a great job, UBI should have done this with the origional game.
__________________
Task Force industries "Taking control of the world, one mind at a time"
Task Force is offline   Reply With Quote
Old 08-28-08, 10:26 AM   #313
Will-Rommel
Chief
 
Join Date: Jan 2008
Posts: 319
Downloads: 81
Uploads: 0
Default

This new aqua water is really impressive. It's really a step forward. I only miss the sun on the waves, like in Environmental mod.
__________________
-Fighting is a lifestyle-
Will-Rommel is offline   Reply With Quote
Old 08-28-08, 10:49 AM   #314
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 25,409
Downloads: 90
Uploads: 0


Default

Excellent work and very realistic!
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 08-28-08, 11:41 AM   #315
momo55
Frogman
 
Join Date: Mar 2007
Location: belgium
Posts: 295
Downloads: 125
Uploads: 0
Default

WAAAaaawww !..Have no words ...but i like Top Secret Projects...nice ..nice
__________________
Our greatest glory is not in never failing , but in rising up every time we fail .



momo55 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:33 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.