// antialiased.setStipplePattern((short) 0xFFF0);
// Antialiased lines work by adding small pixels to the line with alpha blending values.
// To make use of this, you need to add a blend state that blends the source color
// with the destination color using the source alpha.
final BlendState blend = new BlendState();
blend.setBlendEnabled(true);
// use source color * source alpha + (1-source color) * destination color.
// (Note: for an interesting effect, switch them so it is OneMinusSourceAlpha/SourceAlpha.
// This will show you the pixels that are being added to your line in antialiasing.)
blend.setSourceFunction(SourceFunction.SourceAlpha);
blend.setDestinationFunction(DestinationFunction.OneMinusSourceAlpha);
antialiased.setRenderState(blend);
// Add our antialiased line to the scene.
_root.attachChild(antialiased);
}