[PyOpenGL-Users] Using framebuffers
Brought to you by:
mcfletch
From: Uğur G. <ugu...@gm...> - 2016-05-28 00:36:00
|
Dear Pyopengl users, I am a beginner who studies OpenGL using PyOpenGL. I want to learn post-processing effects and as the first step I want to be able to render a scene into a FBO and then render that FBO on a quad that cover the whole screen. The python code I am running is this: https://gist.github.com/vug/2c7953d5fdf750c727af249ded3e9018 I combined parts from several tutorials I found on the internet. I suspect that nothing is written to the texture of FBO. Sometimes I have a solid black window, and sometimes there are random noise at some parts of the window (probably this happens when texture buffer is not filled with zeros). I am using Python 3.5.0 numpy==1.11.0 PyOpenGL==3.1.0 PyOpenGL-accelerate==3.1.0 I appreciate if anyone can direct me on how to render on an offscreen framebuffer via PyOpenGL. Regards, ugur |