OpenGL and d3d fog function does not behave correctly on GNU/Linux

Reporter: TheOuterLinux  |  Status: open  |  Last Modified: June 19, 2021, 04:45:52 pm
3>Describe the bug

When using the d3d_set_fog function, it does not behave correctly on a GNU/Linux system.

When using OpenGL 1.1, the ceiling and floors are pitch black if using c_black most of the time except when facing certain directions within a small degree. It does the same thing for c_white except instead of black ceilings and floors, they are white. Making sure to use draw_set_color(c_white) in the player Draw event does not help at all.

When using OpenGL 3.3, it does not render the fog in any way at all.

When using OpenGLES2 or ES3, you get x-ray vision in which not only does it render the wall closest to you but most of the walls on the other side.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Use the d3d_set_fog function on a GNU/Linux system

Expected behavior

Using d3d_set_fog, whether c_black or c_white and regardless of which OpenGL you choose, should render like fog would on a Windows system and not just white-out or black-out the floors and ceilings at almost ever angle you face. No weird x-ray stuff either.

Game files & Screenshots

Video of OpenGL 1.1:

fps2.mp4

Screenshot of what happens with OpenGLES2 and ES3:

OpenGLES2

Game file:

fps2.gmk.zip

ENIGMA Configuration:

  • I am using GNU/Linux
  • I do not have any special graphics cards or proprietary graphics drivers installed
  • All of the available ENIGMA --> API --> Graphics settings were tested
  • Both X11 and SDL were tested

Additional context

I have a feeling this is some weird OpenGL versus Direct nonsense. I have also read somewhere while doing some Internet searches, but cannot remember where, that games created with Game Maker Studio for Android also have similar problems.

Please sign in to post comments, or you can view this issue on GitHub.