NodeMaterial alpha order problem

Hi

I also some time a go created this ticket:

I think this is not fully sorted and I have a similar problem again. I made a small Playground to demonstrate the issue.

I got this as a result:

But I expect this to look like this:

I got issues with NodeMaterials that use alpha on the FragmentOutput and textures that have alpha channels in NodeMaterials. Cant add the proper options to meshes and materials to make them work together. Always entire mesh is in front of another. Surprisingly I do have a situation with a model that during rotation with the ArcRotateCamera is switching the order of just the alpha transparent meshes. At some angles, the one that is behind is purely above the other.

I tried everything you got in the docs and nothing works for me. Also this magical fix all thing from version 5:

scene.useOrderIndependentTransparency = true;

Can you help me to achieve the desired effect?

Regards
Peter

this is not a NME issue but a general 3d issue.

It is not possible to do what you want :frowning: basically you need to split the mesh going through the ground in 2 to achieve it as they can not be rendered at the same time :slight_smile:

basically aside of techniques like OIT there is no way to have order independent transparency :slight_smile:

1 Like