author | Radek Brich <radek.brich@devl.cz> |
Wed, 26 Mar 2008 14:29:21 +0100 | |
branch | pyrit |
changeset 47 | 320d5d466864 |
parent 46 | 6493fb65f0b1 |
child 49 | 558fde7da82a |
permissions | -rw-r--r-- |
31 | 1 |
Bugs |
2 |
==== |
|
44 | 3 |
* bad sphere/box transmisivity |
4 |
Inside-out transition is ignored as every second intersection is ignored to avoid duplicit |
|
5 |
intersect points. This solution should be replaced by moving ray origin a little forward, which |
|
6 |
should work as well and without side-effects. |
|
46 | 7 |
* bug in octree - black lines in center of image |
31 | 8 |
|
9 |
Future Plans |
|
10 |
============ |
|
46 | 11 |
* changing main ray tracing algoritm to more flexible architecture with a Sampler object: |
12 |
- update all demos for new Sampler/Camera architecture |
|
13 |
- enhance Sampler to support oversampling and subsampling as before |
|
14 |
- rewrite pthreads |
|
44 | 15 |
* 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
|
16 |
* 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
|
17 |
- optimize structures |
44 | 18 |
- 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
|
19 |
- optimize traversal -- no std::vector |
19
4e0955fca797
added Camera, currently w/o Python binding
Radek Brich <radek.brich@devl.cz>
parents:
15
diff
changeset
|
20 |
- save/load |
44 | 21 |
* textures (3D procedural, pixmaps) |
22 |
* update Python binding: Camera, other new classes |
|
32
8af5c17d368b
new Raytracer option: oversampling
Radek Brich <radek.brich@devl.cz>
parents:
31
diff
changeset
|
23 |
* stochastic oversampling |
34
28f6e8b9d5d1
quaternion moved to extra header file
Radek Brich <radek.brich@devl.cz>
parents:
32
diff
changeset
|
24 |
* absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant) |
44 | 25 |
* implement efficient AABB-ray intersection using Plucker coordinates |
26 |
* 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
|
27 |
|
7
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
28 |
New Classes? |
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
29 |
============ |
3 | 30 |
|
31 |
shapes.h -- Triangle, Sphere |
|
32 |
scene.h -- Ray, Light, Camera, Scene |
|
33 |
material.h -- Material, Texture |
|
34 |
reader.h -- Reader, WavefrontReader |
|
35 |
||
36 |
wf = new WavefrontReader() |
|
7
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
37 |
wf.setContainer(top) |
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
38 |
wf.setTransform(monkey_pos_matrix) |
3 | 39 |
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
|
40 |
// more transform&reads |
3 | 41 |
destroy wf |
42 |
||
43 |
Scene scene -- container with shapes, a camera and lights |
|
44 |
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
|
45 |
scene.setCamera(new Camera(eye, u, v, p)) |
3 | 46 |
scene.addLight(new PointLight(pos, color)) |
47 |
rt.setScene(scene) |
|
48 |
rt.render(w,h) |
|
49 |
||
50 |
||
51 |
constructors have zero or one parameter by default -- the object to copy data from |
|
52 |
more parameters -- the data (ray origin and direction) |