Whoops... Didn't realize there were so many new posts, sorry for the delay everyone! 
Yeah sorry about that, but I don't have a copy of the original code. I use the main structure of it and then add in a couple of Structs to hold variables to allow the individual Gerster waves to be modified more easily from a blueprint, otherwise the basic setup can all be seen in Handkor's video. He doesn't show the .h file but the OceanManager.h in the latest download can be modified to change it back to his original code pretty easily. The OceanManager code will not provide buoyancy on it's own though, you will need to setup a blueprint to handle the calculations. I have a nearly complete version of it in the original download, called BP_OceanManager, but it is not fully working.
At some point in the future I will see about making a blueprint only version. It can be done, but will likely be much slower than the code version. I have managed to get the code working as a plugin now, so hopefully that eliminates the current issues when trying to migrate the content out to another project.
Looking good Avolanty! Let me know if you run into any issues with the buoyancy part. 
Hey there, as far as I know it is not possible to output the calculation from the material. I have instead been looking into possibly calculating the waves in code and passing the end result to the material through a Material Parameter, but the other way around is not currently possible.
Take a look at the BP_OceanManager blueprint from the original download (on the first page of this thread), it has nearly everything needed to do exactly what you are looking for, except it goes going from blueprint to material through a MaterialParameterCollection. I never got this working properly, but it is something I will look into further in the future. If you are able to get it working I would love to hear about it!!
I definitely have seen these videos! I am pretty sure I have seen pretty much all of the UE4 ocean videos out there, I wanted to see how everyone else put it together so I have (and still do) look for them. The method he is using for the shore is a depth fade, which I use as well and could configure it to look very similar, plus removing the current shore foam. This is an area where the material has improved recently, hope to have it out shortly. 
Hey Komodoman,
That looks really cool, I would love to add it to the project!
I am currently working with two separate projects. One is mainly for above the surface with buoyancy, and the other is all of the above plus an underwater area where a character could swim, or go diving etc. So that would fit really well with the second version.
So absolutely it would be great if you can provide it as well! The underwater part is rather boring at the moment... no plant, fish or anything. Just trying to get the look and the physics right currently, but I will need fish!
Thanks for offering! I think that would make a great addition.
EDIT: Have you been able to figure out why everything goes crazy out of water? If this is being caused by this project please let me know if I can help in any way. It looks almost like the turtle is leaving the water and the calculation is stalling, but I can't make out the red error text from the video. Again, let me know if I can help!

Originally posted by Avolanty
View Post
At some point in the future I will see about making a blueprint only version. It can be done, but will likely be much slower than the code version. I have managed to get the code working as a plugin now, so hopefully that eliminates the current issues when trying to migrate the content out to another project.
Originally posted by Avolanty
View Post

Originally posted by extropy
View Post
Take a look at the BP_OceanManager blueprint from the original download (on the first page of this thread), it has nearly everything needed to do exactly what you are looking for, except it goes going from blueprint to material through a MaterialParameterCollection. I never got this working properly, but it is something I will look into further in the future. If you are able to get it working I would love to hear about it!!

Originally posted by eXtreme
View Post

Originally posted by Komodoman
View Post
Originally posted by Komodoman
View Post
That looks really cool, I would love to add it to the project!
I am currently working with two separate projects. One is mainly for above the surface with buoyancy, and the other is all of the above plus an underwater area where a character could swim, or go diving etc. So that would fit really well with the second version.
So absolutely it would be great if you can provide it as well! The underwater part is rather boring at the moment... no plant, fish or anything. Just trying to get the look and the physics right currently, but I will need fish!
Thanks for offering! I think that would make a great addition.

EDIT: Have you been able to figure out why everything goes crazy out of water? If this is being caused by this project please let me know if I can help in any way. It looks almost like the turtle is leaving the water and the calculation is stalling, but I can't make out the red error text from the video. Again, let me know if I can help!
Comment