Here is my default Appearance setup:
material = new Material();
material.setColorTarget(Material.DIFFUSE);
material.setAmbientColor(AMBIENT_COLOR);
material.setSpecularColor(SPECULAR_COLOR);
material.setShininess(96.0f);
coloringAttributes = new ColoringAttributes();
coloringAttributes.setColor(DIFFUSE_COLOR);
polygonAttributes = new PolygonAttributes();
polygonAttributes.setCullFace(PolygonAttributes.CULL_BACK);
appearance = new Appearance();
appearance.setMaterial(material);
appearance.setColoringAttributes(coloringAttributes);
appearance.setPolygonAttributes(polygonAttributes);
Transparency can then be set using:
TransparencyAttributes ta = new TransparencyAttributes();
ta.setTransparencyMode(TransparencyAttributes.BLENDED);
ta.setTransparency(t);
appearance.setTransparencyAttributes(ta);
Hope this helps
