Tuesday, October 25, 2011

Weird Polygon Faces :

When I was translating my polygons in OpenGL , I realize that there is something wrong in my shape. It was due to depth configuration. I solved using :

glEnable(GL_DEPTH_TEST);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

It took 1 day to understand what is the real problem.

No comments:

Python Terminal Animation for Waiting

A nice small tool for terminal animations from yaspin import yaspin with yaspin(): do_stuff()