[visionegg] Re: transparency in textureStimulus3d

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

Other related posts: