[Community Project] WIP Weather & Ocean Water Shader

Wow, i am still impressed how this project moves forward! If you don’t mind - i have a question.

Is there any approach on dealing with the transition between the ocean surface and the
underlying water surface using a post process that will blend into the typical dark blue environment?

I know it might work with a box, but would be cool to inherit the oceans displacement.
KhenaB made such a cool translation but i think he used a simple plane inside the ships cabin.

GTA V faked it quite good by skipping the part by switching the camera,
but i am more looking forward to first person and within the desired smooth effect.

Regardless this, outstanding work! Looking forward to test it in 4.9 - Thank you!

So now Im getting a wierd error in VS

1>------ Build started: Project: TikiGalore, Configuration: Development_Game x64 ------
1> Performing 18 actions (4 in parallel)
1> PCH.OceanPluginPrivatePCH.h.cpp
1>c1xx : fatal error C1083: Cannot open source file: ‘S:\Abyss_Development\Get_Golden_Game\TikiGalore\Plugins\OceanPlugin\Intermediate\Build\Win64\TikiGalore\Development\OceanPlugin\PCH.OceanPluginPrivatePCH.h.cpp’: No such file or directory
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: S:\Abyss_Development\Get_Golden_Game\TikiGalore\Plugins\OceanPlugin\Binaries\Win64\TikiGalore-OceanPlugin.lib
1> Total build time: 2.80 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command “S:\Abyss_Development\UnrealEngine\Engine\Build\BatchFiles\Build.bat TikiGalore Win64 Development “S:\Abyss_Development\Get_Golden_Game\TikiGalore\TikiGalore.uproject”” exited with code -1.
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========

and when I try to run it directly it asks to rebuld the plugins dlls and it fails to build

Did you download the latest version posted just a coupledays ago to github by DotCam? The -1 exit code makes me tihnk source code error, weird bugs usually exit with -3. try temporarily removing /plugins/oceanplugin/ and then regenerate project files, and see if a clean rebuild works. Also make sure your games core module is in order spelling etc.

I got it working sorry I totally didnt realize I was just doing a development build and not a development editor build!:confused:

As always thanx!

The ocean looks so real I feel like I could touch it, amazing work

Hi All,

Just wanted to thank everyone in this thread and the original authors for their development, contribution, and expert skill producing excellent wave motion and effects, and then sharing that information with others in this community freely. Well I’m new to Unreal4 from Arma3, and was noticing a lack of shared information especially in relation to free assets and weapons etc until I saw this thread. I was also just about to uninstall Unreal4. The idea of a freely made Community Project/GAME (eg a Worldmap) that we can all attribute to sounds like a great idea. I can only image an amazing FPS game like Arma3 on Unreal4 that is visually perfect in all aspects, a lifelong Project that everyone could play and enjoy, make Mods, etc. Even your children could inherit/play. Sharing of profits and contribution should come at the end of the Project rather than peace meal market sharing of selected assets. Food for thought? Anyone interested in such a Large Community Project just let me know.

Cheers Dex

It’s “skydome”… I’ve done everything you’ve said but with no success. However I was able to use your project as a base for my own. That worked out nicely untily yesterday, when the same issue appeared out of nowhere.

See that the left side reflectsa really bright part of the sky that simply isn’t there… I’ll try to dig a little deeper after the winery challenge deadline. Back to Epic’s lame water for this… :frowning:
I’ll stick to the skydome! :slight_smile:

I looked around a bit, but couldn’t see how to enable the infinite ocean feature, anyone know?

What new feature is this? It really bugged me when I found out reflection captures were useless with a fully dynamic setup.

Hey DotCam, I’m just curious to know what will be the next thing you will change on the water (or sky or whatever). Continue on this way and have a good day :D!

I just downloaded this and started messing with it a bit.

I’m currently working on adding adaptive tessellation LOD, depth bias wave and undulation height masking (smaller to no waves/undulation at the shoreline) as well as a few other rendering optimizations to the water materials.

I will let you know how it turns out and share with the project manager.

Can’t wait to see your improvements CharlestonS!

So I’ve been trying to get this sweet looking ocean working in my project, and the instructions in the wiki seem simple enough, but I get as far as Step #5: dropping BP_Ocean into my map, and the editor wont let me? If I try to edit BP_Ocean, I get: “Blueprint could not be loaded because it derives from an invalid class. Check to make sure the parent class for this blueprint hasn’t been removed!”

The example maps work fine, but I would really rather avoid having to rebuild everything else on top of one of them.

@WormSlayer - do you have the plugin in your plugins folder and everything?

Turns out I managed to misspell “Plugins” when I made the folder, working just fine now thanks XD

Plugging my own assets into this for Pirates

DotCam, will need to get with you when you’re back so we can collaborate on some updates. :slight_smile:

I’m sure its just me being stupid again, but I cant seem to get anything to float on my ocean? I’ve tried dropping in the example boat blueprint, adding test points and set the buoyancy variables as suggested in this thread, and I’ve copied and pasted the boats from the example maps, but they all just fall through the surface like it isnt there?

This looks VERY cool and is definitely going into my game. Wow!

Love the work, I can’t thank you all enough for this contribution. I’m having issues integrating it with my project though. I followed the instructions on the wiki exactly. I got the project to work just fine as a standalone, but after I follow all of the steps, neither the ocean shader or the sky compile. I’m at a loss. I’m just left with the grey plane infinitely. Equally strange, whenever I attempt to open a material I can’t seem to open its master material. Instead, for many materials it treats it like an instance material. I’m able to open M_Ocean_Depth but get the following errors
Error [SM5] (Node CollectionParameter) CollectionParameter has invalid Collection!
Error [SM5] Missing Material Function
Error [SM5] (Node TextureObjectParameter) Param Tex Object> Requires valid texture

Here are the steps I followed:
Downloaded both the full 4.9 project from github and the plugin.
Extracted the plugin to the root folder of my project
Copied everything from the content folder of OceanProject into an “Ocean” folder in the content folder of my own project
Opened both projects
Waited for everything to compile in OceanProject, didn’t take long. I deleted all the atmospheics and lighting in the starter map on my project.
I copied and pasted all the important ocean/sky features from the world outliner into my project.
Nothing happened. So i saw the BP_Ocean didnt have meshes or materials assigned to it. I found all the correct ones and just had a giant grey plane that refuses to attempt to compile.
Any help would be appreciated.

EDIT: Wow I always end up spending hours trying to figure something out before coming here for help, only to find the solution moments later. Turns out copying the content into its own folder made things a bit ****y. So don’t do that, just copy everything right into the content folder.


I’ve been playing with the 4.9 version for a few days now and I must say this project is just awesome! Congrats! :wink:

The “empty” map, containing only the ocean, sky and ground is really helpful to duplicate the environment in another project.
Everything went well for the ocean but I have some trouble with the fish manager: when there is a Fish Manager BP in a map of another project than the Ocean demo the editor crashes as soon as I run the game. Someone has this issue? (note: it works well in the fish map of the Ocean Demo though…).

Beside I have 2 questions:

  • is there a way to know that the camera is underwater?
    My aim is to trigger the underwater post-process as well as some other stuff as accurately as possible (when the camera goes through a wave for instance).
    I tried the events On Actor Begin and End Overlaps but they do not seem to generate any message.

-when the time of the day is changing in the Empty map, the SkyLight is not moving accordingly and continue to generate a high sun reflexion on the surface of the ocean. In some cases this reflexion is not event related to the sun light direction. Is there a way to rotate it and to make it follow the sun?

Thanks a lot