Thread: [PyOpenGL-Users] oriented object programming & PyOpenGL
Brought to you by:
mcfletch
From: Eric G. <eri...@ep...> - 2007-09-27 13:58:10
|
Hello, On the web one can find example about making a sphere. But I've not found yet an example which use the notion of class. Is it possible to use oriented object programming with PyOpenGL (or OpenGL)? If yes, I'm looking for an example which display spheres and cylinders. I'm planned to display molecules .... Thanks in advance, Eric. -- / "Love, Gift from Life, is given naturally." / Eric Germaneau <http://lcr.epfl.ch/page37437.html> Ecole polytechnique fédérale de Lausanne (EPFL) FSB - IPMC Laboratoire de Cristallographie(LCr) <http://lcr.epfl.ch> BSP 518 CH-1015 Lausanne Switzerland eri...@ep... <mailto:eri...@ep...> /Tel./: +41 (0)21 / 693 06 36 /Fax./: +41 (0)21 / 693 05 04 /msn/: ai...@ho... /skype/: aihaike /Please consider the environment before printing this email - Considérez svp l'environnement avant d'imprimer cet email/ |
From: Mike C. F. <mcf...@vr...> - 2007-09-27 17:28:14
|
Eric Germaneau wrote: > Hello, > > On the web one can find example about making a sphere. > But I've not found yet an example which use the notion of class. > Is it possible to use oriented object programming with PyOpenGL (or > OpenGL)? > If yes, I'm looking for an example which display spheres and > cylinders. I'm planned to display molecules .... > Thanks in advance, Sounds like what you want is a scenegraph engine. There are quite a few of them available in Python, including OpenGLContext (my own). You can find pointers to the one's I'm aware of here: http://www.vrplumber.com/py3d.py?category=retained HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: altern <al...@gm...> - 2007-09-28 07:34:27
|
hi eric as you notice opengl does not include itself the idea of classes, it is based on the concept of "state machine". But you can create your own classes that wrap the opengl commands. However as mike points there is a lot of work done on top of opengl. enrike Mike C. Fletcher(e)k dio: > Eric Germaneau wrote: >> Hello, >> >> On the web one can find example about making a sphere. >> But I've not found yet an example which use the notion of class. >> Is it possible to use oriented object programming with PyOpenGL (or >> OpenGL)? >> If yes, I'm looking for an example which display spheres and >> cylinders. I'm planned to display molecules .... >> Thanks in advance, > Sounds like what you want is a scenegraph engine. There are quite a few > of them available in Python, including OpenGLContext (my own). You can > find pointers to the one's I'm aware of here: > > http://www.vrplumber.com/py3d.py?category=retained > > HTH, > Mike > |