adam naples | 4 Aug 2006 00:18
Picon
Favicon

png transparency

HI, this is probably a really stupid question.
but how do I display pngs with transparency information? I am trying to 
display multiple images with some overlapping.
right now all I  get is my image inside of a black rectangle
I'm using this code to load the images

filename = os.path.join("pad.png")
pygame_surface = pygame.image.load(filename)
texture = Texture(pygame_surface)

thanks in advance
-a

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Andrew Straw | 4 Aug 2006 02:12
Picon
Favicon

Re: png transparency

Dear Adam,

I can't remember if alpha works with pygame/SDL, but it definitely works
with the Python Imaging Library and from a Numeric array. See the
alpha_texture.py example.

adam naples wrote:

> HI, this is probably a really stupid question.
> but how do I display pngs with transparency information? I am trying
> to display multiple images with some overlapping.
> right now all I  get is my image inside of a black rectangle
> I'm using this code to load the images
>
> filename = os.path.join("pad.png")
> pygame_surface = pygame.image.load(filename)
> texture = Texture(pygame_surface)
>
>
> thanks in advance
> -a
>
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
(Continue reading)

Andrew Straw | 12 Aug 2006 17:36
Picon
Favicon

Vision Egg Universal Binary instructions for Mac OS X online

Dear Alex,

That's great! Thanks for putting the instructions on the wiki. I'm
forwarding this email to the VE list to spread the word that we now do
Mac Intel.

Thanks!
Andrew

Alex Holcombe wrote:
> hi Andrew
> I successfully installed VisionEgg from source with MacPython 2.4
> Universal  on OSX 10.4!
> I described my fumbling procedure for doing so on the wiki, hopefully
> it will help some people
>
> cheers
> Alex

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Tony Arkles | 14 Aug 2006 23:37
Picon

Quick patch

Hi!

I found a memory leak, and it was my fault :D.  A patch I submitted  
last summer had a bad cap in it.

FlowControl.py, like 225, replace with:

if controller is None:

instead of Controller.

Cheers,

Tony
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Andrew Straw | 15 Aug 2006 01:29
Picon
Favicon

Re: Quick patch

Hi Tony,

Thanks. Fixed in svn 1376.

Tony Arkles wrote:

> Hi!
>
> I found a memory leak, and it was my fault :D.  A patch I submitted 
> last summer had a bad cap in it.
>
> FlowControl.py, like 225, replace with:
>
> if controller is None:
>
> instead of Controller.
>
> Cheers,
>
> Tony 

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Tony Arkles | 15 Aug 2006 01:55
Picon

LPT things not being garbage collected

Hi!

Another one here, although this one is a bit trickier.

Daq.Channel.__init__ creates a reference loop.  In the line  
self.constant_parameters.functionality.channel = self, we end up with  
an LPTOutput object that refers to the Daq.Channel, which refers to  
the LPTOutput.  Normally, the garbage collector has no problem with  
loops like that, unless an object in the loop has a __del__ method,  
which the LPTOutput class does.

Is there a reason for that loop like that?  I don't want to just  
comment it out in case there's a reason somewhere for it.  The way I  
have things set up right now, these objects are created at the  
beginning of each stimulus presentation, and it slowly leaks memory.

I'm just curious for some input about where this should be fixed.   
I'm reluctant to add a __del__ method to the Channel class as well,  
but that might be necessary.

Cheers,

Tony
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Neil Halelamien | 31 Aug 2006 01:23
Picon
Favicon

Input from Wacom graphics tablet?

Is there any way I can get input from a Wacom graphics tablet? Right now 
Vision Egg is treating the tablet as a drifting mouse (position on 
tablet becomes cursor velocity), rather than a tablet.

It seems that pygame doesn't have any explicit tablet input method, so 
if I wanted to implement tablet support myself, what options do I have? 
Is there anything I could do without having to edit pygame itself?

Thanks!

-- Neil Halelamien
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Mark Halko | 31 Aug 2006 18:54
Favicon

Re: Input from Wacom graphics tablet?

Not having tried a Wacom tablet, I don't have a whole lot of advice.
SDL and as a consequence pygame don't have direct support for a tablet, 
and the question has been asked on both lists relatively recently:
http://www.libsdl.org/pipermail/sdl/2005-October/070927.html
http://www.mail-archive.com/pygame-users-eePT7DaMpNY <at> public.gmane.org/msg00730.html

You should be able to use the tablet as a mouse however, as is 
suggested in the second link, by adding the current position to the 
vector components.  It's likely you won't be able to easily use a 
tablet in visionegg, unless you write your own interface.

Mark

On Aug 30, 2006, at 7:23 PM, Neil Halelamien wrote:

> Is there any way I can get input from a Wacom graphics tablet? Right 
> now Vision Egg is treating the tablet as a drifting mouse (position on 
> tablet becomes cursor velocity), rather than a tablet.
>
> It seems that pygame doesn't have any explicit tablet input method, so 
> if I wanted to implement tablet support myself, what options do I 
> have? Is there anything I could do without having to edit pygame 
> itself?
>
> Thanks!
>
> -- Neil Halelamien
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
(Continue reading)


Gmane