diff -r d8d596d26f25 -r bf17f9f84c91 TODO --- a/TODO Sun Nov 18 11:20:56 2007 +0100 +++ b/TODO Thu Nov 22 17:53:34 2007 +0100 @@ -1,5 +1,8 @@ * kd-tree + * transforms, camera +New Classes? +============ container.h -- Container kdtree.h -- KdTree @@ -10,17 +13,19 @@ vector.h -- Vector3 reader.h -- Reader, WavefrontReader -KdTree monkey +KdTree top wf = new WavefrontReader() -wf.setContainer(monkey) +wf.setContainer(top) +wf.setTransform(monkey_pos_matrix) wf.read("monkey.obj") +// more transform&reads destroy wf -monkey.optimize() -- i.e. build tree +top.optimize() -- i.e. build tree Scene scene -- container with shapes, a camera and lights scene = new Scene() -scene.setTop(monkey) -- top object in hierarchy +scene.setTop(top) -- top object in hierarchy scene.setCamera(new Camera(pos, dir, angle)) scene.addLight(new PointLight(pos, color)) rt.setScene(scene)