[PyOpenGL-Users] Fonts & Bitmaps Rendering
Brought to you by:
mcfletch
From: <jf...@me...> - 2006-05-23 23:33:32
|
Hello, First off, I'm new to OpenGL programming :) Second, I'm also using PyGame. I'm having some trouble with the rendering of fonts ... Although the fonts them selves appear on the screen fine, using pygame.font.Render() and glDrawPixels(), two little behaviors seem abnormal: 1) The font/raster rendering seems to happen delayed. I have text next to a vertex (a line), and they are supposed to move "together" ... However, it looks like the text gets rendered with a delay ... the vertex moves, then the text follows, giving a bit of a "jerky" effect. 2) The glDrawPixels() call does not seem to limit the output to the current viewport. As soon as the bottom left corner enters the viewport, the whole surface is rendered, even if part fo the bitmap eventually falls outside it :( I've attached an image, though I don't know if it'll make it through the list manager: Note how the "80" appears. That is outside the view port. Anybody know what's going on here, and how I might go about fixing it? Thanks! J.F. |