[PyOpenGL-Users] offscreen rendering problem with glInitFramebufferObjectEXT
Brought to you by:
mcfletch
From: Revaz Y. <yve...@ep...> - 2010-01-21 21:10:38
|
Dear List, I would like to use off-screen rendering with PyOpenGL. According to the few informations I found on the web, one method is to use a FrameBufferObject. Unfortunately, when initializing a new FrameBuffer : from OpenGL.GL.EXT.framebuffer_object import * glInitFramebufferObjectEXT() I get : --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /home/revaz/<ipython console> in <module>() /usr/lib/pymodules/python2.6/OpenGL/raw/GL/EXT/framebuffer_object.pyc in glInitFramebufferObjectEXT() 301 302 303 def glInitFramebufferObjectEXT(): 304 '''Return boolean indicating whether this extension is available''' --> 305 return extensions.hasGLExtension( EXTENSION_NAME ) /usr/lib/pymodules/python2.6/OpenGL/extensions.py in hasGLExtension(specifier) 32 print AVAILABLE_GL_EXTENSIONS 33 if not AVAILABLE_GL_EXTENSIONS: ---> 34 AVAILABLE_GL_EXTENSIONS[:] = glGetString( GL_EXTENSIONS ).split() 35 return specifier in AVAILABLE_GL_EXTENSIONS 36 the problem here is that GL_EXTENSIONS is None ! I'm running linux/ubuntu 9.10, python2.6 and PyOpenGL 3.0.1b1 All other suggestions about using off-screen rendering with PyOpenGL are welcome. Cheers, yves -- (o o) --------------------------------------------oOO--(_)--OOo------- Yves Revaz Laboratory of Astrophysics EPFL Observatoire de Sauverny Tel : ++ 41 22 379 24 28 51. Ch. des Maillettes Fax : ++ 41 22 379 22 05 1290 Sauverny e-mail : Yve...@ep... SWITZERLAND Web : http://www.lunix.ch/revaz/ ---------------------------------------------------------------- |