diff -r 28f6e8b9d5d1 -r fb170fccb19f ccdemos/realtime_dragon.cc --- a/ccdemos/realtime_dragon.cc Sun Dec 09 23:10:58 2007 +0100 +++ b/ccdemos/realtime_dragon.cc Wed Dec 12 19:59:19 2007 +0100 @@ -1,6 +1,7 @@ #include #include "raytracer.h" +#include "kdtree.h" #include #include @@ -142,7 +143,7 @@ rt.setThreads(1); rt.setMaxDepth(3); - KdTree top; + Kdtree top; rt.setTop(&top); Light light1(Vector3(-5.0, 2.0, 8.0), Colour(0.9, 0.3, 0.6)); @@ -160,7 +161,7 @@ cam.setEye(Vector3(0,0,10)); /* build kd-tree */ - top.setMaxDepth(100); + top.setMaxDepth(30); top.optimize(); /* loop... */