Strange anomaly

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By andriyndev

I tried to get started with the Godot Engine by making a simple game according to the following tutorial:

When I finished the game, everything worked fine, except for the following anomaly:
https://youtu.be/ubB0bKYbZPk (trees are flickering)
When we rotate the scene in the editor, we can see the same anomaly:
https://youtu.be/88DKxiOwoDo
Link to the result project:
TestProjectGodot.zip - Google Drive
Laptop model: Acer Aspire E15 E5-575-33BM (https://www.acer.com/datasheets/2016/4876/E5-575/NX.GG5AA.005.html).

PS: Please use more descriptive titles for questions in the future. “Strange anomaly” makes it pretty much impossible for people to find this question in search engines.

You can edit the question’s title using the Edit button below the question text.

Calinou | 2021-05-17 14:58

:bust_in_silhouette: Reply From: Calinou

This is because you are using alpha blended materials, which are notoriously difficult to sort. This is explained in the 3D rendering limitations documentation.

Switch to alpha tested materials instead by enabling Alpha Scissor in the leaves material. This will prevent translucency from showing up, but it’s the only way to fully solve transparency sorting issues. Alternatively, if you’re using the GLES3 renderer, you can enable Opaque Prepass, but this has a cost and may not always work as expected.