I was trying out PyGame and when I got to glcube.py to test PyOpenGL after installation, I got "pygame.error: Couldn't find matching GLX visual". I'm guessing this may have something to do with the current 16 bit-plane limitation and that the OPENGL flag defaults to 24 bit-planes. Is there something in OpenGL's configuration where I can adjust the number of bit-planes down to 16? Or, does this have something to do with the RasPi being limited to OpenGL ES?
Running Debian 3.1.9+ from April 13th.
PyGame.error with PyOpenGL - Couldn't find GLX visual
4 posts
- Posts: 19
- Joined: Thu Mar 29, 2012 12:42 am
It"s to do with the pi only having OpenGL ES, I"d wager. JamesH is working on making some sort of PyOpenGLES, but proper PyOpenGL is a whole other story...
note: I may or may not know what I'm talking about...
- Posts: 774
- Joined: Thu Aug 18, 2011 9:21 pm
Thanks. When I first tried it, I had completely forgotten about the ES aspect of the RasPi. Fortunately, I've done a lot of WebGL work as well as ES coding on iOS, so, at least I know how to use ES.
I suppose while I'm twiddling my thumbs waiting for my RasPi to show up (I'm limited to borrowing a friend's board) I'll see if JamesH could use some help on PyOpenGLES from me and 3-D coder friends.
I suppose while I'm twiddling my thumbs waiting for my RasPi to show up (I'm limited to borrowing a friend's board) I'll see if JamesH could use some help on PyOpenGLES from me and 3-D coder friends.
- Posts: 19
- Joined: Thu Mar 29, 2012 12:42 am
Check out https://github.com/peterderivaz/pyopengles
It's far from complete, but the guy doing it is ex-Broadcom and had a lot of input into the BCM2835 hardware and software.
Feel free to give it a test and report issues.
It's far from complete, but the guy doing it is ex-Broadcom and had a lot of input into the BCM2835 hardware and software.
Feel free to give it a test and report issues.
- Moderator
- Posts: 3255
- Joined: Wed Aug 17, 2011 7:41 pm
- Location: Cambridge