Download

bad shading on a transparent material

Hi guys,

I have a problem with shadows on a curtain mesh of transparent material. DirectionalLight is set to static as well as mesh. UV map is spread over the first and second channel. I try to increase light map resolution to 512. Nothing has changed.

Have a look at screenshots.

curtain2.JPG

Here also material details:

e908388e5ebfa9e99effaa863cc5a3a94a145b64.jpeg

I think the mesh is not too havy. It has 10k polys.

What I want is a transparent curtain that cast a shadow.

Does anyone have an idea how to fix those ugly shadows ?

Best regards,
kentozdr

That’s a problem with transparent rendering in any game engine. Proper shading requires sorting the pixels and that leads to a really really poor performance.

I don’t see why you’re using transparent material though. Curtains aren’t transparent in real life. Or is it supposed to be a really thin decorative curtain that are practically see through?

Have you tried checking the “shadow 2 sided” option?

You can also the node “lightmass replace” to use a separate opacity that only lightmass sees.

In real life some curtain material passed little light and it is also little see through (it depends on the material) and I wanted create that effect. But propably I will be forced to give up transparency. Thanks for reply.

I also tried what you write, unfortunately nothing has changed. Maybe I’m doing something wrong because I am not an advanced user, but for now I have to give up of transparency. I will try again in the future to solve this problem. Thank you for your help.

You should look at Subsurface Scattering for curtains. It allows light-passthrough with Stationary and Movable lights. Hope that helps!

I’d suggest that as well. There is also an example of it in the “realistic rendering” scene with the curtain Epic used for the small appartment.