Note that there are some explanatory texts on larger screens.

plurals
  1. POpyopengl framebuffer
    primarykey
    data
    text
    <p>I'm trying to work with framebuffer objects in PyOpenGL and have found some tutorials to teach myself. I'm working on a WinXP machine with Python 2.7.3 and I just installed the binary distributions of PyOpenGL 3.0.2 and PyOpenGL-accelerate 3.0.2. However, directly at the beginning I encounter a problem, in the sense that I get the error message that the fbo functions don't seem to exist. These are the steps to recreate my problem:</p> <p>Importing the modules:</p> <pre><code>from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GL.framebufferobjects import * </code></pre> <p>I now should have the framebuffer objects/functions available to me.</p> <pre><code>print glGenFramebuffers print glBindFramebuffer </code></pre> <p>shows </p> <pre><code>&lt;OpenGL.extensions.glGenFramebuffers object at 0x03172260&gt; &lt;OpenGL.extensions.glBindFramebuffer object at 0x03172120&gt; </code></pre> <p>However, if I try to call (make an instance) of this object, as specified in the tutorial, with:</p> <pre><code>fbo = glGenFramebuffers(1) glBindFramebuffer(GL_FRAMEBUFFER, fbo ) </code></pre> <p>I get the error:</p> <pre><code>Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "latebind.pyx", line 31, in OpenGL_accelerate.latebind.LateBind.__call__ (src\latebind.c:645) File "C:\Python27\lib\site-packages\OpenGL\extensions.py", line 189, in finalise self.__name__, OpenGL.error.NullFunctionError: Attempt to call an undefined alternate function (glGenFramebuffers, glGenFramebuffersEXT), check for bool(glGenFramebuffers) before calling </code></pre> <p>using</p> <pre><code>bool(glGenFramebuffers) </code></pre> <p>indeed returns False.</p> <p>What am I doing wrong? Shouldn't all the required framebuffer libraries be installed with the binaries of PyOpenGL(-accelerate)?</p> <p>Thanks in advance to anyone who can help me.</p> <p>EDIT: I just found <a href="https://stackoverflow.com/questions/12953134/problems-with-frame-buffer-objects-fbos-in-pyopengl">https://stackoverflow.com/questions/12953134/problems-with-frame-buffer-objects-fbos-in-pyopengl</a>, with a similar problem, but no solution</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload