Re: Using framebuffers
Ian Mallett <[email protected]> Fri, 27 May 2016 17:44:54 -0700
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAG4NV=us984b3MEOOJ4Nb1nEBu6eL8c5X5ipRBhb50Zq=wT_vg@mail.gmail.com> |
--===============9142499196657775501== Content-Type: multipart/alternative; boundary=001a11415d60d007d30533dc5511 --001a11415d60d007d30533dc5511 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, May 27, 2016 at 5:35 PM, U=C4=9Fur G=C3=BCney <[email protected]>= 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. > =E2=80=8BAs another reference, you may like to consider some of my code. Fo= r example, I wrote a Game of Life simulator <http://geometrian.com/programming/projects/index.php?project=3DGame%20of%2= 0Life> 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=E2=80=8B --001a11415d60d007d30533dc5511 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra">On Fri, May 27, 2016 at 5:35 PM= , U=C4=9Fur G=C3=BCney <span dir=3D"ltr"><<a href=3D"mailto:ugurguney@gm= ail.com" target=3D"_blank">[email protected]</a>></span> wrote:<br><di= v class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0= 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">I a= m a beginner who studies OpenGL using PyOpenGL. I want to learn post-proces= sing 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.<div>= <br></div><div>The python code I am running is this:=C2=A0<a href=3D"https:= //gist.github.com/vug/2c7953d5fdf750c727af249ded3e9018" target=3D"_blank">h= ttps://gist.github.com/vug/2c7953d5fdf750c727af249ded3e9018</a> I combined = parts from several tutorials I found on the internet.</div></div></blockquo= te><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0= .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>I = appreciate if anyone can direct me on how to render on an offscreen framebu= ffer via PyOpenGL.<br></div></div></blockquote><div><br><div class=3D"gmail= _default" style=3D"font-family:times new roman,serif;display:inline">=E2=80= =8BAs another reference, you may like to consider some of my code. For exam= ple, I wrote <a href=3D"http://geometrian.com/programming/projects/index.ph= p?project=3DGame%20of%20Life">a Game of Life simulator</a> that uses FBOs (= it actually uses two IIRC; feedback requires ping-ponging). The code is wel= l-abstracted and reasonably well-tested, so it should serve as a good examp= le.<br><br></div><div class=3D"gmail_default" style=3D"font-family:times ne= w roman,serif;display:inline">Ian=E2=80=8B</div></div></div></div></div> --001a11415d60d007d30533dc5511-- --===============9142499196657775501== 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 --===============9142499196657775501== 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 --===============9142499196657775501==--