x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Beach Water Shader with Translucence ?

Hi guys,

I'm currently working on a Beach scene. Basicaly I try to do a realistic shader, but when I use the Translucent mat, it's look reallly crappy :/

My problem is mostly based on the specular/reflection effect. There is no cool shimmer, reflection or what ever. It's look like the translucent fonction kill all the specular stuff :(

I'm just using a blueprint daylight system. So, there is only 1 light (directionnal as a sun).

I found some post about Ocean, but nobody speak about the shore part and this is my problem. I know there is a plugin called "VacOcean" (something like that).

So, my question is: Is there a way to get cool reflection/specular effect on a translucent material ? It's on my side ? Or it's just UE4 can't do it right now ?

I'm working on UE4 4.4.0.

Thanks :)

Product Version: Not Selected
Tags:
more ▼

asked Sep 25 '14 at 10:41 AM in Rendering

avatar image

bobmartien
19 11 11 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Its UE 4 problem water/ ocean / translucent material is a joke. Its totaly ignored by EPIC at this point, with no real estemate on the time line for a next gen implemetation.

Same goes for foliage.

more ▼

answered Sep 25 '14 at 10:51 AM

avatar image

WCode
508 43 44 73

avatar image bobmartien Sep 25 '14 at 11:13 AM

Okay. Thanks. Is there a way to fake a good specular/reflection with this translucent mat if I have a static light ? Or I will have the same problem ?

avatar image Ehamloptiran Sep 25 '14 at 11:28 AM

Its UE 4 problem water/ ocean / translucent material is a joke. Its totaly ignored by EPIC at this point, with no real estemate on the time line for a next gen implemetation.

You need to relax. Epic have spoken about their plans for Ocean/Water support. Translucency in a deferred renderer is tricky business, Implementing a hybrid Forward/Deferred rendering environment that works well is no easy task. There are certainly good ways to fake specularity/reflections/etc to make nice looking water. Just take one look at Hourences Solus project. The water in that is very nice and shows what is currently possible.

avatar image WCode Sep 25 '14 at 11:35 AM

Am relaxed mate :) and yes its possible to some extent. But lets be honest I was expecting stuff like this to be available. When i got UE 4 8 months ago.

Its a"Next Gen" Engine for crying out laoud. :) And as far as i know its beeing "discused" internaly if that don`t send chills down your back i don`t know what will.

In the far future in a galaxy far, far away, is what am hearing form epic on these subjects.

Edit: Its actualy realy noticable the diference in responses/ replys we get on thos subjects. In general Epic is epic at helping out and leting us know whats up.

But some important qustions gets almost completly ignored,

Thats my opinion atleast, you are intiteld to your own. :)

avatar image bobmartien Sep 25 '14 at 12:02 PM

Thanks for the link.

Btw, If I delete this "translucent mat" to work on a "Opaque mat". Can I do a realistic water shader ?

avatar image Hoeloe Sep 27 '14 at 09:52 AM

If you have a static light, you can feed the light direction into the shader directly, as a parameter (the built-in skysphere materials do this). From there, you can do the lighting calculation in the material itself, feeding the specular result to the emissive channel. For simplicity's sake, I recommend trying a Phong specular highlight: http://en.wikipedia.org/wiki/Phong_reflection_model

The equation you need is:

 k(R.V)^a I

Where k is the specular component of the material, R is the direction of a perfectly reflected ray of light (there is a built in function than can help with calculating this from your light direction), V is the camera direction inverted (direction from the surface to the camera), a is the specular power (higher values give a sharper specular result) and I is the light colour multiplied by the light intensity. This gives you the Phong specular component, which should give you reasonable specular highlights for a single light source.

avatar image bobmartien Sep 27 '14 at 01:58 PM

Thanks I will try this and wait EPIC will launch an update.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question