DEVNOTES
author Radek Brich <radek.brich@devl.cz>
Wed, 19 Mar 2008 17:18:59 +0100
branchpyrit
changeset 45 76b254ce92cf
parent 44 3763b26244f0
child 46 6493fb65f0b1
permissions -rw-r--r--
note for new camera classes

Classes
-------

vector.h -- vector of three scalars, also used for colour
matrix.h -- matrix class, currently not used
quaternion.h -- quaternion class for camera rotation

container.h  -- container for shapes, base class for octree and kd-tree
octree.h -- Octree space subdivision structure for acceleration of ray-shape intersection search
kdtree.h  -- KdTree space subdivision structure

scene.h -- scene objects: Ray, Light, Camera and shapes
raytracer.h -- ray tracer class
common.h -- Float definition (float/double) and some helper functions


Container Usage
---------------
(Container|Octree|KdTree) top;
scene.setTop(top)  // top object in hierarchy
top.optimize()     // build optimization structure

Rework camera
-------------
Sampler - points in screen plane, 0..w:0..h
Camera - transform point from sampler to a ray