>Delivered-To: [EMAIL PROTECTED]
>X-Authentication-Warning: oc30.uni-paderborn.de: ib set sender to
[EMAIL PROTECTED] using -f
>Date: Wed, 16 Jan 2002 18:44:34 +0100
>From: Ingo Brunberg <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Still AlphaRaster,BufferedImage, ImageComponent2D very
strange behaviours
>To: [EMAIL PROTECTED]
>
>Hi Joachim,
>
>I don't know how java.awt.image.Raster and javax.media.j3d.Raster are
>related to each other, but all that seems to be very similar to the
>last bug I reported. It has the id 4623445.
>
>Regards,
>

The transparency value as specified by the TransparencyAttritbues
object is ignored for RGBA rasters.  The transparency value should
be combined with the alpha value in the raster or geometry object
to produce the final alpha value used in blending. This is
bug 4401323 - Transparency value ignored for RGBA rasters
in v1.2.1_03 which got fixed in v1.3 beta1. That's why
you see the behavior.

FYI. the bug 4623445 -
Nothing shown using org.j3d.geom.RasterTextLabel

is closed as application error. To fix it just
remove the line
appearance.setTransparencyAttributes(transparencyattributes);
in RasterTextLabel.

Thanks.,

- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.




>Ingo
>
>> Hi
>>
>> I still got interesting effects when using INT_ARGB BufferedImage with
>> RGBA ImageComponent2D this time it's not with Texture but with Background
>> as soon as I write something to the AlphaRaster of the BufferedImage it
>> won't be displayed anymore in J3D1.3b1
>>
>> Here the lines I'm using
>>
>>    BufferedImage backBImage = new
>>      BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);
>>    WritableRaster alphaRaster = backBImage.getAlphaRaster();
>>    int data[] = new int[1];
>>    for (int y1=0; y1<height; y1++)
>>      for (int x1=0; x1<width; x1++) {
>>        backBImage.setRGB(x1,y1,255);
>>        data[0] = 255;  // doesn't matter what value I use here
>>        alphaRaster.setPixel(x1,y1,data);
>>    }
>>
>>    ImageComponent2D backImage = new
>>      ImageComponent2D(ImageComponent.FORMAT_RGBA,width,height);
>>
>>    backImage.set(backBImage);
>>
>> This thing is really starting to annoy me.
>>
>> EOF,
>>  J.D.
>>
>> --
>> Explore SRT with the help of Java3D
>> (http://wwwvis.informatik.uni-stuttgart.de/relativity/minkowski)
>> (http://www.antiflash.net/java3d/relativity (mirror)
>
>===========================================================================
>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