Re: [PyOpenGL-Users] Creating a postscript image of a scene : how do I use openglutil ?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2003-05-19 16:42:45
|
openglutil was a PyOpenGL 1.x-specific add-on module that was dropped for the 2.x series because the functionality could all be written in Python (this allowed us to eliminate the libpng and libjpeg dependencies of the 1.x series) and result in more flexible and robust code. You can see samples of saving images linked off the glReadPixels manual page here: http://pyopengl.sourceforge.net/documentation/manual/glReadPixels.3G.html AFAIK all of those save to png or jpeg, but PIL does (apparently) support writting EPS from an image, so it should work fine. HTH, Mike Champ Hippy wrote: >Hello, > >I need to create PostScript image of a scene created with PyOpenGL. I >have seen that "openglutil" should provide the required >functionnalities such as "openglutil.glSaveEPS('teapot.eps', 240, >240)". However my installation does not seem to recognize "openglutil" >and I get the error message : "NameError: global name 'openglutil' is >not defined" when I run the following program (lising #3 of article >http://www.linuxjournal.com/article.php?sid=4830): > > ... _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |