Translucency sorting not working at all

Hello, im trying to work with translucent materials in unreal and always stuck with same problem: meshes that are farther from camera renders first.

Here is one static mesh with translucent flowers. No sorting at all within 1 mesh…

Here is grass foliage. Sorting only if you looking from one side… Grass material is translucent twosided foliage.

Is there some setting Im missing for sorting with camera distance or is it really impossible in UE4 now?

Hey Xukapy,

For foliage you will want to use masked materials because what you are seeing is a limitation of translucent materials in general.

When determining the sort order the engine typically uses the object’s bounds and origin. The one that is closer will get drawn on top. This doesn’t work so well when dealing with many translucent parts of the same object. For example like leaves on a tree or grass (since foliage meshes get grouped into clusters).

Cheers,

Ed