// add a cube to the scene
// add a rotating controller to the cube
// add a light
box = new Box("The cube", new Vector3(-1, -1, -1), new Vector3(1, 1, 1));
final ZBufferState buf = new ZBufferState();
buf.setEnabled(true);
buf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
scene.getRoot().setRenderState(buf);
// Add a texture to the box.
final TextureState ts = new TextureState();
ts.setTexture(TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear, true));