Ian Mallett wrote:
Perhaps I'm doing something wrong--I get another error when using the
OpenGLContext example:
File C:\dev\Python25\Lib\site-packages\OpenGLContext\arrays.py,
line 2, in module
from vrml.arrays import *
ImportError: No module named vrml.arrays
My intention was be to
Hi Abhinav,
You have found some unexpected behavior in pygame.surfarrray. blit_array
is improperly named. It is a straight copy, not a true blit. And when a
3d array is copied to a 32 bit source alpha surface the per-pixel alpha
is 0. The destination surface is completely transparent. The
Okay, it seems that PyGame games do work with http://gmarcade.com, I
have uploaded someone's pong game:
http://gmarcade.com/game/Pong.html
And it works just fine with Play Game Online. It must have just been
an issue with Kite Story.
So, now that we know PyGames work with my P.G.O., I
I've just filed bug 24 at http://pygame.motherhamster.org/bugzilla/
Pygame-1.9.0a0 (rev. 1668)
numpy 1.0.4
Python 2.5.2
pygame.surfarray.blit_array() raises an exception when a 3d array is
copied to a 24 bit surface.
Test Program:
import pygame
pygame.surfarray.use_arraytype('numpy')
s =
Thanks Lenard. Your solution solves the mystery of image not coming up
during render, but there is small problem with setting the alpha to max
value.
I have 2 image one of which is a jpg and second one a png file. The png file
has transparency in certain regions.
When I use array2d the
Matt Kremer wrote:
So, now that we know PyGames work with my P.G.O., I hope to see some of
you around the community :) It should be a great way to get the word out
about your games and allow people to play them without downloading.
Uh, you do know that downloading using a Java applet (or
Hi Nirav,
Thanks for testing a 64 bit Pygame. I hope I have fixed these transform
module errors in rev 1669.
Lenard
Nirav Patel wrote:
On a Core 2 Duo running Ubuntu Intrepid, with r1667, I'm getting:
In file included from src/scale_mmx.c:33:
src/scale_mmx64.c: In function
3d arrays do not preserve alpha. I was unaware that 2d arrays did. You
can use array_alpha and pixels_alpha to manage the alpha plane separately.
src_array = pygame.surfarray.array3d(src_surface)
src_alpha = pygame.surfarray.array_alpha(src_surface)
.
Quoting Aaron Maupin [EMAIL PROTECTED]:
Matt Kremer wrote:
So, now that we know PyGames work with my P.G.O., I hope to see
some of you around the community :) It should be a great way to get
the word out about your games and allow people to play them
without downloading.
Uh, you do
Aaron Maupin wrote:
Matt Kremer wrote:
So, now that we know PyGames work with my P.G.O., I hope to see some
of you around the community :) It should be a great way to get the
word out about your games and allow people to play them without
downloading.
Uh, you do know that downloading
Quoting Lenard Lindstrom [EMAIL PROTECTED]:
Aaron Maupin wrote:
Matt Kremer wrote:
So, now that we know PyGames work with my P.G.O., I hope to see
some of you around the community :) It should be a great way to
get the word out about your games and allow people to play them
without
Hi Ian,
Ian Mallett wrote:
On 10/20/08, Greg Ewing [EMAIL PROTECTED] wrote:
How exactly do they fail? Do you get an exception?
Well, they certainly don't run right out of the box.
The ARB example seems more complete, but it whines about the ARB
extensions--how it can't find them for
On Wed, Oct 22, 2008 at 1:15 PM, Matt Kremer [EMAIL PROTECTED] wrote:
Okay, it seems that PyGame games do work with http://gmarcade.com, I have
uploaded someone's pong game:
And it works just fine with Play Game Online. It must have just been an
issue with Kite Story.
Thank you for trying
Quoting Nathan Whitehead [EMAIL PROTECTED]:
On Wed, Oct 22, 2008 at 1:15 PM, Matt Kremer
[EMAIL PROTECTED] wrote:
Okay, it seems that PyGame games do work with http://gmarcade.com, I have
uploaded someone's pong game:
And it works just fine with Play Game Online. It must have just been an
Great, works with 1669.
Thanks,
Nirav
On Wed, Oct 22, 2008 at 4:57 PM, Lenard Lindstrom [EMAIL PROTECTED] wrote:
Hi Nirav,
Thanks for testing a 64 bit Pygame. I hope I have fixed these transform
module errors in rev 1669.
Lenard
Nirav Patel wrote:
On a Core 2 Duo running Ubuntu
A user reported that PySpaceWar fails on 64-bit Linux machines if I try
to scale the alpha channel. Here's the code (simplified):
import pygame
import Numeric
image = pygame.image.load('title.png') # has an alpha channel
mask =
Richard and I have been working on setting up a web site
for the Pyggy Awards, and it's very nearly ready to go!
In case you've forgotten, the Pyggy Awards is going to be
a showcase event for games based on a previous PyWeek entry.
If you want to polish one of your PyWeek games and have
That may be a fundamental weakness of the method used, seeing as how
pixels*d doesn't work on 24-bit surfaces. If so, it should definitely
give a better error message and be mentioned in the docs.
-FM
On Wed, Oct 22, 2008 at 3:34 PM, Lenard Lindstrom [EMAIL PROTECTED] wrote:
I've just filed
I may be having this same error. I've got a bug report with that same
error message at one point (and on a 64-bit machine), even though it
works fine on my (32-bit) machine. Could you try printing out
array[:].shape? In my case, I do a sensible slice and somehow end
up with a 0x600 array.
-FM
Greg, the rules on the site
(http://www.cosc.canterbury.ac.nz/greg.ewing/python/pyggy/) seem to
forbid games older than the previous PyWeek. Are there any plans for
a special edition or some such that would allow older PyWeek games?
-FM
On Wed, Oct 22, 2008 at 8:28 PM, Greg Ewing [EMAIL
Ah, I see. I misread what the docs were saying. Carry on.
*quietly goes off to stand in a corner*
-FM
On Wed, Oct 22, 2008 at 9:43 PM, Lenard Lindstrom [EMAIL PROTECTED] wrote:
Hi Charlie,
3d arrays work with 24 and 32 bit surfaces, 2d arrays with 16 and 32 bit
surfaces. So blit_array
Hi,
I get (adding the necessary import ctypes at the top):
AttributeError: function 'glCreateShader' not found
Thanks,
Ian
Lenard Lindstrom wrote:
It is a two dimension array, so I am surprised the single index slice
[:] even works.
Well, a 2d array can be thought of as a 1d array of 1d arrays,
so you're getting an array of all of those 1d arrays, making
another 2d array.
Seems to work that way in Numeric at
Charlie Nolan wrote:
Greg, the rules on the site
(http://www.cosc.canterbury.ac.nz/greg.ewing/python/pyggy/) seem to
forbid games older than the previous PyWeek. Are there any plans for
a special edition or some such that would allow older PyWeek games?
Yes, I'm allowing games from any
On Wed, Oct 22, 2008 at 10:28 PM, Greg Ewing [EMAIL PROTECTED]wrote:
Richard and I have been working on setting up a web site
for the Pyggy Awards, and it's very nearly ready to go!
In case you've forgotten, the Pyggy Awards is going to be
a showcase event for games based on a previous
On Tue, Oct 21, 2008 at 10:15 PM, Ian Mallett [EMAIL PROTECTED] wrote:
Hi,
On Tue, Oct 21, 2008 at 12:28 PM, claudio canepa [EMAIL PROTECTED]wrote:
Searching the pygame site with 'shaders + opengl' got many hits. Can you
point to the specif script(s) in trouble ?
I was referring to these
26 matches
Mail list logo