You need to enable blending...
TransparencyAttributes transp = new TransparencyAttributes();
transp.setTransparencyMode(TransparencyAttributes.BLENDED);
appearance.setTransparencyAttributes(transp);
// workaround for bug... default RenderAttr
appearance.setRenderingAttributes( new RenderingAttributes() );
Previously there was a bug concerning transparencies, and setting
the default RenderingAttributes was the workaround. I don't know if
it is still needed or not...
-Lee
-----Original Message-----
From: Tom Nelson [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 17, 2000 11:31 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] java3d1.2.1beta1 - transparent gif as texture fails
If I use a transparent gif as a texture
(for example, in demos/java3d/TextureTest/MultiTextureTest.java)
the object appears solid black. A non-transparent gif works fine.
Is there something new we have to set for textures with transparency?
Thanks,
Tom Nelson
========================================================================
===
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".