Chris Fenton wrote:
Do transparent textures work in java3d ?

yes, I have couple of tiny issues, that don't consistently happen, but mostly, and most of the time, they work perfik, below is the code I use. You will also need to make sure you have done View.setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY)

            plateAppearance = new Appearance();
            transparencyAttributes = new
TransparencyAttributes(TransparencyAttributes.BLENDED, 1.0f);

            TextureAttributes texAttr = new TextureAttributes();
            texAttr.setTextureMode(TextureAttributes.REPLACE);
            texAttr.setPerspectiveCorrectionMode(TextureAttributes.FASTEST);

plateAppearance.setTexture(texture);

           RenderingAttributes plateRenderingAttributes = new RenderingAttributes();
            plateRenderingAttributes.setIgnoreVertexColors(true);

            Material plateMaterial = new Material();
            plateMaterial.setLightingEnable(false);
            plateAppearance.setMaterial(plateMaterial);

            plateAppearance.setRenderingAttributes(plateRenderingAttributes);
            plateAppearance.setTextureAttributes(texAttr);
            plateAppearance.setTransparencyAttributes( transparencyAttributes );

plateShape.setAppearance(plateAppearance);


HTH


Jeremy

--

Homepage: http://www.computerbooth.com/
Code page: http://www.newdawnsoftware.com/

===========================================================================
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