[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] transform fixes



<SlightlyOffTopic>
There's an interesting article in Today's New Scientist about
infinitesimals (numbers closer to zero than any real number can ever be,
but not zero-ugh!)
Anyway it hints at their usage in new algorithms for rotations of images
on pixellated surfaces. Not sure whether anything relevant directly, but
as a read-around...
Peter

wijgerden@hetnet.nl wrote:

> "Pete Shinners" <pete@visionart.com> wrote:
> > i was able to get some fixes for the recently
> > popular, pygame.transform.rotate() function.
>
> Thanks for your efforts, much appreciated. I'm
> looking forward to testing out the changes, time
> permitting.
>
> Good to hear that "off-by-one" cases are much
> reduced. I'm crossing my fingers that rotations
> of 90, 180, and 270 degrees are in the "many
> cases" (my itch :-)
>
> Speaking of which, rotations by 0, 90, 180, and
> 270 (all multiples of 90) degrees are probably
> special cases. And may perhaps be simplified to
> a large extend?
>
> > further improvements to fix transform.rotate
> > will probably not be coming from me. the code
> > is at the limit of this poor pygame maintainers
> > understanding.
>
> One of these days... I might actually have a look
> at the code, maybe compare bits and pieces with
> approaches in SDL_gfx (now includes SDL_rotozoom
> as far as I know) at http://www.ferzkopp.net/Software.html
> and/or the SGE library (claims AA stuff) at
> http://www.etek.chalmers.se/~e8cal1/sge/index.html
>
> > sounds promising that the maintainer of
> > the SDL_rotozoom library will try to fix the
> > code.
>
> Thanks again for your efforts Pete to include any
> such improvements and your work on fixes here
> already.
>
> > i just doublechecked with the transform.flip
> > functions, and they are indeed working the
> > way i expect them to. flip(img, 1, 0) flips
> > the image left-to-right on the x-axis. and
> > flip(img, 0, 1) flips the image top-to-bottom
> > on the y-axis.
>
> Aha, my mistake/misunderstanding. I was thinking
> about a mirror along the axis, but then again
> my English math vocabulary is currently not
> good enough...
>
> With your explanation I stand corrected.
>
> > i also went through the documentation and
> > cleaned up the errors and ambiguities
> > recently spotted :]
>
> Not sure whether I already posted these 2 typos:
> (on http://www.pygame.org/docs/index.html)
>
> This:
> pygame.font.init - initialize the display module
> should read:
> pygame.font.init - initialize the font module
>
> This (really nitpicking here... sorry):
> pygame.version.ver - The current pygame version info
> should read:
> pygame.version.ver - the current pygame version info
>
> Regards,
>
> Frank van Wijgerden
> ____________________________________
> pygame mailing list
> pygame-users@seul.org
> http://pygame.seul.org

--
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

mQGiBDuA04cRBADoAVeSVHfIm2vDtjzO4yAceKRIaWgZ2eLNLTf7RWi94+FflEOq
MhCJ4Y6JRQOUsWuI69njQ2iz6F/QVMMK+UrfDBkAdXoewun8JpcjnwzVG5oo8FlA
zb6Au1pTkh4rMZENUs59YWuurjO93smafh+Odvp2gz0oBQolEld+9sSZcwCg/1EU
IS1ON1TXcvzv1VMF3DWyfBkEAKoHkoRmpHzoJS4r6sbneGfA/qp/m1wyDhn5FPwv
J+/uAg1m8pGkTr7Dg8k8nog+lSUbV4cnUj+K/VluIS+mN3aavQZOgt8/CroTNiRk
b4JQbYio6gt6uW/rwMHmfgMwyIKIjRlQB1Xif6BGhzkxXKsbqWvrUypG0fsg2+Bl
d7nYBADFnYFqnE4EjX/7jKxqZ/Qwmr1buJfsYz3jMKydhX3NAEPBIUvVjnWRXfeQ
KSzG6Fh2kJCdEx3DyVtm3kYUCOHi7jYEBV2fvetJHBfTMYgTqmb2M/CVT/ITapem
B7Ee7Z/NF7Iu3ovs4pbleeUzITdYLmzkJcrI1SMv4b2WhgIvP7QpUGV0ZXIgR29v
ZGUgPHBldGVyLmdvb2RlQG1yZXhjZXNzaXZlLm5ldD6JAFgEEBECABgFAjuA04cI
CwMJCAcCAQoCGQEFGwMAAAAACgkQHKU+heKElMnFUgCeJ/c5o8fTJ1RWt8rgFwe7
GFEEbcAAoIPpvpNq3LtibN/60K59BYPqSBlPuQINBDuA04cQCAD2Qle3CH8IF3Ki
utapQvMF6PlTETlPtvFuuUs4INoBp1ajFOmPQFXz0AfGy0OplK33TGSGSfgMg71l
6RfUodNQ+PVZX9x2Uk89PY3bzpnhV5JZzf24rnRPxfx2vIPFRzBhznzJZv8V+bv9
kV7HAarTW56NoKVyOtQa8L9GAFgr5fSI/VhOSdvNILSd5JEHNmszbDgNRR0PfIiz
HHxbLY7288kjwEPwpVsYjY67VYy4XTjTNP18F1dDox0YbN4zISy1Kv884bEpQBgR
jXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWakXUGfnHy9iUsiGSa6q6Je
w1XpMgs7AAICB/9HKgMIKYR5WyA96n0e36C1y9vKfG7IR7SbSzHe0InTS6W/y8c5
cjkyIcFjiz+f6UblUj8SPzi9pZVwl/cE/YSZ7NscWED4mjTpbt8s6IOaxvvneeZN
GJMbKuNY9BY39+/ynwsqFSkxPQ8oCQUnfHGMjC8nhDFBvnZRU2pHZvyvgH+qecNd
8vDGNGkUFSj8R5jLF2M/jFjvYMjTd3VR3pUuMslslCDnQGNfDPkcB+9sRkoZPpRP
aUt9g5vzMYlZVDSmDTiy8zZ+lhcsq2TbHkwqX4iwow/KB3lsdFgUzbp8V9FlSnuL
X4B04MviS2/+nfxM7TZIYn+uXle3+pfGlF2liQBMBBgRAgAMBQI7gNOHBRsMAAAA
AAoJEBylPoXihJTJSPcAnRPSivOU4RbzkmfvZF7RBycxm5ubAJ96QW1kGhkc13zR
ozfk3rcGqoHeWg==
=fGmQ
-----END PGP PUBLIC KEY BLOCK-----


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org