TODO
branchpyrit
changeset 20 f22952603f29
parent 19 4e0955fca797
child 21 79b516a3803d
equal deleted inserted replaced
19:4e0955fca797 20:f22952603f29
     2    - optimize structures
     2    - optimize structures
     3    - optimize construction: do not use bounding boxes of shapes, instead implement box-shape intersection
     3    - optimize construction: do not use bounding boxes of shapes, instead implement box-shape intersection
     4    - save/load
     4    - save/load
     5  * update Python binding, Camera, new classes
     5  * update Python binding, Camera, new classes
     6  * more complex demos
     6  * more complex demos
       
     7  * check/update triangle routines
     7 
     8 
     8 
     9 
     9 New Classes?
    10 New Classes?
    10 ============
    11 ============
    11 
    12 
    29 top.optimize()  -- i.e. build tree
    30 top.optimize()  -- i.e. build tree
    30 
    31 
    31 Scene scene -- container with shapes, a camera and lights
    32 Scene scene -- container with shapes, a camera and lights
    32 scene = new Scene()
    33 scene = new Scene()
    33 scene.setTop(top) -- top object in hierarchy
    34 scene.setTop(top) -- top object in hierarchy
    34 scene.setCamera(new Camera(pos, dir, angle))
    35 scene.setCamera(new Camera(eye, u, v, p))
    35 scene.addLight(new PointLight(pos, color))
    36 scene.addLight(new PointLight(pos, color))
    36 rt.setScene(scene)
    37 rt.setScene(scene)
    37 rt.render(w,h)
    38 rt.render(w,h)
    38 
    39 
    39 
    40