It looks like you don't have depth testing on.

Make sure you have a depth buffer bu including a config parameter in the pyglet.window.Window.__init__ call
config=Config(depth_size=24, ...)

AND that depth testing is on:
        glEnable(GL_DEPTH_TEST)




On 02/10/2012 08:38 AM, Gabriele Lanaro 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>


--
You received this message because you are subscribed to the Google Groups "pyglet-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyglet-users/-/z4ZQg1noDR4J.
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.

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