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