| author | Radek Brich <radek.brich@devl.cz> | 
| Mon, 21 Apr 2008 08:47:36 +0200 | |
| branch | pyrit | 
| changeset 74 | 09aedbf5f95f | 
| parent 72 | 7c3f38dff082 | 
| child 75 | 20dee9819b17 | 
| permissions | -rw-r--r-- | 
| 31 | 1 | Bugs | 
| 2 | ==== | |
| 57 | 3 | * (none known) | 
| 31 | 4 | |
| 5 | Future Plans | |
| 6 | ============ | |
| 46 | 7 | * changing main ray tracing algoritm to more flexible architecture with a Sampler object: | 
| 49 
558fde7da82a
workaround for divide by zero bug in octree
 Radek Brich <radek.brich@devl.cz> parents: 
46diff
changeset | 8 | - enhance Sampler to support subsampling | 
| 44 | 9 | * namespace | 
| 11 
4d192e13ee84
move nearest_intersection() to Container, add dummy KdTree.load(), plus small fixes
 Radek Brich <radek.brich@devl.cz> parents: 
7diff
changeset | 10 | * kd-tree: | 
| 
4d192e13ee84
move nearest_intersection() to Container, add dummy KdTree.load(), plus small fixes
 Radek Brich <radek.brich@devl.cz> parents: 
7diff
changeset | 11 | - optimize structures | 
| 44 | 12 | - optimize construction: use box-shape intersection instead of bounding boxes of shapes | 
| 19 
4e0955fca797
added Camera, currently w/o Python binding
 Radek Brich <radek.brich@devl.cz> parents: 
15diff
changeset | 13 | - save/load | 
| 44 | 14 | * textures (3D procedural, pixmaps) | 
| 74 
09aedbf5f95f
kd-tree traversal - avoid dynamic memory allocation
 Radek Brich <radek.brich@devl.cz> parents: 
72diff
changeset | 15 | * Python binding for all classes | 
| 32 
8af5c17d368b
new Raytracer option: oversampling
 Radek Brich <radek.brich@devl.cz> parents: 
31diff
changeset | 16 | * stochastic oversampling | 
| 34 
28f6e8b9d5d1
quaternion moved to extra header file
 Radek Brich <radek.brich@devl.cz> parents: 
32diff
changeset | 17 | * absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant) | 
| 44 | 18 | * implement efficient AABB-ray intersection using Plucker coordinates | 
| 19 | * generalization: Camera "shader" (ray generator), surface shader and maybe light & background shaders | |
| 72 
7c3f38dff082
kd-tree building - check all axes for best split, add additional shape-bbox check
 Radek Brich <radek.brich@devl.cz> parents: 
57diff
changeset | 20 | * unify capitalization of method names in C++ and Python | 
| 49 
558fde7da82a
workaround for divide by zero bug in octree
 Radek Brich <radek.brich@devl.cz> parents: 
46diff
changeset | 21 | |
| 7 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 Radek Brich <radek.brich@devl.cz> parents: 
6diff
changeset | 22 | New Classes? | 
| 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 Radek Brich <radek.brich@devl.cz> parents: 
6diff
changeset | 23 | ============ | 
| 3 | 24 | |
| 25 | shapes.h -- Triangle, Sphere | |
| 26 | scene.h -- Ray, Light, Camera, Scene | |
| 27 | material.h -- Material, Texture | |
| 28 | reader.h -- Reader, WavefrontReader | |
| 29 | ||
| 30 | wf = new WavefrontReader() | |
| 7 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 Radek Brich <radek.brich@devl.cz> parents: 
6diff
changeset | 31 | wf.setContainer(top) | 
| 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 Radek Brich <radek.brich@devl.cz> parents: 
6diff
changeset | 32 | wf.setTransform(monkey_pos_matrix) | 
| 3 | 33 | wf.read("monkey.obj")
 | 
| 7 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 Radek Brich <radek.brich@devl.cz> parents: 
6diff
changeset | 34 | // more transform&reads | 
| 3 | 35 | destroy wf | 
| 36 | ||
| 37 | Scene scene -- container with shapes, a camera and lights | |
| 38 | scene = new Scene() | |
| 20 
f22952603f29
new C++ demo: realtime.cc (real-time scene viewer using SDL)
 Radek Brich <radek.brich@devl.cz> parents: 
19diff
changeset | 39 | scene.setCamera(new Camera(eye, u, v, p)) | 
| 3 | 40 | scene.addLight(new PointLight(pos, color)) | 
| 41 | rt.setScene(scene) | |
| 42 | rt.render(w,h) | |
| 43 | ||
| 44 | ||
| 45 | constructors have zero or one parameter by default -- the object to copy data from | |
| 46 | more parameters -- the data (ray origin and direction) |