Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Paging CB - Whitecaps?
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Silent Hunter II, Destroyer Command & Classic Subsims
View previous topic :: View next topic  
Author Message
CBDR



Joined: 24 Feb 2004
Posts: 131
Location: Virginia, USA

PostPosted: Wed Oct 06, 2004 10:08 pm    Post subject: Paging CB - Whitecaps? Reply with quote

CB,

Is it possible to animate whitecaps based on the windspeed called for in the weather.ini file? Whitecaps start to form when windspeed reaches about 18 knots.
Back to top
View user's profile Send private message
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Thu Oct 07, 2004 9:58 am    Post subject: Reply with quote

not as far as i know...unfortunately
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hitman



Joined: 14 Sep 2002
Posts: 3059
Location: Spain

PostPosted: Thu Oct 07, 2004 10:27 am    Post subject: Reply with quote

And what about adding in one of the multiple layers of the water the white caps? Wouldn't it be displayed on screen depending on the movement of the waves, if one of the water tgas has the white caps added?
Just asking... Confused
Back to top
View user's profile Send private message Send e-mail
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Thu Oct 07, 2004 10:40 am    Post subject: Reply with quote

Hitman wrote:
And what about adding in one of the multiple layers of the water the white caps? Wouldn't it be displayed on screen depending on the movement of the waves, if one of the water tgas has the white caps added?
Just asking... Confused


yep that can be done, the wave textures in water2.mdf (on level 2 cards)
are affected by the wind speed and direction in the weather.ini and or the mission file weatehr fronts..so you can ahve white caps that scud across the surface dynamically according to the wind speed and direction (there was a mod to do this on my site but it got lost when the site died a while back)


i have white caps in a texture mod for level 2 cards on my site ...

the trick is to increase the wind speed in the weather.ini to around 30 or 40 knots (any slower and the effect isnt noticable except at time excell)
as far as i can tell this incresed wind speed doesn't dramatically effect anything else in the game...tho you might see the boat sway much more in a heavy cross wind..(no bad thing)


i had a mess around with the entrys you mentioned in the other thread (level 5 stuff procedural) and found i could add them to water2.mdf without affecting anything in water.mdf (where the level four reflections are held)

for level 4 cards try opening water2.mdf and adding this after the normal level four entrys



[STAGE41]
Texture = PROCEDURAL
Use = NORMAL_MAP
Size = 256,256
MinFilter = TRUE
MagFilter = TRUE
Mipmap = TRUE
NormalScale = 24
NormalAxis = Y
Procedure = NOISE
NoiseX = 15.0
NoiseY = 15.0
NoiseZ = 25.0
NoiseScaleX = 17.0
NoiseScaleY = 17.0
NoiseAmp = 26.0
NoiseOffset = -1.0
NoiseColor = 135,200,200,205
FractalInc = 5.0
Lacunarity = 10.0
Octaves = 4.0
UVIndex = 1
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.0015625,0.0015625,0.0



;this should give some white caps in the distance..
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Fri Oct 08, 2004 6:10 am    Post subject: Reply with quote

Very Happy going to stop doing this, Joking
Back to top
View user's profile Send private message Send e-mail Visit poster's website
turnerg



Joined: 18 Jan 2004
Posts: 1088
Location: Dallas, Texas

PostPosted: Sat Oct 09, 2004 2:46 am    Post subject: Reply with quote

Did you break something?

Oh, on the topic of texture tiling and crap, Horsa knows his way around textures, filtering, etc. he might be able to make some tilable waves..... :hmm:
Back to top
View user's profile Send private message Send e-mail AIM Address
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Sat Oct 09, 2004 6:22 am    Post subject: Reply with quote

only my toe nail on this damn step.. Damn
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Sat Oct 09, 2004 8:38 am    Post subject: Reply with quote

here's a bit of a newsflash which should enhance the water effects on level four cards with the minimum of fuss and bother (seems to be neccessary)

you can enlarge the waterBump textures with no ill effects...(not true of all the water effect textures tho)

