--- a/ccdemos/realtime_bunny.cc Sun Dec 09 23:10:58 2007 +0100
+++ b/ccdemos/realtime_bunny.cc Wed Dec 12 19:59:19 2007 +0100
@@ -1,6 +1,7 @@
#include <SDL.h>
#include "raytracer.h"
+#include "octree.h"
#include <iostream>
#include <fstream>
#include <iomanip>
@@ -144,10 +145,10 @@
/* initialize raytracer and prepare scene */
render_buffer = (Float *) malloc(w*h*3*sizeof(Float));
- rt.setThreads(1);
+ rt.setThreads(2);
rt.setMaxDepth(3);
- KdTree top;
+ Octree top;
rt.setTop(&top);
Light light1(Vector3(-5.0, 2.0, 8.0), Colour(0.9, 0.3, 0.6));
@@ -165,7 +166,7 @@
cam.setEye(Vector3(0,0,10));
/* build kd-tree */
- top.setMaxDepth(100);
+ top.setMaxDepth(3);
top.optimize();
/* loop... */