[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] shaking images]



On Wed, 2006-01-04 at 18:08 +0100, michael gross wrote:
> ok well try for example the fallowing code. I think that the shaking of
> the image is because of the interpolation. probabely some kind of
> filter is needed. i tried the same thing in falsh. with the filters
> enabled it looked much smoother. attached is the image for the code.

Even though you have floating point positions for your object, SDL and
Pygame use integer coordinates for all blits and drawing. The shaking
you are seeing is caused by the 'stepping' of the integer positions.

Flash does filtering on its renderer so you can do subpixel positioning
of objects.