Re: [PyOpenGL-Users] font rendering problem
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-05-02 17:52:54
|
vwf wrote: ... > Does someone know how to fix it? If there is an entirely new approach, I > would like to know. > Looks like a 90 degree rotation problem, that will cause the image to get those diagonal lines (when width != height). PyOpenGL automatically sets tight packing (non-aligned) so the problem Dirk described shouldn't happen. Try doing a simple rotate on the image before you pass it to PyOpenGL. There are dozens of approaches to rendering text, you are using a version ripped out of OpenGLContext by the look of it. IIRC the Pygame-generated font there needs to do a rotate in order to get to OpenGL-compatible rendering format. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |