Transparent texture

Hi,

I have a QuadArray, and Im using a image with numbers to make the texture.

I’m using it to show the score in an Asteroid clone.

The problem is that, the image is a gif (with bitmask transparency), but the texture is opaque.

Is there a way to make the texture, preserving the transparent pixel of the image??

I believe you need to make the Appearance of the shape transparent as well.

[quote]I believe you need to make the Appearance of the shape transparent as well.
[/quote]
Nope, you dont need to set apperance to transparent.

It works for me in this case:
I want to have the texture lighted and use a material, I apply the texture as TextureAttributes.MODULATE, and then set the diffuse colour fairly high, like .8 .8 .8. Transparency to 0. If that doesn’t work try make sure u load the GIF image into a Texture.RGBA and not a Texture.RGB mode. If that still gives problems try using PNG format instead of GIF, its better and you can have 256 degrees of transparency in any pixel.

Regards
Nikolai

Thanks,

The solution was to use TransparencyAttributes(NICEST,0); in the apperance.

Also, I used Composite.SRC_IN to draw the font image. This way I was sure that only the opaque pixel of the font were opaque in the resulting BufferedImage.