Try enabling depth testing.

On Fri, Feb 10, 2012 at 11:38 AM, Gabriele Lanaro <[email protected]
> wrote:

> Hi! I'm trying to write a molecular viewer with pyglet. I've already
> developed a prototype with GLUT, which is working fine. I've ported the
> same code on pyglet but the result is that I have hidden surface removal
> issues. See the picture to understand what I mean. The cylinder should be
> displayed as they were inside of the sphere. As an additional information,
> if I try with the  wxpython opengl context I have the exact same problem.
>
> The initialization code (the drawing take place in a subclass) is in this
> pastebin: http://pastebin.com/E5dwYke7
>
> Did you ever had a problem with hidden surface removal? How to make it
> work correctly?
>
>
> <https://lh3.googleusercontent.com/-8ECXJnWe7qY/TzVGmBnpmRI/AAAAAAAACj8/43CHtxkn8PM/s1600/Screenshot%2520at%25202012-02-10%252017%253A30%253A53.png>
>
-- 
Tristam MacDonald
System Administrator, Suffolk University Math & CS Department
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to