Using framebuffers
Uğur Güney <[email protected]> Fri, 27 May 2016 20:35:34 -0400
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CALr+-4xV8=iQJ6HOozZEAGk9XKysLkbH0qN+wJsW4Rrj0HO9Tg@mail.gmail.com> |
--===============3042423996004696722== Content-Type: multipart/alternative; boundary=089e0116067ab38aeb0533dc34e5 --089e0116067ab38aeb0533dc34e5 Content-Type: text/plain; charset=UTF-8 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 --089e0116067ab38aeb0533dc34e5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Dear Pyopengl users,<div><br></div><div>I am a beginner wh= o studies OpenGL using PyOpenGL. I want to learn post-processing effects an= d 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.</div><div><br></div= ><div>The python code I am running is this:=C2=A0<a href=3D"https://gist.gi= thub.com/vug/2c7953d5fdf750c727af249ded3e9018">https://gist.github.com/vug/= 2c7953d5fdf750c727af249ded3e9018</a> I combined parts from several tutorial= s I found on the internet.</div><div><br></div><div>I suspect that nothing = is written to the texture of FBO. Sometimes I have a solid black window, an= d sometimes there are random noise at some parts of the window (probably th= is happens when texture buffer is not filled with zeros).=C2=A0</div><div><= br></div><div>I am using Python 3.5.0</div><div><div>numpy=3D=3D1.11.0</div= ><div>PyOpenGL=3D=3D3.1.0</div><div>PyOpenGL-accelerate=3D=3D3.1.0</div></d= iv><div><br></div><div>I appreciate if anyone can direct me on how to rende= r on an offscreen framebuffer via PyOpenGL.</div><div><br></div><div>Regard= s,</div><div>ugur</div></div> --089e0116067ab38aeb0533dc34e5-- --===============3042423996004696722== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e --===============3042423996004696722== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users --===============3042423996004696722==--