Re: [PyOpenGL-Users] Depth buffer attachment problem
Brought to you by:
mcfletch
From: Nicolas R. <Nic...@in...> - 2014-02-24 21:23:39
|
Thanks, that will be really useful. I'll try to turn your example into a rotating cube and see what happens. And if it works, it'll make a nice addition to pyopengl. Nicolas On 24 Feb 2014, at 21:52, Mike C. Fletcher <mcf...@vr...> wrote: > On 14-02-24 03:40 PM, Nicolas Rougier wrote: > > ... >> I cannot provide a simple example since the example comes from a project (vispy). If anyone have a simple glut based example showing framebuffer rendering (with depth buffer) such as cube rendered on cube, that could help. > > I can check out code for vispy (already have it checked out on multiple > machines). > > I don't have a simple "render a cube" sample, but this code here: > > http://bazaar.launchpad.net/~mcfletch/openglcontext/trunk/view/head:/tests/shadow_2.py > > renders a shadow map (that is, a depth-texture) using FBOs and might > help with what needs to happen to render a scene into an FBO. > > HTH, > Mike > > -- > ________________________________________________ > Mike C. Fletcher > Designer, VR Plumber, Coder > http://www.vrplumber.com > http://blog.vrplumber.com > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |