equal
deleted
inserted
replaced
22 |
22 |
23 Rework camera |
23 Rework camera |
24 ------------- |
24 ------------- |
25 Sampler - generate points in screen plane |
25 Sampler - generate points in screen plane |
26 Camera - transform point from sampler to a ray |
26 Camera - transform point from sampler to a ray |
|
27 |
|
28 New Classes? |
|
29 ------------ |
|
30 |
|
31 scene.h -- Scene, ... |
|
32 reader.h -- Reader, WavefrontReader |
|
33 |
|
34 wf = new WavefrontReader() |
|
35 wf.setContainer(top) |
|
36 wf.setTransform(monkey_pos_matrix) |
|
37 wf.read("monkey.obj") |
|
38 // more transform&reads |
|
39 destroy wf |
|
40 |
|
41 Scene scene -- container with shapes, a camera and lights |
|
42 scene = new Scene() |
|
43 scene.setCamera(new Camera(eye, u, v, p)) |
|
44 scene.addLight(new PointLight(pos, color)) |
|
45 rt.setScene(scene) |
|
46 rt.render(w,h) |