JBaldwin - UE4 Content Preview Thread

Same here : ) Waiting for more!

This is so frickin awesome… I love you guys :smiley:

@ufna yaay sources!! I’m sure I will learn a lot from this :slight_smile: thanks a ton!

I can’t wait to show some of the progress I have made with the sailing simulator thingy I’m making. :o

Glad everyone is enjoying it :slight_smile:
@ufna - I know we had talked yesterday about how bad Gerstner waves are for performance, but I decided (Since I already Started) I would finish it up and share it with everyone.
The equations are practically the same accept for a few small things. (If I remember right) - I changed from multiplying the amplitude by (x,y) to dotting it. I also fixed the Φ addition. The direction is giving me issues so I am having to look into that.

After I get everything working, I need to compile it into a scale-friendly format. Currently, this has about 50 parameters that all need to be modified. I am going to try to make a shader that allows you to go from a value of 0 - 1 which will model the ocean from calm seas to rough ocean swells.

Update:
Solved Animated Wave (Wind Direction)

This allows for ocean waves to continue their behavior but their orientation can be modified.

Here is a picture for anyone interested.

bump - For anyone interested in the wind direction (Shown Above)^

Interesting, so that allows you to rotate the wind direction without getting really odd updates in the shader? Usually that makes it look like everything pans around some invisible/far away axis, so your only choice is to have no change in the wind direction.

Correct, this will solve that. You just need to be careful you don’t implement it into the wrong part of the equation. If you re-produce the function as shown above, you will see the wind direction constantly update while the waves continue along their path with no warping or distortion.

I was going to add more images but it seems I have uploaded 5 and that is the maximum? Wow that would stink if so >.<
Apparently there was some sort of "Database Error"

You can use an image hosting site (like tinypic.com for example), no limits that way.

Thank you TK-Master.
Yea, I guess I will do that. I just hate referencing images because if the link on “that” site ever gets damaged, then the forum no longer shows it. (That’s why I like uploading to the forum directly) :slight_smile:

@TheJamsh - Here is an example of a huge set of ocean grids and the function applied to them. You can see there is no distortion or odd “polar” effects.

You can also upload them in the wiki :wink:

You’re welcome :wink:

btw I saw a nice commit at github yesterday. It means we’ll be able to implement transparency soon :slight_smile:

Awesome! I really can’t wait for that. I also saw your feature request on Post Process addition ufna, very good call!
I still need to learn quite a bit when it comes to the technical side of oceans and rendering.

Gamma + Infrared \m/ OH YEA!
:stuck_out_tongue:

Update:
Small Choppy Ocean
Hurricane Swells
Fast Ocean Swell Sets

Man…I cant say how amazing this project looks! Looking forward to see more progress and try out some things by myself :smiley:

Keep up the good work! Very, very cool :slight_smile:

Looks fantastic! Well done!

That is math right there. :slight_smile:

Yes Trigonometry.

@Jeremy good jab someone is pushing you to the right Direction? :stuck_out_tongue:

Looking great! I don’t know about you but I feel like going for a swim now :stuck_out_tongue:

Thanks everyone. I am currently building in static switch parameters for each parameter (Time Consuming :frowning: ). I am also building a blend system. You can use the one I am creating, (Or define your own) ocean stages.
It works like this:

  • Shader mode “Located In Material Instance” = Ocean System or Manual Mode

    • Ocean System - Uses 2 sets of data preset in the master shader to blend from small choppy waves to hurricane swells. (All controlled by simply changing one parameter) (Easiest)
    • Manual Mode - Exposes all parameters for complete control (Hardest)

This shader allows for multiple Master Shaders to be created
It works like this:
The demo Master Shader I am creating is geared towards storms. Both the Ocean System Data Sets and Manual Parameters have been set in the Master Shader to act as a “Storm Shader”
Simply duplicate the Master Shader, and input data for whatever ocean system you want. Then create material instances off of that new shader. This will allow you to have multiple ocean system (Master Shaders)
For Example:

  • Storm System (Master Shader + MICs) --“MICs” = Material Instance Constant*
  • Calm System (Master Shader + MICs)
  • Shallow Water System (Master Shader + MICs)
  • Deep Calm Water System (Master Shader + MICs)

And Much More :slight_smile: