[PyOpenGL-Users] orthographic projection error
Brought to you by:
mcfletch
From: altern <al...@gm...> - 2006-12-13 18:05:07
|
hi i am using glOrtho to create a 2D projection where I map the opengl units to pixels. The problem comes when running the same example in different systems and machines I get one pixel difference between systems. The example draws a one pixel wide box in the borders of the window. In none of the sytems I tried so far the box was totally visible. There is always one or two sides missing just by one pixel. I guess this has to do with the way graphics cards decide to render the opengl units into pixels in the screen. I tested on same Debian in two different machines and i get different results. Also I guess there is no much i can do about this. But maybe I am missing something. I setup glOrtho like this glOrtho(0, 800, 600, 0, 1, 0) I am using pygame to open the window. thanks enrike |