The easiest way I have found to do this, is to use gif images that have
transarency set to the color you want, and then set the appearance before
making it live...

        Appearance app;
        app = shape.getAppearance();
        app.setTexture(tex);
            //
        TextureAttributes texAttr;
        texAttr = new TextureAttributes();
        texAttr.setTextureMode(TextureAttributes.MODULATE);
        app.setTextureAttributes(texAttr);
            //
        RenderingAttributes renAttr;
        renAttr = new RenderingAttributes();
        renAttr.setAlphaTestFunction(RenderingAttributes.NOT_EQUAL);
        app.setRenderingAttributes(renAttr);
                 //
            shape.setAppearance(app);

Leyland Needham

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