Hello everyone. I finished a simple game using Pyglet and I decided to
test it on some other machines. The results were quite surprising: the
game ran differently on all 4 test machines.
1. The game runs perfectly both on my Linux laptop and desktop.
Everything works just as I expected.
2. On the same desktop but under Windows 7 there is a strange bug.
When I use pyglet.graphics.draw() to draw primitives directly every
image which is drawn by blit() method gets tinted by the color used
when drawing a primitive. Sprites don't get affected.
For example, what I expect:
http://i.imgur.com/Is5ks.png
...and what I see:
http://i.imgur.com/Zuwky.png
3. Another Windows 7 desktop shows another bug: not a single sprite is
drawn on the screen. The images which are drawn with blit() method
just work well but everything that relies on batch drawing is not
being drawn at all (incl. sprites and text labels). It seems like this
issue is already reported but the reason isn't found yet. There are
several related bugs in the tracker, here is one of them:
http://code.google.com/p/pyglet/issues/detail?id=544
4. The 3rd desktop running Windows XP reveals one more problem. Images
drawn with blit() sometimes flicker as if they are not blitted at some
frames. I'm not sure but it seems to happen when performing operations
such as adding/moving sprites between batches. To be honest I didn't
quite understand the true reason.
I don't know if these are purely Pyglet bugs or hardware/driver flaws
so it would be nice if someone eventually found the sources of these
problems. Does anybody have any ideas about what causes these issues?
Maybe someone faced these too?
Also you can grab the mentioned game here:
https://bitbucket.org/pevzi/pullout
Here is how it must look like:
http://i.imgur.com/cpa5l.png