godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.13k stars 21.19k forks source link

Grid and Origin not showing on Mesa GLES (Chromebook Linux) #76662

Open IamDeepx opened 1 year ago

IamDeepx commented 1 year ago

Godot version

4.0.2 stable

System information

ASUS Chromebook C202SA, GLES 3.1, Mesa DRI Intel(R) HD Graphics 400

Issue description

When using the compatibility renderer in Godot editor 4 (Mobile version) on chromebook the 3D editors grid and origin lines don't appear. Moving in different view angles work though.

This might help:

Godot Bad Output

Steps to reproduce

  1. Launch Godot editor 4 on Chromebook
  2. Create project using compatibility renderer.

Minimal reproduction project

N/A

Calinou commented 1 year ago

I assume this Chromebook is running Linux, since it uses a Mesa driver?

IamDeepx commented 1 year ago

Yeah

clayjohn commented 1 year ago

Oh joy, this again. We disabled invariant in Godot 3 to workaround a bug in the Mesa drivers 5 years ago I thought we would be safe by now.

~I guess our only option is to do the same as https://github.com/godotengine/godot/commit/9b9fcb1977c2586fcba86405865a10ad81f8d2e6 and remove the invariant line~

Looks like this bug was actually fixed a few years ago https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/84

What version of Linux and Mesa are you using @IamDeepx ? Perhaps you just need to update Mesa to a more recent version

IamDeepx commented 1 year ago

Not sure how to check that. Will this help? Screenshot 2023-05-02 5 02 47 AM Screenshot 2023-05-02 5 06 48 AM

Zireael07 commented 1 year ago

Try running glxinfo -B in the terminal to give us Mesa version.

IamDeepx commented 1 year ago

It says 'Error: unable to open display'

Calinou commented 1 year ago

Perhaps you just need to update Mesa to a more recent version

Kernel 4.19 is quite old, so you're likely running a pretty old Mesa version too. Unfortunately, Android devices rarely have a way to update to a recent kernel due to essential out-of-tree drivers being very common.

clayjohn commented 1 year ago

I am a little confused. In the first post you say that you are running on Linux, but the screenshots show you running Android 9 on your Chromebook.

Are you using an Android app as a terminal emulator?

IamDeepx commented 1 year ago

yeah termux

clayjohn commented 1 year ago

I think that explains why you can't get results from glxinfo. My guess is you need to run a Linux terminal to get proper information about the Mesa drivers.