Temporary workaround for rendering bug for stable 1.0

Why not just automatically export CIF’s and RES’s to xyz and than open xyz? No problems with rendering will occur

On Jun 21, 2009, at 9:25 AM, Konstantin Tokarev wrote:

Why not just automatically export CIF’s and RES’s to xyz and than
open xyz? No problems with rendering will occur

You would then lose the whole point of CIF and RES – the unit cell.

If there’s a deep rendering issue like this, it’s very important to
fix it. It seems like the labels are corrupting the depth-buffer.

That’s my $0.02,
-Geoff

2009/6/21 Geoffrey Hutchison geoff.hutchison@gmail.com

If there’s a deep rendering issue like this, it’s very important to
fix it. It seems like the labels are corrupting the depth-buffer.

That would be my fault.

A quick look at textrenderer_p.cpp shows a single
glDepthMask(GL_FALSE); call that isn’t matched by another call with
GL_TRUE. This is supposed to be handled instead by a glPushAttrib /
glPopAttrib, but maybe this doesn’t cover glDepthMask…

Just giving you ideas of where to start investigating…

Cheers,
Benoit

On Jun 21, 2009, at 8:56 PM, Benoit Jacob wrote:

This is supposed to be handled instead by a glPushAttrib /
glPopAttrib, but maybe this doesn’t cover glDepthMask…

Yes, that seems to have fixed the bug. I think we have to be careful
about assuming too much from OpenGL implementations.

Thanks!
-Geoff