TODO
author Radek Brich <radek.brich@devl.cz>
Fri, 14 Dec 2007 16:51:22 +0100
branchpyrit
changeset 39 7079dcc3bd74
parent 34 28f6e8b9d5d1
child 40 929aad02c5f2
permissions -rw-r--r--
ccdemos: put the common code to header files, common_ply.h and common_sdl.h move all ccdemos on octree and make them all realtime (-i argument)

Bugs
====
 * concurrent read? (concurrent write should not occur)

Future Plans
============
 * kd-tree:
   - optimize structures
   - optimize construction: do not use bounding boxes of shapes, instead implement box-shape intersection
   - save/load
 * uniform grid, octree
 * textures (3D procedural, pixmaps later)
 * update Python binding: Camera, new classes
 * namespace
 * stochastic oversampling
 * absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant)

New Classes?
============

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 top
wf = new WavefrontReader()
wf.setContainer(top)
wf.setTransform(monkey_pos_matrix)
wf.read("monkey.obj")
// more transform&reads
destroy wf

top.optimize()  -- i.e. build tree

Scene scene -- container with shapes, a camera and lights
scene = new Scene()
scene.setTop(top) -- top object in hierarchy
scene.setCamera(new Camera(eye, u, v, p))
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)