Sorry, I meant that I want to make the Raster object that contains the
image that is part transparent. So this is like Text2D except that I do
not map the transparent texture onto the polygon but create a Raster out
of it.
-Tachio
On Wed, 2 Jun 1999, Masahito Ohtsuka wrote:
> Hi.
>
>
> >Is there anyway to make the Raster object transparent? Thanks in advance.
> >
> >-Tachio
>
>
> Yes.
>
> Raster raster = new javax.media.j3d.Raster();
>
> TransparencyAttributes ta =
> new TransparencyAttributes( TransparencyAttributes.FASTEST, 1.0f );
>
> Appearance app = new Appearance();
> app.setTransparencyAttributes( ta );
>
> Shape3D rasterShape = new Shape3D( raster, app );
>
> That's it.
>
> Masahito Ohtsuka.
>
>
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/