private Appearance app() {
Appearance appear = new Appearance();
PolygonAttributes polyatt = new PolygonAttributes();
polyatt.setPolygonMode(PolygonAttributes.POLYGON_FILL); // ist normalerweise default
polyatt.setCullFace(PolygonAttributes.CULL_NONE);
polyatt.setBackFaceNormalFlip(true);
TransparencyAttributes ta = new TransparencyAttributes();
ta.setTransparency(0.7f); // je naeher der 1, desto tranparenter
ta.setTransparencyMode(TransparencyAttributes.NICEST);
ColoringAttributes ca = new ColoringAttributes();
ca.setShadeModel(ColoringAttributes.SHADE_FLAT);
appear.setPolygonAttributes(polyatt);
appear.setColoringAttributes(ca);
appear.setTransparencyAttributes(ta);
Color3f Ambient = new Color3f(0.0f, 1.0f, 0.0f); // the ambient color reflected off the surface of the material - greift nicht???
Color3f Emissiv = new Color3f(0.0f, 0.0f, 0.0f); // color of the light the material emits, if any
Color3f Diffuse = new Color3f(1.0f, 0.0f, 0.0f); // color of the material when illuminated
Color3f Specular = new Color3f(1.0f, 1.0f, 1.0f); // specular color of the material (highlights)
appear.setMaterial(new Material(Ambient, Emissiv, Diffuse, Specular, 64.0f));
return appear;
}