Re: [PyOpenGL-Users] Pyopengl same as opengl?
Brought to you by:
mcfletch
From: Christopher A. <chr...@gm...> - 2006-06-12 19:19:41
|
I have used OpenGL in a number of languages (Python, Java, C, and C+=20 +). As Enrike said, PyOpenGL is just a thin layer over C libraries. I =20= found OpenGL to run pretty much at speed in Python. Python itself, =20 however, is quite a bit slower. So, to get the best performance, you =20= want to do as little computation as possible in Python itself. Make =20 heavy use of display lists and libraries like Numeric (or Numpy). It does take a little more thought to get good fps, but on the flip =20 side, Python is a great high level OO language and the support for =20 OpenGL is really quite good. Unlike some libraries (like the ones =20 I've used under Java), PyOpenGL really works almost identically to =20 the way that it does under C (with some nice Pythonic touches). This =20 is really exactly what Python is meant for - giving a nice high level =20= glue interface on top of high performance, low level C libraries. As a side note, I just used PyOpenGL to teach my graphics course this =20= spring and it worked great. My students could put all of their focus =20 on the OpenGL and the Python pretty much got out of the way. On Jun 12, 2006, at 10:57 AM, altern wrote: > hi Tham > > Tham Ting Hoi escribi=F3: >> is pyopengl similar to opengl in its performace? > > Looks like none has answered you about this. I cannot give too much =20= > info > as I have hardly use openGL outside of python. But as far as I > understand pyopengl is pretty fast as it is just a tiny layer of =20 > python > on top of C opengl code, what it is NOT that fast compared to C, is > Python. This means that if you do very simple program your performance > could be ok, but if there is a lot of python code to be executed every > frame then you will find that the frame rate will drop. > > Keep in mind that opengl can be used within many different languages, > each of them offers benefits and drawbacks. > > however, as i said before, i am not an expert at all. > >> thanks for any answer. > > i hope it helps > > best > > -- > enrike > > > > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |