Hi MobileVisuals,
You have to make a alpha apperance for your node and then use the setAlphaFactor(float) to set the alpha transparency. Below an example how to make the apperance.
Code:
private Appearance alphaAppearance = new Appearance();;
public void alphaAppearanceInit(Texture2D texture)
{
PolygonMode alphaPolygonMode = new PolygonMode();
alphaPolygonMode.setPerspectiveCorrectionEnable(true);
alphaAppearance.setPolygonMode(alphaPolygonMode);
CompositingMode alphaCompositeMode = new CompositingMode();
alphaCompositeMode.setBlending(CompositingMode.ALPHA_ADD);
alphaAppearance.setCompositingMode(alphaCompositeMode);
alphaAppearance.setTexture(0, texture);
}
And then just set the appearance to your mesh and set the alpha factor.
Code:
mesh.setAppearance(0, alphaAppearance);
mesh.setAlphaFactor(0.3f);
-tiviinik