Re: [PyOpenGL-Users] Problem with glDepthMask
Brought to you by:
mcfletch
From: Ian M. <ia...@ge...> - 2016-01-20 17:50:26
|
On Wed, Jan 20, 2016 at 12:13 AM, Nicolas P. Rougier < Nic...@in...> wrote: > 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 This is a nice example. > 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 having trouble running the sample, since "glut.glutInit()" fails: Traceback (most recent call last): File "C:\Users\Ian Mallett\Desktop\glut-cube.py", line 127, in <module> glut.glutInit() File "C:\dev\Python33\lib\site-packages\OpenGL\GLUT\special.py", line 326, in glutInit _base_glutInit( ctypes.byref(count), holder ) TypeError: 'NoneType' object is not callable Mike, it was Python 3.3.0, PyOpenGL 3.1.0b2. However, the code looks fine otherwise to me. Perhaps, can you clarify what "the display is totally screwed" means? Ian |