View view (Point3d(5,0,+10), Point3d(0,0,0), Vector3d(0,1,0.1), 4,3); Scene scene(Color(0,0,0), 1.0); Vector3d VX(1,0,0), VY(0,1,0), VZ(0,0,1); Object * o; o = new Ellipsoid (Point3d(0.75,0,0), Base3d(VZ,VX,VY), "bleu ciel",1.0,1,0.5,1.5); scene.addObject(o); o = new Ellipsoid (Point3d(-0.25,0,0.15), Base3d(VX-VZ-VY,VY-VZ,VX+VZ), "blanc",1.0,2,0.5,0.25); scene.addObject(o); o = new Sphere (Point3d(0,0.25,0.25), Base3d(VX,VY,VZ), "rouge",1.0,0.5); scene.addObject(o); o = new Sphere (Point3d(-1,0,0), Base3d(VX,VY,VZ), "jaune",1.0,1); scene.addObject(o); SolidColor * sc; sc = new SolidColor("bleu ciel",Color(0.5,0.5,0.75)); scene.addMaterial(sc); sc = new SolidColor("jaune", Color(1,1,0)); scene.addMaterial(sc); sc = new SolidColor("rouge", Color(1,0,0)); scene.addMaterial(sc); sc = new SolidColor("blanc", Color(1,1,1)); scene.addMaterial(sc); SimplestRayTracer raytracer; SimplestRenderer renderer; Image image("output.bmp",80,60 ); renderer.render(scene,view,raytracer,image);