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

Importing pywavefront.visualisation raises NameError #144

Open
bmoverleysmith opened this issue Nov 21, 2022 · 1 comment
Open

Importing pywavefront.visualisation raises NameError #144

bmoverleysmith opened this issue Nov 21, 2022 · 1 comment

Comments

@bmoverleysmith
Copy link

When trying to import the visualisation module, the following error occurs:

'V3F': GL_V3F,

NameError: name 'GL_V3F' is not defined

This seems to be due to the lack of correct import from pyglet. As it stands it means that the current example on the readme page does not work. Have I missed something, or is this an issue with a new version of pylet?

Thanks :)

@einarf
Copy link
Member

einarf commented Nov 21, 2022

ah right. It only works with pyglet 1.5.x. Probably need to make a version for pyglet 2.

Pyglet 2 is using OpenGL 3.3 core and have deprecated all fixed pipeline stuff. Basically 80%+ of old stuff is ripped out and you are left with buffers, textures and shaders.

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

2 participants