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"

Translucent material shading problem

Hello everybody! I have a bit of a problem with a translucent material. Is there a way to make a translucent material with 1.0 translucency properly lit?

Here's my current translucent material:

alt text

And here's a material I would like it to look like.

alt text

I still need the translucency for fading the material(with a changing parameter). Is it possible to do this with a translucent material or do I have to use a masked material with a changing parameter( I haven't gotten it to work though)?

Product Version: Not Selected
Tags:
problemmaterial.png (132.7 kB)
material.png (107.9 kB)
more ▼

asked Mar 17 '15 at 11:45 AM in Rendering

avatar image

EliasPa
89 22 22 23

avatar image EliasPa Mar 17 '15 at 08:15 PM

I changed the translucency lighting mode to make it a bit better but it still isn't a full fix.

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

2 answers: sort voted first

You need per-pixel lit translucency, which is currently a super super alpha feature that doesn't support a lot of stuff and is really buggy. I last found it in Epic's latest build around late February (it still exists, but I don't know which build it's in now). If you were to grab their latest build off github, you'd find it in the material editor under TRANSLUCENCY. The dropdown menu (which in 4.7 has the TLM Volumetric Non Directional/TLM Volumetric Directional/ TLM Surface) would have this like per pixel lighting selection.

It's what you need, but I think you'll be sorely disappointed with it.

-Chris

more ▼

answered Apr 11 '15 at 12:22 AM

avatar image

chorne
36 2 4 9

avatar image EliasPa Apr 13 '15 at 07:37 PM

Okay thanks! I guess ill just have to wait for that then:P

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

Try changing the blend mode to masked, and the Shading Model to Subsurface. Then give the opacity a value of 1 (or 1.1 to make sure its 100% not translucent)

A thing to take note of is that even in translucent shading, when the opacity value is set to 1, it is still slightly translucent. This is because a translucent object in the real world can not be opaque.

To do the "Fading" effect there are two ways:

1) This is a cheap looking, but really easy to understand. First create a simple Gaussian of your desired blur For example:

alt text

Then plug it into the opacity mask (and/or Opacity, it changes the effect slightly)

2) This one is a little odd, but works, First open up your material, then add a Fresnal under the Utility. Plug the Gaussian into the ExponentIn. Then plug the whole thing into the alpha of a Lerp. Plug your favored Scaler Params into A and B. Then plug the Lerp Output, into the opacity.

Now for the Colors. Plug two colors into a lerp (A and B). Then plug the Fresnal Output into the Alpha. Then finish off and plug them into The base color.

Here is an example of #1

alt text

Here is an example of #2

alt text

And Here is an example of Both on a tiled plane

alt text

circle gausian.png (46.3 kB)
glass 1.png (391.5 kB)
glass02.png (395.6 kB)
glasstut.png (431.4 kB)
more ▼

answered Mar 22 '15 at 05:46 AM

avatar image

Haflurgaflur
187 8 59 23

avatar image EliasPa Mar 23 '15 at 10:50 AM

Thanks for answering! Actually by fading i meant fading the object invisible over time. And i have gotten this to work with the translucent dynamic material by controlling the opacity parameter in blueprints with a timeline that takes it from 1 to 0 over time. However i do experience the lighting issue. And i tried doing almost the same thing with a masked texture by lerping but it seems to only render it fully invisible or fully opaque(by changing the alpha). So do you happen to know anything about that?:D

avatar image Haflurgaflur Mar 24 '15 at 05:44 AM

alt text

Try Playing with the Translucency Lighting settings. (If you haven't already...) Then adjust the Spec and Rough areas along with your opacity.

This probably won't help, but I usually add a subtle normal map, and multiply (By use of a TexCoord) it by....like....12....

glass3.png (56.1 kB)
avatar image EliasPa Mar 24 '15 at 08:10 PM

Playing with the settings doesn't seem to do much but i guess it really isn't possible to get it shaded exactly like the opaque material:P thanks!

(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