[Community Project] WIP Weather & Water Shader

thanks so much for everything you are doing

Thank you very much

:wink:

Iā€™d definitely be interested, I am so busy with another non-UE4 work project my time is limited but Iā€™ve been watching with keen interest as well as your sub-sim . Itā€™s looking great! Iā€™m in the story-boarding/initial phases of a cinematic WW2 recreation piece regarding Force-Z so project is going to save me countless days on that end and Iā€™m hoping Iā€™ll be able to push back some art/asset improvements once I get further along.

One question I have is there a way to increase the range of the Gestner waves effect, Iā€™m dealing with really large ships and the radius of the effect doesnā€™t really even cover the whole ship. I could potentially shrink the ships and all the other assets but Iā€™d prefer to avoid . I was planning to go looking into , but time is a short and valuable quantity for me these days, any one able to point me where to look?

One last thing of note, the repository seems to be falling behind, is it still being maintained, it would be nice to see the efforts of various others getting combined into one repository again, things are looking a bit fragmented, and it would be nice simplify things by having one place where improvements can be pushed/merged.

Iā€™ve been poking into ways to mask the so I could build full ships and use them instead of teleporting the player to the interior hidden way in the sky

https://.com/eliasts/Ocean_Community_Next_Gen

project says it has a mask effect for hiding water in boat meshes. week iā€™ll be pouring through that, scrawks old setups, and suimono in unity to see if theres nything that would be very easy to port over with my limited knowledge of the ue4 API for practice.

Really hope you get well soon dude. x

A whole weeks work blueprinting up a submarine again lost, now its just spazzing out after I recompiled with victory plugin and organized components with scene components. Ugh unreal.

Edit: Thought it might ave been after enabling physics sub stepping but nope no go. Word of warning build your own pawn dont modify BP_Boat

So sorry if is asked and answered in one of the 28 pages. Iā€™ve been looking into the blueprints in the game trying to find where the calculations for the buoyancy are. I found in the Oceans folder thereā€™s an ā€œOldā€ folder and I see some applied forces in there for buoyancy stuff, but I donā€™t think thatā€™s everything.

Would anybody be able to point me in the right direction as to where all the buoyancy calculations are happening? Thanks so much! BTW whole project is amazing! I love messing around with the ships!

While I cannot help you directly, if you use the archive view of the forum it is only 5 pages to search:
https://.unrealengine.com/archive/index.php/t-42092.html

Really nice work!! I love everything about project. Oh by the way, did anyone else noticed some weird darkening when underwater and the playerā€™s camera is looking up? In the demo project, If I look straight up while underwater the water surface turns pitch black, it looks fine at a 45ish degree angleā€¦but when you look straight up it gets pitch blackā€¦it is really offputting, Iā€™ve tried messing around in the settings, even disableing the post process volume (both the global and underwater) but it didnā€™t workā€¦the is still thereā€¦Removing the two sided check for the material seems to ā€œfixā€ it so it might be shader related. Is it just me or have you guys noticed it also?

P.S disabling the two sided checkbox is not really a fix because then I end up having no mesh above me (obviously).

BuoyancyForceComponent.cpp meshDensity/fluidDensity * testPoints / tPRadius or something like that

Read the thread lots of issues related to . Try different enums (with/without sss/cubemap/gerstner etc) on bp_ocean

One thing that worked for me when I didnt have a "translucent " when looking up underwater was set ā€œLower Hemisphere Is Blackā€ to False in your moveable Skylight (NOT sunlight!)

Hello ,

Can anyone help?

  1. I am trying to use the Ultra_Dynamic_Sky with project (primarily for the clouds).

I understand that when I replaced the BP_Skydome with Ultra, I lost the UpdateSun function, and my SSS light vector parameter.

For us non-C++ people, where exactly in the Ultra BP do I put that function?

And does the function need to be tailored from that found in the BP_Skydome because of other coding in the plug-in?

If someone could tell me how to migrate over only the clouds from Ultra into project, that would be another solution.

I want to keep that nice Black Flag SSS in the top of the waves you have achieved, but with the Ultra clouds.

  1. The nice waves create a problem previously pointed out, at the shoreline. I would like to implement 's hightmap modulation function to keep waves from intruding too farā€¦donā€™t know where to integrate that function either.

I was wondering if the hightmap along with probes placed along the beach, could be used to activate a swash/backwash shoreline blueprint that could be combined with project. The waves already look great ā€¦ some braking foam waves, swash that creates wet , and would be almost perfect.

Did anyone notice that Bethesda used interactive ā€œlakeā€ water (no waves) for the Atlantic in Fallout 4?

Thanks in advance, and a special thanks to all you Canadians, I guess Canada wins the Gold for writing water shaders.

On top of all the other things im trying to integrate and port is the cloud and shadows from ultra dynamic. I havnt gotten any further than prodding the blueprionts but will post if I find more info. Its not a plug an play no doubt about it.

Yes us canadians seem to be all about the waterā€¦

What about 4.11? 4.11ā€™s render time improvement (intel embree) is critical for architectural visulations. I know 4.11 is preview version but maybe temporarily something can be done. So i need beautiful in my version 4.11 project.

It should compile on 4.11p5 not that Iā€™ve tried.

****, you guys are clever.

Any update on the transition from below/above water? (That thin line where for example the water covers only half your screen.)

Does anyone have a decent underwater fog at point? I donā€™t care if the transition isnā€™t perfect.

Iā€™m looking at the guy whos doing the diving suit project to try to solve some really great ideas in that thread.

I have it built in my mind where it essentially gets darker the lower you go, remind me in a week and Iā€™ll post it if I have it done, another one of the things I have on the go for my project. Basically all you need to do though is setup a PP volume around your currently controlled pawn and if above water set bIsEnabled to false and visa versa and also set up the PP settings based on whatever variables (depth for example)

Hey guys, I have some time to spare week so hopefully I will finish the underwater stuff and upload to .
Iā€™m actually kinda glad I did not share the version I talked about before because I have found a much better method to do the masking (which does not involve any crazy gerstner calculations in the post process material).

The solution is to use the stencil buffer to mask the upside and underside of the plane (that does require an extra depth plane though).
How the heck did I not think about the stencil buffer before?! itā€™s a simple solution and was right there in front of my face whole time :stuck_out_tongue:

It works like :
http://www.mediafire.com/convkey/a94b/56xw7dzionba0wazg.jpg?size_id=3
Red = upside, green = underside

The problem with method (because there always has to be a problemā€¦) is that tessellation causes some cracks and pixelation to show in the stencil buffer, the solution is to use a pre-tessellated plane and sample multiple neighbor pixels from the stencil buffer to get a cleaner result.

Wait am I the only non-Canadian in thread? :stuck_out_tongue: haha (Iā€™m from Greece)

The light vector for the SSS is updated from BP_Sky (take a look inside the UpdateSun function, second comment box) there is no C++ involved, you should be able to copy that part into Ultra Dynamic Sky bp.
The reason it is not updated from BP_Ocean is because it wonā€™t update in editor when you change the time of day.

The heightmap modulation function that I posted is implemented in the materials (M_Ocean_SSR, M_Ocean_Depth etc.) I believe I posted some instructions :stuck_out_tongue:

Just leave me 8 months to catch up. Masking my submarines interiors so that I didnt have to do tricks with the interiors was my first step in C++/Advanced Materials using the divnig suit game thread.

You could probably use the same method to mask the inside of a submarine by reading the stencil buffer in the material and use it to set the opacity to 0.
I have not tried accessing the stencil buffer from a translucent material though.