ccdemos/realtime_dragon.cc
branchpyrit
changeset 35 fb170fccb19f
parent 28 ffe83ca074f3
child 36 b490093b0ac3
--- 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 <SDL.h>
 
 #include "raytracer.h"
+#include "kdtree.h"
 #include <iostream>
 #include <fstream>
 
@@ -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... */