Thursday, May 29, 2014

Dynamic Water Wiki

I've added a tutorial to UE4's wiki
https://wiki.unrealengine.com/Render_Target_Lookup

Material driven dynamic physical water

I wanted to be able to have a boat float around water and actually respond to waves so I went ahead and made myself some physical water that is driven by a material.


I did this by generating a heightmap from the ocean material which is then sent to a render target. This render target is passed into a little bit of C++ code that read and stores the values every frame.

The floating objects are covered in test points that read height values from the C++ Heightmap reader. From those heights it then applies a force to the mesh at their locations. If they are underwater the object is pushed up, if they are over water gravity pushes down at that point only. This allows the actors to sway and bob with the water.

Everything except the heightmap reader was done with blueprints.

Level Streaming

Started playing around with Level Streaming and doing it manually without using streaming volumes.

I also posted a tutorial on  UE4's wiki page


Unreal Engine 4

I've decided to retire my engine and move on from XNA for now to try Unreal Engine 4. So far it looks pretty good.