[visionegg] Re: transparency in textureStimulus3d
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Mon, 05 Feb 2007 11:50:57 -0800
Hi Adam,
I've make a new VE demo to test this out:
http://visionegg.org/trac/file/trunk/visionegg/demo/texture3D_alpha.py
It seems to work for me. Does this demo work for you?
Cheers!
Andrew
adam naples wrote:
> Hi, I've got an image file that I'm using with the textureStumulus3d
> class. The image is a png with alpha channel.
> when I display the image though, the background is shown as white.
> i'm using the following code to load the image based on the demo.
> should I be setting some openGL parameter beforehand?
> thanks
> -a
>
> filename = ("frog01.png")
> texture = Texture(filename)
>
> stimulus = TextureStimulus3D(texture=texture,
> shrink_texture_ok=1,
> internal_format = gl.GL_RGBA,
> mipmaps_enabled=0,
> texture_min_filter=gl.GL_LINEAR,
> texture_mag_filter=gl.GL_LINEAR)
> ======================================
> 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
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: transparency in textureStimulus3d
- From: adam naples
Other related posts:
- » [visionegg] transparency in textureStimulus3d
- » [visionegg] Re: transparency in textureStimulus3d
- » [visionegg] Re: transparency in textureStimulus3d
- [visionegg] Re: transparency in textureStimulus3d
- From: adam naples