[pygame] help with opaque images

2008-04-03 Thread Astan Chee
Hi, I have a game Im making using pygame and pyopengl using Ian's SphereCollide ( http://www.pygame.org/project/620/ ) as an example and Im trying to get a 'radar' on the bottom right corner; similar like the one here http://www.pygame.org/projects/20/178/ in the screenshot, except that page

Re: [pygame] help with opaque images

2008-04-03 Thread Ian Mallett
In PyOpenGL, you'll either want to do a call to ortho, or set up another viewport. The viewport is specified from the bottom left corner of the screen (as opposed to the top), so if your screen is 800x600, then glViewport(700,500,100,100) sets up a 100x100 window for you to draw in in the bottom

Re: [pygame] help with opaque images

2008-04-03 Thread Ian Mallett
Here's an example: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=42 you can download the Python source at the bottom.

Re: [pygame] help with opaque images

2008-04-03 Thread Astan Chee
Thanks, Im not sure how more than one viewports work (I couldnt find any examples), so I think Im just going to draw it manually. Like http://vamsikrishna.v.googlepages.com/powerdefender Thanks again. Cheers Astan Ian Mallett wrote: In PyOpenGL, you'll either want to do a call to ortho, or set