| author | Radek Brich <radek.brich@devl.cz> | 
| Wed, 23 Apr 2008 14:39:33 +0200 | |
| branch | pyrit | 
| changeset 79 | 062b1c4143f7 | 
| parent 78 | 9569e9f35374 | 
| child 81 | 9dbb9c8c115b | 
| permissions | -rw-r--r-- | 
| 31 | 1  | 
Bugs  | 
2  | 
====  | 
|
| 57 | 3  | 
* (none known)  | 
| 31 | 4  | 
|
5  | 
Future Plans  | 
|
6  | 
============  | 
|
| 
79
 
062b1c4143f7
material and texture classes moved to material.(cc,h)
 
Radek Brich <radek.brich@devl.cz> 
parents: 
78 
diff
changeset
 | 
7  | 
* pixmap textures  | 
| 
77
 
dbe8438d5dca
rewrite subsampling from old code to DefaultSampler
 
Radek Brich <radek.brich@devl.cz> 
parents: 
75 
diff
changeset
 | 
8  | 
* generalization: Camera "shader" (ray generator), surface shader and maybe light & background shaders  | 
| 44 | 9  | 
* namespace  | 
| 
74
 
09aedbf5f95f
kd-tree traversal - avoid dynamic memory allocation
 
Radek Brich <radek.brich@devl.cz> 
parents: 
72 
diff
changeset
 | 
10  | 
* Python binding for all classes  | 
| 
32
 
8af5c17d368b
new Raytracer option: oversampling
 
Radek Brich <radek.brich@devl.cz> 
parents: 
31 
diff
changeset
 | 
11  | 
* stochastic oversampling  | 
| 
34
 
28f6e8b9d5d1
quaternion moved to extra header file
 
Radek Brich <radek.brich@devl.cz> 
parents: 
32 
diff
changeset
 | 
12  | 
* absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant)  | 
| 44 | 13  | 
* implement efficient AABB-ray intersection using Plucker coordinates  | 
| 
49
 
558fde7da82a
workaround for divide by zero bug in octree
 
Radek Brich <radek.brich@devl.cz> 
parents: 
46 
diff
changeset
 | 
14  | 
|
| 
7
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
15  | 
New Classes?  | 
| 
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
16  | 
============  | 
| 3 | 17  | 
|
18  | 
shapes.h -- Triangle, Sphere  | 
|
19  | 
scene.h -- Ray, Light, Camera, Scene  | 
|
20  | 
material.h -- Material, Texture  | 
|
21  | 
reader.h -- Reader, WavefrontReader  | 
|
22  | 
||
23  | 
wf = new WavefrontReader()  | 
|
| 
7
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
24  | 
wf.setContainer(top)  | 
| 
 
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
 
Radek Brich <radek.brich@devl.cz> 
parents: 
6 
diff
changeset
 | 
25  | 
wf.setTransform(monkey_pos_matrix)  | 
| 3 | 26  | 
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
 | 
27  | 
// more transform&reads  | 
| 3 | 28  | 
destroy wf  | 
29  | 
||
30  | 
Scene scene -- container with shapes, a camera and lights  | 
|
31  | 
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
 | 
32  | 
scene.setCamera(new Camera(eye, u, v, p))  | 
| 3 | 33  | 
scene.addLight(new PointLight(pos, color))  | 
34  | 
rt.setScene(scene)  | 
|
35  | 
rt.render(w,h)  | 
|
36  | 
||
37  | 
||
38  | 
constructors have zero or one parameter by default -- the object to copy data from  | 
|
39  | 
more parameters -- the data (ray origin and direction)  |