private void createSceneGraph() {
parent = new BranchGroup();
ciel = new Background(new Color3f(0.9f, 0.9f, 1.0f));
ciel.setCapability(Background.ALLOW_COLOR_WRITE);
ciel.setApplicationBounds(new BoundingSphere(new Point3d(0, 0, 0), 80));
parent.addChild(ciel);
parent.addChild(new ColorCube(0.4));
TransformGroup tg = new TransformGroup();
Transform3D translation;
translation = new Transform3D();
translation.setTranslation(new Vector3f (0, 0, 20));
tg.setTransform(translation);
Sphere sphere = new Sphere(1.2f);
sphere.getAppearance().setColoringAttributes(new ColoringAttributes(0.1f, 0.8f, 0.8f, ColoringAttributes.NICEST));
tg.addChild(sphere);
parent.addChild(tg);
TransformGroup tg2 = new TransformGroup();
Transform3D translation2;
translation2 = new Transform3D();
translation2.setTranslation(new Vector3f (0, 0, -20));
tg2.setTransform(translation2);
Box box = new Box();
tg2.addChild(box);
parent.addChild(tg2);
AmbientLight light = new AmbientLight(new Color3f(0.5f, 0.5f, 0.5f));
//light.setColor(new Color3f(0.5f, 0.5f, 0.5f));
light.setInfluencingBounds(new BoundingSphere(new Point3d(0, 0, 0), 80));
parent.addChild(light);
soleil = new DirectionalLight();
soleil.setDirection(new Vector3f(0.1f, 0.1f, -0.5f));
//light.setColor(new Color3f(0.5f, 0.5f, 0.5f));
soleil.setInfluencingBounds(new BoundingSphere(new Point3d(0, 0, 0), 80));
parent.addChild(soleil);
}