Re: [PyOpenGL-Users] Using framebuffers
Brought to you by:
mcfletch
|
From: Ian M. <ia...@ge...> - 2016-05-28 00:45:15
|
On Fri, May 27, 2016 at 5:35 PM, Uğur Güney <ugu...@gm...> wrote: > 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 appreciate if anyone can direct me on how to render on an offscreen > framebuffer via PyOpenGL. > As another reference, you may like to consider some of my code. For example, I wrote a Game of Life simulator <http://geometrian.com/programming/projects/index.php?project=Game%20of%20Life> that uses FBOs (it actually uses two IIRC; feedback requires ping-ponging). The code is well-abstracted and reasonably well-tested, so it should serve as a good example. Ian |