# HG changeset patch # User Radek Brich # Date 1195205112 -3600 # Node ID 8f9cb0526c471aee8b7e5f7dd90dd93bb5e4d37b # Parent ce23c7deb2d377a27c2acc41a172d62bbe1cdbb5 some notes in TODO diff -r ce23c7deb2d3 -r 8f9cb0526c47 TODO --- a/TODO Fri Nov 09 10:17:27 2007 +0100 +++ b/TODO Fri Nov 16 10:25:12 2007 +0100 @@ -1,2 +1,32 @@ * pthreads (pro Windows http://sources.redhat.com/pthreads-win32/) * kd-tree + + +container.h -- Container +kdtree.h -- KdTree +shapes.h -- Triangle, Sphere +scene.h -- Ray, Light, Camera, Scene +material.h -- Material, Texture +matrix.h -- Matrix +vector.h -- Vector3 +reader.h -- Reader, WavefrontReader + +KdTree monkey +wf = new WavefrontReader() +wf.setContainer(monkey) +wf.read("monkey.obj") +destroy wf + +monkey.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.setCamera(new Camera(pos, dir, angle)) +scene.addLight(new PointLight(pos, color)) +rt.setScene(scene) +rt.render(w,h) + + +constructors have zero or one parameter by default -- the object to copy data from +more parameters -- the data (ray origin and direction)