Color inside volume (underwater)

I have water that is planned to be dynamic. How do I have color/fog inside it when the camera is inside the water volume? The post-process water is basically static, so I can’t use that. Is there a common/best way to do it?

I may missunderstand but you want to create your onw water?

Or SimpleWater?

Take a look at this thread:

http://hub.jmonkeyengine.org/groups/user-code-projects/forum/topic/running-water-early-video/



It’s not really about the underwater side of things but helps with moving water.



For underwater I believe there is a filter for that…

@benkibitzer said:
I may missunderstand but you want to create your onw water?
Or SimpleWater?

I am planning to create my own water. SimpleWater does not cover under/inside water, and a reflection for a flat surface is needed.


@zarch said:
For underwater I believe there is a filter for that...

Do you mean the post-process water here? https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:post-processor_water I can't use this one since it seems to stretch infinitely, and there's always going to be water if under sea level.

Umm, here’s an image just in case:

Well simple water should be able to be used on any mesha s fasr as I understand how it works. So step one would be to generate the mesh of your water surface./ water body

@ciephren posted a patch once to limit the post process water…I should get this into the core.

but maybe this post can help

http://hub.jmonkeyengine.org/groups/graphics/forum/topic/how-to-set-the-size-of-the-waterfilter/?topic_page=1&num=15

1 Like

Yeah, I would thumb this up, @nehon. I also need your neat looking shader confined to a quad. Would be awesome!