diff -r fc18ac4833f2 -r a0a3e334744f src/raytracer.cc --- a/src/raytracer.cc Sun Nov 25 15:50:01 2007 +0100 +++ b/src/raytracer.cc Sun Nov 25 17:58:29 2007 +0100 @@ -99,7 +99,7 @@ return bg_colour; } else { Colour acc = Colour(); - Vector3 P = ray.a + ray.dir * nearest_distance; // point of intersection + Vector3 P = ray.o + ray.dir * nearest_distance; // point of intersection Vector3 normal = nearest_shape->normal(P); acc = PhongShader_ambient(*nearest_shape->material, P); @@ -211,17 +211,13 @@ RenderrowData *d; printf("* building kd-tree\n"); - //cout << endl; top->optimize(); - //static_cast(top)->save(cout); - //cout << endl; //srand(time(NULL)); - // eye - viewing point + /* eye - viewing point */ Vector3 eye(0, 0, -5); - // for each pixel... vy = starty; #ifdef PTHREADS @@ -233,6 +229,7 @@ int t = 0; #endif + /* for each pixel... */ printf("* rendering row 0 ( 0%% done)"); for (int y = 0; y < h; y++) { d = (RenderrowData*) malloc(sizeof(RenderrowData));