Re: [PyOpenGL-Users] Problem with glDepthMask
Brought to you by:
mcfletch
From: Nicolas P. R. <Nic...@in...> - 2016-01-20 18:01:18
|
glDepthMask(0) is supposed to prevent writing to the depth buffer (but reading is ok) Usually it is 1 by default (writing enabled) but what I don't get is that simply setting it off then on leads to weird results (while it should be no different than default). I'm probably missing something obvious. Thanks for testing. Nicolas > On 20 Jan 2016, at 18:57, Chris Barker <chr...@no...> wrote: > > I can't offer any suggestions, but the display goes to heck for me, too. > > python 2.7.11 > OpenGL.__version__: '3.1.1a1' > > OS-X 10.10 > > MacBook Pro 2015 > > What is glDepthMask supposed to do? > > -Chris > > > > On Tue, Jan 19, 2016 at 11:13 PM, Nicolas P. Rougier <Nic...@in...> wrote: > > Hi all, > > > I'm having a problem using the glDepthMask() function. I've made a simple example to show the problem: > > https://gist.github.com/rougier/188c4771dab1694a074e > > > With the glDepthMask(True) / glDepthMask(False) commented out, the display is fine. But with them, the display is totally screwed. I would like to know if you get the same output or if this is only on my machine ? > > I'm using python 3.5.1 and PyOpenGL 3.1.0. If anybody has an explanation... > > > > Nicolas > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > > > -- > > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... |