so bung em up to 256X256 try them if you get no slow down bung em up to 500X500 etc ..this allso gives you much more scope to attempt repainting...which is where the real area for genuine improvement comes in....(if horsa can do it then it will be worth the trubble...getting really decent water effects is probably the major enhancement for sh2 that will surely have a greater impact than the total of it's parts (if you see what i mean)

so go for it....make a safe bak up copy of the textures first of course..

for level two cards just substitue the normal water2.mdf level two stage 20 entrys with these..


[STAGE20]
Texture = waterBump_
Use = TEXTURE_MAP
Mipmap = TRUE
MinFilter = TRUE
MagFilter = TRUE
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.00015555,0.00015555,0.00015555
FlipBook = TRUE
FrameCnt = 32
LightVector = 10.0,10.0,20.0

i garantee you will fall of your chair.. Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Sat Oct 09, 2004 9:24 am    Post subject: Reply with quote

what i did was exactly as said in my previous post ie the level two stage 20 entrys using the waterBump set of textures (the textures normally only used by level four cards) i then set about attempting to repaint them slightly...which is a very tricky job and i havent the ability or paint programe for the job ..but even with my limited patience for these things i hacked up a set i could live with heres a screeny note the white caps..these are animated of course..and are painted onto the bump textures..
you may have to gamma correct the screeny to show clearly on your graphics cards...(all i ever see of any one elses screenys is a black square so gawd knows what yu guys see of mine ! a white square? i dunno use your noggins save the image and gamma correct it till it shows correctly...use the grey tone of the tool bar as a guide)







an expert could do a whole bunch better..(i like grey seas for example others might not)

32 textures to play with...animated in loop over about 15 to 20 seconds

the rest is history..it will show what you paint on it paint summat good and it will be good etc Thumbs Up

you can rename the waterBump textures to waterCbump (or whatever) etc point the watermdf entrsy at these intead and bingo job done, you can then safely use it without over-writing any stock textures..

with this we can have any quality of water effects we can actually manage to paint..no real limit
Back to top
View user's profile Send private message Send e-mail Visit poster's website
horsa



Joined: 07 Jul 2002
Posts: 2693
Location: Halifax, England

PostPosted: Sat Oct 09, 2004 9:42 am    Post subject: Reply with quote

Quote:
Oh, on the topic of texture tiling and crap, Horsa knows his way around textures, filtering, etc. he might be able to make some tilable waves


Yep. speak crap fluently .... almost got a PhD in it ... Very Happy

... :hmm: different sort of problems here ..... looks like I need to know how this whole thing works to be able to make meaningful textures ??

.... just let me have a study of all this clever CB stuff and I'll see what comes out ...
Back to top
View user's profile Send private message Send e-mail
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Sat Oct 09, 2004 10:54 am    Post subject: Reply with quote

Hi Horsa ..it's tricky stuff that's for sure..ive no idea how you would go about painting a set from scratch..what i did was take the waterBump set and gamma correct it, sharpen it alter the contrast decreas/increase the colour depth / resized it then resized it back again untill i got something i half way liked..LOL

ive just tried an experiment tho...take the waterDetail textures..and copy them at 60 percent transparency directly onto the water bump textures ,

in game this then shows as if both sets of textures are animating instead
of one....gives you some idea of what we could do with some practice...

the problem with starting from scratch is that it has to be perfect otherwise it shows up like a sore thumb...

very hard to do...must be a utility somewhere that deals with this stuff..or a tutorial etc...tiled animations are used a lot in games ..so theyre must be stuf on the net somewhere...mind ive not found much so far...

hope you can get your head round it and paint something (gawd knows ive tried) with a nicely painted set of textures SH2 would really get a hugely appreciated facelift.. Thumbs Up
let me know if i can help any..
Back to top
View user's profile Send private message Send e-mail Visit poster's website
horsa



Joined: 07 Jul 2002
Posts: 2693
Location: Halifax, England

PostPosted: Sat Oct 09, 2004 12:22 pm    Post subject: Reply with quote

...... Ok first problem ..... I alter the mdf as you've said above ..... but it won't save over the original mdf .... says "cannot create "
Back to top
View user's profile Send private message Send e-mail
horsa



Joined: 07 Jul 2002
Posts: 2693
Location: Halifax, England

PostPosted: Sat Oct 09, 2004 1:09 pm    Post subject: Reply with quote

... forget it ...... it was a bug in my system .... no probs now
Back to top
View user's profile Send private message Send e-mail
CB..



Joined: 30 Apr 2002
Posts: 2306
Location: UK

PostPosted: Mon Oct 11, 2004 3:57 pm    Post subject: Reply with quote

see if this helps

for level 4 cards

http://www.ebort.com/files/waterL4.zip

it should (in theory) give you white caps via the water2 entrys and it should show you how the waterbump reflection animated textures can be used in a different manner....ie becoming the whole of the water display rather than just the reflective part...

it's not meant as a complete water mod ..just a way of hopefully illustrating the possibilities.....if you use the waterbump textures as the main water effects (rather than as simply the secondary effects);
then you have a set of textures that can be painted to any level of detailing the artist can manage..ie no limit as these textures can be resized to suit the quality needed..
Back to top
View user's profile Send private message Send e-mail Visit poster's website
horsa



Joined: 07 Jul 2002
Posts: 2693
Location: Halifax, England

PostPosted: Tue Oct 12, 2004 2:24 pm    Post subject: Reply with quote

Thanks CB .... I was getting nowhere by myself .... no mattter what I did it seem to make any difference ..... some sort of example like this was just what I needed... Very Happy

I'm not sure how much I can get done immediately because I'm away for most of the next two weeks Confused
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> Silent Hunter II, Destroyer Command & Classic Subsims All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group