| author | Radek Brich <radek.brich@devl.cz> | 
| Sat, 19 Apr 2008 18:00:27 +0200 | |
| branch | pyrit | 
| changeset 71 | 4fedf7290929 | 
| parent 57 | 1e92c21b9a61 | 
| child 72 | 7c3f38dff082 | 
| 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: 
46 
diff
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: 
7 
diff
changeset
 | 
10  | 
* kd-tree:  | 
| 
 
4d192e13ee84
move nearest_intersection() to Container, add dummy KdTree.load(), plus small fixes
 
Radek Brich <radek.brich@devl.cz> 
parents: 
7 
diff
changeset
 | 
11  | 
- optimize structures  | 
| 44 | 12  | 
- optimize construction: use box-shape intersection instead of bounding boxes of shapes  | 
| 
40
 
929aad02c5f2
Makefile: added help and distclean target, plus small fixes
 
Radek Brich <radek.brich@devl.cz> 
parents: 
34 
diff
changeset
 | 
13  | 
- optimize traversal -- no std::vector  | 
| 
19
 
4e0955fca797
added Camera, currently w/o Python binding
 
Radek Brich <radek.brich@devl.cz> 
parents: 
15 
diff
changeset
 | 
14  | 
- save/load  | 
| 44 | 15  | 
* textures (3D procedural, pixmaps)  | 
16  | 
* update Python binding: Camera, other new classes  | 
|
| 
32
 
8af5c17d368b
new Raytracer option: oversampling
 
Radek Brich <radek.brich@devl.cz> 
parents: 
31 
diff
changeset
 | 
17  | 
* stochastic oversampling  | 
| 
34
 
28f6e8b9d5d1
quaternion moved to extra header file
 
Radek Brich <radek.brich@devl.cz> 
parents: 
32 
diff
changeset
 | 
18  | 
* absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant)  | 
| 44 | 19  | 
* implement efficient AABB-ray intersection using Plucker coordinates  | 
20  | 
* generalization: Camera "shader" (ray generator), surface shader and maybe light & background shaders  | 
|
| 
14
 
fc18ac4833f2
replace Plane with axis-aligned Box (because infinite Plane is not usable with kd-tree)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
13 
diff
changeset
 | 
21  | 
|
| 
49
 
558fde7da82a
workaround for divide by zero bug in octree
 
Radek Brich <radek.brich@devl.cz> 
parents: 
46 
diff
changeset
 | 
22  | 
|
| 
7
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
23  | 
New Classes?  | 
| 
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
24  | 
============  | 
| 3 | 25  | 
|
26  | 
shapes.h -- Triangle, Sphere  | 
|
27  | 
scene.h -- Ray, Light, Camera, Scene  | 
|
28  | 
material.h -- Material, Texture  | 
|
29  | 
reader.h -- Reader, WavefrontReader  | 
|
30  | 
||
31  | 
wf = new WavefrontReader()  | 
|
| 
7
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
32  | 
wf.setContainer(top)  | 
| 
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
33  | 
wf.setTransform(monkey_pos_matrix)  | 
| 3 | 34  | 
wf.read("monkey.obj")
 | 
| 
7
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
35  | 
// more transform&reads  | 
| 3 | 36  | 
destroy wf  | 
37  | 
||
38  | 
Scene scene -- container with shapes, a camera and lights  | 
|
39  | 
scene = new Scene()  | 
|
| 
20
 
f22952603f29
new C++ demo: realtime.cc (real-time scene viewer using SDL)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
19 
diff
changeset
 | 
40  | 
scene.setCamera(new Camera(eye, u, v, p))  | 
| 3 | 41  | 
scene.addLight(new PointLight(pos, color))  | 
42  | 
rt.setScene(scene)  | 
|
43  | 
rt.render(w,h)  | 
|
44  | 
||
45  | 
||
46  | 
constructors have zero or one parameter by default -- the object to copy data from  | 
|
47  | 
more parameters -- the data (ray origin and direction)  |