Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I recently got my Pi and thought to give OpenGL another try. So I searched around for OpenGL Python modules as this would be my first choice as language. Although I'm aware that there are differences between the basic OpenGL and OpenGL ES I tried PyOpenGL without any luck. Then I found pyopengles but as I am very new to OpenGL I was overwhelmed by the complexity of the examples.

My question is, is pyopengles the standard way to go if I want to use OpenGL ES from within Python or are there any other modules and where can I find a step by step tutorial for the proposed module(s)?

PS: I was not able to create a new Tag "opengles", maybe that would be helpfull for others, too?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

pyopengles is probably the best choice for the moment, it's certainly not very mature yet, but is quite functional. It would be nice to see some of it wrapped in a more OO fashion, but it's good for learning the raw mechanics of opengl es if that's what you're interested in.

I found this page very helpful when I was trying to get to grips with pyopengles on my pi -

http://db-in.com/blog/2011/01/all-about-opengl-es-2-x-part-13/

Once you understand the opengles state machine concept it becomes a bit easier, the problem is that raw opengles is very dissimilar to the 'pythonic' way of programming. As I said, I'm looking forward to a more OO wrapper around opengles on the pi myself.

share|improve this answer
    
I was JUST linking that! –  Neurofluxation Feb 6 '13 at 9:57
    
Thanks, looks like you found what I was looking for! –  pwagner Feb 6 '13 at 19:33
add comment

Try this ctypes implementation of OpenGL ES.

https://github.com/stephanh42/rpigl

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.