Water refraction is missing at shallow angles

Hey Devs!

So, I made a ■■■■■■ water render, and it looks alright, expect when looking at it from shallow angles. Anyone knows how to fix this? Or if there is a library with transparent water I can use, that’d be awesome.

Uassets: Dropbox - WaterStuff.rar - Simplify your life

Picture:

http://puu.sh/apwVk/6f1bb85c31.jpg

Thanks!

i got same problem.

Cool, maybe now someone can help us :frowning: I placed this project on hold.

It might be a side effect of the fact that refraction in Unreal 4 is handles using a post process effect. So it might be a side effect of that. Maybe someone from Epic could clarify on why this would be happening, or maybe it is an actual bug.

For now you could use a custom distortion, which is easy to implement:

It is basically the same way most engines do it, accompanied by the standard side effect that everything in front of the water is also part of the distortion. This is because we use the currently rendered scene as a distortion texture. This is a very basic implementation, you could always improve it.

Note: opacity is not used anymore, even though the shader is transparent. The opacity is tweaked by the way you blend the scene color with your base color.

That’s cool. Any chance you could share that water material to me?

I don’t have it on the computer I’m currently working on, but it is basically your shader with the above nodes inside the “Custom Distortion” box added exactly the way show in the picture.

Are you a Wizard?
http://puu.sh/b9cI7/a8dba155ae.jpg

According to this definition, I’m not:

Cool stuff btw, keep it up!

Hi there, I’ve only just come across this as UE’s refraction is driving me crazy! I just can’t seem to get it to work how I like. But the screenshots you showed look exactly like what I’m trying to achieve :slight_smile: However, I’m a bit confused as to what it is I need to plug into the component mask.

Any help is much appreciated :slight_smile:

I don’t have that project with me anymore. But you plug in the color of the water from what I can tell. You can check out Epic’s water stuff and get some water examples from there.

OK, I’ll see what I can come up with, thanks :slight_smile:

would you please tell me what is there?