[Community Project] WIP Weather & Water Shader

Ooh I saw something directly related to that TK I think I even bookmarked it. I’ll see if I can find it in my 200+ bookmark “UE4” folder. Think it was something that I came across when I was looking into the best way to create a bridge (the part of the submarine lookouts stand on when surfaced on the top of the sail (superstructure) a player can walk on and inherit the boats rotation at all times since we are technically not possessing our ships as a “character”, we will be controlling both at once most of the time. I’ll see if I can remember the thread/answerhub link I had tomorrow morning.

In regards the CoM deal basically if I take a BP that prints its COM no mater where I place it it will always be at 0,0,0. In the air falling down. Static anwhere in the level. Underwater. Anywhere and the CoM = 0,0,0.

The second I add the buoyancy component it tells me the CoM is exactly the distance from its pivot point (0,0,0 in its local space) to the world origin (0,0,0 in world space) so it tells me the CoM has gone to -3000,1500,750 if I place the on the water 3000 units +x, -1500 Y and -750 Z. Strange is all. It hasnt caused any bugs yet, it just seems strange and I couldnt see anything in the code that would make that happen once the buoyancyComponent is added.

Another thing I was wondering. I was thinking of ways to use the GetWaveHeightValue function that is exposed to blueprints as a simpler depth checker among fancier ideas like faking bow waves and wakes and kelvin wake waves. What exactly does node return?

I assumed it to be the height of the mesh directly above whatever is referencing oceanmanger (so whereever the root component lies) on the frame its called but when I add it into my eventTick() loop with its target being OceanManager which its target is Buoyancy component then I set its location vector input as my meshes GetWorldLocation then I print its return vector in its individual X,Y & Z using a macro. When I dive my ship, or floating on the surface it reads 0,0,0. Could that be because I’ve got it to dead calm seas right now and thus no waveheight, or is node just not useful in its current state?

Heres how I was using it (link cause its 1080p res) http://i.imgur.com/rlf2WDX.png