fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.21k stars 1.23k forks source link

NameError: name 'GL_FOG' is not defined #159

Open 4nkanpaa opened 8 months ago

HarshuboiPlayz commented 2 weeks ago

im getting the same error

uuk0 commented 2 weeks ago

This is caused by the wrong pyglet version; you need pyglet < 2.0, at the moment the latst version < 2.0 is 1.5.29

Pyglet 2.0 was a breaking change, changing to a more modern OpenGL version, which was also breaking, so the whole rendering stuff is not working with pyglet 2.0, including the fog.

sherrygamerz commented 6 days ago

This is caused by the wrong pyglet version; you need pyglet < 2.0, at the moment the latst version < 2.0 is 1.5.29

Pyglet 2.0 was a breaking change, changing to a more modern OpenGL version, which was also breaking, so the whole rendering stuff is not working with pyglet 2.0, including the fog.

how to install then?

uuk0 commented 6 days ago

If you used pip, first uninstall: "\<python command> -m pip uninstall pyglet", and than reinstall the version you want by "\<python command> -m pip install pyglet==1.5.29"