// Set the color to black and the transparency
RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();
sphere.setSolidColor(new ColorRGBA(0.0f, 0.0f, 0.0f, 0.5f));
sphereNode.setRenderState(zbuf);
MaterialState matState = (MaterialState)rm.createRendererState(StateType.Material);
sphereNode.setRenderState(matState);
matState.setDiffuse(new ColorRGBA(0.0f, 0.0f, 0.0f, 0.5f));
matState.setAmbient(new ColorRGBA(0.0f, 0.0f, 0.0f, 0.5f));
matState.setShininess(128.0f);
matState.setEmissive(new ColorRGBA(0.0f, 0.0f, 0.0f, 0.5f));
matState.setEnabled(true);
BlendState alphaState = (BlendState)rm.createRendererState(StateType.Blend);
alphaState.setBlendEnabled(true);
alphaState.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
alphaState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);