Re: [PyOpenGL-Users] Depth buffer attachment problem
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2014-02-24 20:52:34
|
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 |