Re: Problem with glDepthMask

Ian Mallett <[email protected]> Wed, 20 Jan 2016 12:30:43 -0700
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAG4NV=tSh2PUQWbuEtToG-hLA9xv3xodqg9ZhddFLkHCGK70NA@mail.gmail.com>
--===============3014664447361231041==
Content-Type: multipart/alternative; boundary=001a11470ed2799a030529c906d6

--001a11470ed2799a030529c906d6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 20, 2016 at 12:02 PM, Nicolas P. Rougier <
[email protected]> wrote:

> Thanks for your question Ian ! While trying to make a screenshot I found
> the answer.
>
> The rotating cube is displayed partially and it comes worse and worse, as
> if the depth buffer was not cleared.
>
> And it is actually the case. I was not aware that the glClear takes the
> depth mask into account
>
=E2=80=8BI see the problem now. Yeah, glClear counts as a change to the dep=
th
buffer, so it should be affected by the depth mask.

Ian=E2=80=8B

--001a11470ed2799a030529c906d6
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:02 P=
M, Nicolas P. Rougier <span dir=3D"ltr">&lt;<a href=3D"mailto:Nicolas.Rougi=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrot=
e:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for =
your question Ian ! While trying to make a screenshot I found the answer.<b=
r>
<br>
The rotating cube is displayed partially and it comes worse and worse, as i=
f the depth buffer was not cleared.<br>
<br>
And it is actually the case. I was not aware that the glClear takes the dep=
th mask into account<span class=3D"HOEnZb"></span><br></blockquote><div><di=
v class=3D"gmail_default" style=3D"font-family:times new roman,serif;displa=
y:inline">=E2=80=8BI see the problem now. Yeah, glClear counts as a change =
to the depth buffer, so it should be affected by the depth mask.<br></div><=
div class=3D"gmail_default" style=3D"font-family:times new roman,serif;disp=
lay:inline"><br></div><div class=3D"gmail_default" style=3D"font-family:tim=
es new roman,serif;display:inline">Ian=E2=80=8B</div>=C2=A0</div></div></di=
v></div>

--001a11470ed2799a030529c906d6--


--===============3014664447361231041==
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
--===============3014664447361231041==
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

--===============3014664447361231041==--