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

Windows Exception in DisplayOpenGL.py #263

Open
Mettbrot opened this issue Feb 20, 2024 · 3 comments
Open

Windows Exception in DisplayOpenGL.py #263

Mettbrot opened this issue Feb 20, 2024 · 3 comments

Comments

@Mettbrot
Copy link

Mettbrot commented Feb 20, 2024

I am trying to get to run pi3d via picframe on Windows. After installing all dependencies and putting the dll files in the directory, I still get this Exception in DisplayOpenGL.py

grafik

If I change this to catch None I get another error down the road in Texture.py _load_disk() because Display.INSTANCE.opengl.max_texture_size returns 0 which is obviously not correct.

Is there anything I am missing or is this usecase simply not supported on windows?

@paddywwoof
Copy link
Collaborator

Hi @Mettbrot, I've not run pi3d on windows for a while (certainly not on this current laptop) and when I read your posts on the picframe repository I thought I had better check things out.

My feelings are that it would be much simpler to use the SDL2 wrapper on everything apart from the older Raspberry Pis. But, as I say, I haven't tried that yet. I will give it a go now and get back to you with my findings!

Paddy

@paddywwoof
Copy link
Collaborator

Hmm, I've tried to patch a couple of places so it uses SDL2 instead of pygame but I still need the libEGL, libGLESv2 as well as the SDL2 dlls. I then run into the problem with the opengles.glGetString(GL_VERSION) returning null as you did, then the Texture loading not working. I get a display surface popping up for a second so I think the SDL2 side is working but there seems to be something wrong with the OpenGLES library. I will try and figure it out later.

@Mettbrot
Copy link
Author

Thank you for looking into this. Let me know if there is anything I can help you with.

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