+2 votes

I am generating my levels through GDScript by placing cube meshes next to each other. (Can't use GridMap for other reasons which I can explain if needed).

var tile = cube.instance()
tile.global_translate(Vector3(x, 0, z))

They are all on the same Y plane, but different X/Z positions.

Unfortunately, playing through the level using a standard camera, there is flickering on the surfaces of the meshes. Here's a video:


Some screenshots detailing the problem:


These lines usually appear for half a second and then go away, but creates a very jarring visual experience.

How can I fix this? Thanks for your help!

in Engine by (16 points)
edited by

The issue is much more apparent with a DirectionalLight (I cannot reproduce it with no DirectionalLight and only ambient lighting). It appears regardless of whether the meshes are shaded or not.

Issue still occurs on 3.1beta

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.