CGA2 Question 0

How to parse the ray file with the exemple code

Do not parse it ...

... when you just want to test the RayTracer code

currentSurface = new Surface(0.5f, 0.5f, 0.5f, 0.1f, 0.1f, 0.6f, 100.0f, 0.8f, 0f, 1f);
v = new Vector3D(0, 0, 0);
objectList.addElement(new Sphere(currentSurface, v, 1.4f));
currentSurface = new Surface(0.2f, 0.7f, 0.9f, 0.2f, 0.8f, 0.3f, 10.0f, 0.8f, 0f, 1f);
objectList.addElement(new Sphere(currentSurface, 2f, 3f, -2f, 1.5f));
objectList.addElement(new Sphere(currentSurface, 1f, 4f, -2f, 0.5f));
// objectList.addElement(new Sphere(currentSurface, 3f, 5f, -1f, 1.5f));
objectList.addElement(new Sphere(currentSurface, 2f, 3f, 1f, 1.5f));
objectList.addElement(new Sphere(currentSurface, 0f, 3f, -3f, 1.5f));

lightList.addElement(new Light(Light.AMBIENT, null, 1, 1, 1));