Jump to content
The Dark Mod Forums

Water for my harbour


Fingernail
 Share

Recommended Posts

Hi, didn't want to take up more posts in the Currently Working on Thread, so I thought I'd spin off to its own thread.

 

I got Arcturus' water shader (but using the alpha depth heat haze shader) and animated md3 meshes working, which look great from some angles. However, the shader lightens objects below the water line, which doesn't look great for the galleon model I have in the harbour.

 

Basically the water looks too clean and transparent, particularly from higher angles. It looks lovely from low down when you can see the light refracting off the bumpmaps and the waves.

 

I tried using a foglight but it causes some weird colour blending when under light. I'll post some screens later.

 

I found this thread where SteveL was trying some different effects for sea water: http://forums.thedarkmod.com/topic/18036-messing-with-sea-water/

 

Is it possible to combine one with the other (ie. have the water darken with depth but with the animated mesh and normalmap on top which looks much better than the seawater01 texture)? I haven't had a detailed look at the shaders and am not exactly familiar with the coding involved - I will do so when I have a minute.

 

But just in case anyone here is able to instantly tell me it's possible or not, or what I'd gain or lose.

  • Like 1
Link to comment
Share on other sites

I think this shot shows what I mean... the posts sticking in to the water and the bottom of the ship's hull look unnaturally lightened.

 

I'm not sure if this is a result of having light directly shining at/below the water, negating the fog under it? Anyway, any suggestions on how to make it a lot murkier very welcome. Maybe I need to change the colour of the texture itself?

post-2-0-67026900-1496611531_thumb.jpg

Edited by Fingernail
Link to comment
Share on other sites

I see what you're referring to. It looks like some kind of additive blending to me, but I'm not very familiar with the water shaders. Arcturus or Obsttorte would be the people to ask.

Link to comment
Share on other sites

Ok, edited a stage with less (more?) alpha and got a better result depth wise (less transparent water, which I think is better for sea - I can't see the bottom anymore). However, it also shows up the additive blend stage more. Definitely need a darker/murkier colour diffusemap tint for this eventually.

post-2-0-15152700-1496612350_thumb.jpg

Link to comment
Share on other sites

Hmm, it definitely looks like the shader is doing a fog operation so I would hazard to guess

you might get better results with a blend filter operation than the current blend.

 

You might need to use a white diffuse image to ensure that the starting point isn't completely black.

 

Similar line of investigation:

 

http://wiki.thedarkmod.com/index.php?title=Making_Semi-transparent_textures

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Is it possible to combine one with the other (ie. have the water darken with depth but with the animated mesh and normalmap on top which looks much better than the seawater01 texture)?

 

Can you link the water shader you are using? Or is it packaged with the mod now? I remember both Arcturus and Obsttorte did clever things with bumpmapped transparent shaders but I'm a bit behind on latest developments :) I'll have a look how it works and see whether we can get the best of both worlds.

  • Like 3
Link to comment
Share on other sites

Is it md3_water_test_refraction you're using?

 

There are a couple of variants in that material file but I think that's the one.... But I can't see (yet) what is causing the brighter posts and hull below the waterline. The only light being added in that material is from the specular highlights on the water. Are you using any other effects in the screenshot above? Like fog lights, or another material on a patch beneath the surface?

  • Like 1
Link to comment
Share on other sites

It's the refraction, reflection AND the colour all together. I copied it straight out of Arcturus' own demo map. I believe the reflection lives at the bottom, then the refraction and color animated textures go on top.

 

Some info here: http://forums.thedarkmod.com/topic/18643-md3-models/page-2#entry402313 and http://forums.thedarkmod.com/topic/10003-so-what-are-you-working-on-right-now/?p=406615

 

EDIT: and here http://forums.thedarkmod.com/topic/10003-so-what-are-you-working-on-right-now/?p=406647

 

 

But I replaced Heathaze with heathazewithalpha to get rid of the edge distortions on close objects (as far as I understand it).

 

Nothing underneath apart from a patch with a dirt texture.

Edited by Fingernail
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recent Status Updates

    • jaxa

      RTX 3090 Super, RTX 3070 Ti 16 GB, RTX 2060 12 GB
      https://wccftech.com/nvidia-launching-rtx-3090-super-rtx-3070-ti-16gb-and-rtx-2060-12gb-by-january-2022/
      · 0 replies
    • duzenko

      CPU benchmark time - compiling DarkRadiant (2nd run)
      i5 8600K 6C/6T@4.4GHz DDR4 2x2133MHz 9MB cache
      Parallel builds: 1. 3:57 Parallel builds: 6 (default). 2:28 r5 1600AF 6C/12T@3.3GHz DDR4 1x2666MHz 16 MB cache, temp folder on HDD
      Parallel builds: 1. 5:05 Parallel builds: 4. 2:47 Parallel builds: 6. 2:55 Parallel builds: 12 (default). 2:57
      · 6 replies
    • nbohr1more

      Status updates are back so it is also a good time to return to contests!
      https://forums.thedarkmod.com/index.php?/topic/21095-christmas-connections-contest-2021
       
      · 0 replies
    • freyk

      Having seen the new scifi stuff from bladeghost/scythwraith, want to continue the cyberpunk project. Only one problem, can't map.
      · 1 reply
    • jaxa

      Behold, the brand new RTX 2060!
      NVIDIA ponders GeForce RTX 2060 re-release with 12 GB VRAM to paper over RTX 30 scarcity
      · 1 reply
×
×
  • Create New...