Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'GL_FOG' is not defined #159

Open
4nkanpaa opened this issue Nov 30, 2023 · 4 comments
Open

NameError: name 'GL_FOG' is not defined #159

4nkanpaa opened this issue Nov 30, 2023 · 4 comments

Comments

@4nkanpaa
Copy link

No description provided.

@uuk0
Copy link

uuk0 commented Aug 1, 2024

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
Copy link

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
Copy link

uuk0 commented Aug 11, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@uuk0 @sherrygamerz @4nkanpaa and others