Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent cube surface, it is a bug? #47

Open
Nanguage opened this issue Apr 16, 2020 · 3 comments
Open

Transparent cube surface, it is a bug? #47

Nanguage opened this issue Apr 16, 2020 · 3 comments

Comments

@Nanguage
Copy link

Hi,
I'm a newbie of OpenGL and glumpy. When I try to run the code in chapter5, such as outlined-cube.py and textured-cube.py, I found that my cube looks like different to the images in the tutorial. It looks like has transparent surface. I do n’t know what went wrong

Here is my screenshot gif:
ezgif-6-53614f765a5c

My environment:

Windows10 WSL Ubuntu 16.04
Display with Xming X11

Python: 3.7.6
glumpy: 1.0.6
pyopengl: 3.1.5
triangle: 20200404
@rougier
Copy link
Owner

rougier commented Apr 16, 2020

Nice animation :) Your probably did not activate the depth test that is necessary in this case.

@Nanguage
Copy link
Author

Thnaks for your response. I noticed that there is gl.glEnable(gl.GL_DEPTH_TEST) in the module textured-cube.py. I mean I have never changed its code. Is there something else I can do to activate it or debug it?

@rougier
Copy link
Owner

rougier commented Apr 22, 2020

Hum, weird. Can you try to run some of the glumpy examples to check if they're working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants