![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
07-25-11, 07:31 AM
|
#1 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
[REQ] Howto assign "Bumpmap/texture" to the water
I am experimenting with the water since some days now. The surface needs a better structure, to simulate the light reflection, like sh4 and sh5 do. So i tried reaching this by harden the bump controllers, or forming smaller waves. All this is not very promising so far. It looks better, but the missing light reflection is the key.
Today i tried to assign an extra bumpmap controller or a simple texture (like the foam) to the water. No success so far. So i need help, as the way i assign them seems to be the problem (game crashes when entering the bridge). Who can help me? ![]() I work in the scene.dat, as here are all accessable parameters from the water, although the water itself seems to be defined somewhere else. I recognized not to to be able to change the minimum size of the waves. Changing the scaling options of the EnvData parameters had no effect. But adding a bumpmap controller to the EnvSim Node, or another WaterReflection Controller caused a crash in the game. So adding a texture for the normal waves, like the game uses the foam textures for bigger waves, and adding bumpmaps to these, would give us a light reflection, right? And this is how we could raise the watereffect to a new level.
__________________
|
|
|
07-25-11, 09:51 AM
|
#2 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
Found the bumpmap, the water in sh4 uses. But theres simply no access to the foam files, nor to the foam controller, which manages when foam is created. Had the idea, in adding a foam with bump map to the normal sea movement (even while smaller winds). But even that was unsuccessful til now...
Interestin: The EnvSim.act file contains the mentioned controllers + additional controllers, which do not appear in the scene.dat. As so the missing foam texture controllers. But there are also no variables stored, afai can see. Disassambled the EnvSim.act and went to the 2 addresses which are connected with the foam controller. But there are not values stored. Need help.
__________________
Last edited by urfisch; 07-25-11 at 10:13 AM. |
|
|
07-25-11, 10:43 AM
|
#3 |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
I think, you know ...
The structure of the water surface (waves) is defined in scene.dat and in sim.cfg section [Mech] ... Water Scale, Normal, Patches, BumpScale, Light/DarkColor, ReflIntensity, SupressWaves, ChoppyWave and so on. Colour of water surface and reflections in the water are defined in SkyColors_***.dat... textures Sky_***.tga and reflex_***.tga. Some colours and reflections are defined in EnvColors_***.dat... Therefore you can change water surface parameters in scene.dat, add additional reflections object into SkyColors_***.dat and so on... Also do not forget about [Glare] section in Effects.cfg.
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
|
|
07-25-11, 11:47 AM
|
#4 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
thank you anvart.
yes, i knew...but not about the mech in the sim.cfg, thanks for that. but the problem is differently located. please read my thread carefully. its about, how i make the foam appear on waves of smaller wind. and how do i apply a bumpmap to the foam on the waves?! there is no normal access. the foam textures are listed in the EnvSim.act file but afai can see there is no value stored for them and i cant read/see the reference they point to, maybe. some calls go to the properties.dll...but there is no value defined...afaics. somewhere there must be values beeing stored for this! definitely.
__________________
|
|
|
07-25-11, 12:45 PM
|
#5 |
|
Grey Wolf
![]() Join Date: Apr 2011
Posts: 756
Downloads: 238
Uploads: 0
|
Urfisch,do not take this wrong way.I posted this in other thread and you did not respond.Try the GWX16km mod as its tweaked the water and not just moved the view further away.It looks very good to me with just some times of day the water turning baby blue.But there is a difference in how the water looks by large amount.Here are pics comparing stock GWX water to GWX16km mod.This is run at 1024x768 and this game looks even better when at 1600x1200.
![]() ![]() ![]() ![]() ![]() This is how my game looks like...looks really good to me with the only thing being the shadows on the water are very jaggy.I am trying to rid that though.... ![]() ![]() ![]()
Last edited by Wolfstriked; 07-25-11 at 01:07 PM. |
|
|
07-25-11, 01:38 PM
|
#6 |
|
Pacific Aces Dev Team
|
Perhaps if the reflections of sky and clouds could be made flat bright white and broken into a myriad of small pieces it could have a similar effect to what you want
If the reflection was just a texture, then it sure could be done, but the reflection I think is hardware.
__________________
One day I will return to sea ... |
|
|
07-26-11, 06:24 AM
|
#7 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi mate,
What have you done to me after your thread the idea was haunting me and i did a full night of testing and i know exactly the effect you are after regarding faking the reflection since we lack of a modern shader model. So i fiddle again with the reflex atlantic.tga and did a noise map to get the smallest possible speckle of white mix with some slight tonal color value. The result came out not exactly the way i want them but i know why it doesn't show the way i want it is because of the size of that graphic that is 512x256 if someone can figured out how to make this image twice the size then we will have that great realistic look for the water. This graphic is composed of multiple tiles that are trigger by the game engine to represent different time of the day and i already tried to double it size but it is not correctly read when re-size. The point is if i can get a higher resolution i can then have better reflection detail on water surfaced and even there is a possibility of animating a reflection pattern on it that could simulated a much more advanced shader. ![]() See the left lower tile is the reflection. ![]() This one is the greenish tinted ![]() For the blueish lovers. Note these image are not realistic because of the distortion in reflect speckle and also i modified a lot of setting that i didn't reverted before taking screenshots. Best regards Hans |
|
|
08-01-11, 06:02 PM
|
#8 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
interesting point, anvart. will try this! thanks!
__________________
|
|
|
08-01-11, 06:18 PM
|
#9 | ||
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
or not bad??? can't test it...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 08-01-11 at 07:09 PM. |
||
|
|
08-02-11, 05:09 AM
|
#10 | |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
Quote:
but i have no skills for that. havnt found the source-parameters of the foam creation either.
__________________
|
|
|
|
08-02-11, 03:12 PM
|
#11 |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
@urfisch
First let play/experiment with SeaFoam parameters in EnvSim controller in scene.dat file. ... and term bump of water it's not texture bumping...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
|
|
08-04-11, 07:55 PM
|
#12 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi mate,
Finally after almost a week of testing every possible combinations i did achieve the look i was after and it was no ride in the park! I had to think outside the box for this one because the parameters we have for reflective materials in our 3d software is not related at all with the reflective materials in SH3 so i tried thinking in reversed mode. First everything had to work in combination like the reflex_Atlantic.tga i did a lot of blending in paint program to achieve a very subtle effect almost invisible to the eyes in the program but that was the key to avoid too much flickering in SH3. After that i crank the FresnelCoe to high value and raised the reflection distorsion to brake the pattern from showing on top of breakink wave and to finish i adjust clouds reflexion to get this : ![]() ![]() ![]() ![]() ![]() ![]() I am totally satisfy with this kind of ocean for SH3 with stock shader i will adjust it further a bit but this one truly work and have zero impact on frame rate. Edit: I forgot to mention that i forced my antialias setting to 4xx on video card. Best regards Hans Last edited by Hans Witteman; 08-04-11 at 08:06 PM. |
|
|
08-05-11, 03:38 AM
|
#13 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
looks not bad, hans! nice shader. could you send me this one via pm? will have some test with it also.
__________________
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
