author | Radek Brich <radek.brich@devl.cz> |
Mon, 21 Apr 2008 09:05:09 +0200 | |
branch | pyrit |
changeset 75 | 20dee9819b17 |
parent 74 | 09aedbf5f95f |
child 77 | dbe8438d5dca |
permissions | -rw-r--r-- |
31 | 1 |
Bugs |
2 |
==== |
|
57 | 3 |
* (none known) |
31 | 4 |
|
5 |
Future Plans |
|
6 |
============ |
|
75
20dee9819b17
unify capitalization of method names in C++ and Python
Radek Brich <radek.brich@devl.cz>
parents:
74
diff
changeset
|
7 |
* enhance Sampler to support subsampling |
44 | 8 |
* 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
|
9 |
* 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
|
10 |
- optimize structures |
44 | 11 |
- 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
|
12 |
- save/load |
44 | 13 |
* textures (3D procedural, pixmaps) |
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 |
18 |
* generalization: Camera "shader" (ray generator), surface shader and maybe light & background shaders |
|
49
558fde7da82a
workaround for divide by zero bug in octree
Radek Brich <radek.brich@devl.cz>
parents:
46
diff
changeset
|
19 |
|
7
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
20 |
New Classes? |
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
21 |
============ |
3 | 22 |
|
23 |
shapes.h -- Triangle, Sphere |
|
24 |
scene.h -- Ray, Light, Camera, Scene |
|
25 |
material.h -- Material, Texture |
|
26 |
reader.h -- Reader, WavefrontReader |
|
27 |
||
28 |
wf = new WavefrontReader() |
|
7
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
29 |
wf.setContainer(top) |
bf17f9f84c91
kd-tree: build algorithm - searching for all posible splits
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
30 |
wf.setTransform(monkey_pos_matrix) |
3 | 31 |
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
|
32 |
// more transform&reads |
3 | 33 |
destroy wf |
34 |
||
35 |
Scene scene -- container with shapes, a camera and lights |
|
36 |
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
|
37 |
scene.setCamera(new Camera(eye, u, v, p)) |
3 | 38 |
scene.addLight(new PointLight(pos, color)) |
39 |
rt.setScene(scene) |
|
40 |
rt.render(w,h) |
|
41 |
||
42 |
||
43 |
constructors have zero or one parameter by default -- the object to copy data from |
|
44 |
more parameters -- the data (ray origin and direction) |