[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] shaking images]
On Wednesday 04 January 2006 16:32, michael gross fired a shotgun at the
keyboard and the following appeared:
> > On Wednesday 04 January 2006 12:31, michael gross fired a shotgun at the
> >
> > One word: PyOpenGL. :)
>
> ok hmm well I am completely new to the subject and I think or better hope
> that the problem of moving an image with some filtering should not be that
> difficult even with opengl. do you know any code which does a similar
> thing?
>
> best michael
OpenGL is based on its own coordinate system, not screen pixels. You specify
movement in OpenGL units, and OpenGL handles making it look right on the
screen (basically). Sub-pixel movements are expressed via a sort of
anti-aliasing (but you don't need to worry about this). So yeah, it's pretty
simple. PyOpenGL itself is fairly easy to pick up. For any real-time
applications, I see no reason to NOT use OpenGL, unless hardware accelerated
graphics are an issue for your intended user base.
http://pyopengl.sourceforge.net/
-Matt Bailey