Why material is visible though itself?

Hi, complete noob here. Imported custom model from blender with custom drawn textures. Model is a lowpoly tree with branches made of planes with texture covering both sides. After importing it in UE i had a problem of texture being visible only from one side, but then i found “two sided” checkbox in material settings, and that was solved. But now i can see the planes with this material in front of other planes, and branches that use this same material show up in front of each other like this:
Capture

and here’s how similar angle looked in blender:

What exactly could have gone wrong, and how do i fix it? I don’t want to see my branches through other branches. I use UE 4.27 for more context.

Its a sorting issue, in other words the engine doesn’t know which triangles to draw on top, because translucent materials don’t normally output a per pixel depth. Generally you do not want to use translucent materials stacked on top of each-other. It is extremely bad for performance, and causes this issue. The best option is to not use translucency, but if you absolutely must, here are some options:

1 Like

foliage is best rendered with masked materials. the reason is simply pixel overdraw. if you wanna fuzz up the hard edges you can also use the temporal dithering node in the shader or enable dithered opacity in the material properties.

1 Like

looked up what is masked material and pixel overdraw, and from there figured it out. now it looks right and also has correct shading! also the dither opacity gave it somewhat halftone look on the edges, which is not exactly what i expected, but i think it’ll grow on me as it fits the textures themselves
Capture

thank you!

halftone? well… it’s dithered transparency. similar to the hashed alpha blendmode in blender. in unreal you get rid of of the “noise” just by using taa or tsr. that will only show in realtime preview.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.