That's surprising. I haven't had a problem with transparent Rasters.
I use a BufferedImage of type BufferedImage.TYPE_4BYTE_ABGR.
and an ImageComponent2D of type ImageComponent2D.FORMAT_RGBA.

It is necessary to set the TransparencyAttributes of the Shape containing
the Raster geometry. For a while, I wasn't doing this and I also thought
transparency wasn't working in my Raster.

TransparencyAttributes ta = new TransparencyAttributes(
TransparencyAttributes.NICEST, 1 );

I hope this helps.

Raffi

-----Original Message-----
From: Artur Biesiadowski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Transparency


Corysia Taware wrote:
>
> Attached is a screenshot of the transparency probem I'm running into now.
> Can anyone tell me why the alpha channel isn't taking effect?  This seems
to
> work fine in an Overlay, but not in a Raster.

This is a bug number 4401323
"Transparency value ignored for RGBA rasters"

http://developer.java.sun.com/developer/bugParade/bugs/4401323.html


Artur

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to