Re: Problem with glDepthMask
Ian Mallett <[email protected]> Wed, 20 Jan 2016 10:50:05 -0700
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAG4NV=trsGKYoxF7oYftmr6DAoL8FpiYnBGPzWWkYU5bZDf5aQ@mail.gmail.com> |
--===============0205919454886078283== Content-Type: multipart/alternative; boundary=001a11470ed29aca100529c79ed8 --001a11470ed29aca100529c79ed8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jan 20, 2016 at 12:13 AM, Nicolas P. Rougier < [email protected]> 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 =E2=80=8BThis is a nice example. =E2=80=8B > With the glDepthMask(True) / glDepthMask(False) commented out, the displa= y > 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 ? > =E2=80=8BI'm having trouble running the sample, since "glut.glutInit()" fai= ls: 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 --001a11470ed29aca100529c79ed8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra">On Wed, Jan 20, 2016 at 12:13 A= M, Nicolas P. Rougier <span dir=3D"ltr"><<a href=3D"mailto:Nicolas.Rougi= [email protected]" target=3D"_blank">[email protected]</a>></span> wrot= e:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex">I'm having a problem using the glDepthMask() function. I've= made a simple example to show the problem:<br> <br> <a href=3D"https://gist.github.com/rougier/188c4771dab1694a074e" rel=3D"nor= eferrer" target=3D"_blank">https://gist.github.com/rougier/188c4771dab1694a= 074e</a></blockquote><div><div class=3D"gmail_default" style=3D"font-family= :times new roman,serif;display:inline">=E2=80=8BThis is a nice example.<br>= =E2=80=8B</div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margi= n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex= ">With the glDepthMask(True) / glDepthMask(False) commented out, the displa= y is fine. But with them, the display is totally screwed. I would like to k= now if you get the same output or if this is only on my machine ?<br></bloc= kquote><div><div class=3D"gmail_default" style=3D"font-family:times new rom= an,serif">=E2=80=8BI'm having trouble running the sample, since "g= lut.glutInit()" fails:<br><div style=3D"margin-left:40px"><font size= =3D"1"><span style=3D"font-family:monospace,monospace">Traceback (most rece= nt call last):</span><br><span style=3D"font-family:monospace,monospace">= =C2=A0 File "C:\Users\Ian Mallett\Desktop\glut-cube.py", line 127= , in <module></span><br><span style=3D"font-family:monospace,monospac= e">=C2=A0=C2=A0=C2=A0 glut.glutInit()</span><br><span style=3D"font-family:= monospace,monospace">=C2=A0 File "C:\dev\Python33\lib\site-packages\Op= enGL\GLUT\special.py", line 326, in glutInit</span><br><span style=3D"= font-family:monospace,monospace">=C2=A0=C2=A0=C2=A0 _base_glutInit( ctypes.= byref(count), holder )</span><br><span style=3D"font-family:monospace,monos= pace">TypeError: 'NoneType' object is not callable</span></font><br= ></div></div><div class=3D"gmail_default" style=3D"font-family:times new ro= man,serif">Mike, it was Python 3.3.0, PyOpenGL 3.1.0b2.<br><br></div><div c= lass=3D"gmail_default" style=3D"font-family:times new roman,serif">However,= the code looks fine otherwise to me. Perhaps, can you clarify what "t= he display is totally screwed" means?<br><br></div><div class=3D"gmail= _default" style=3D"font-family:times new roman,serif">Ian<br></div></div></= div></div></div> --001a11470ed29aca100529c79ed8-- --===============0205919454886078283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============0205919454886078283== 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 --===============0205919454886078283==--