TODO
branchpyrit
changeset 81 9dbb9c8c115b
parent 79 062b1c4143f7
child 91 9d66d323c354
equal deleted inserted replaced
80:907929fa9b59 81:9dbb9c8c115b
     2 ====
     2 ====
     3  * (none known)
     3  * (none known)
     4 
     4 
     5 Future Plans
     5 Future Plans
     6 ============
     6 ============
     7  * pixmap textures
       
     8  * generalization: Camera "shader" (ray generator), surface shader and maybe light & background shaders
     7  * generalization: Camera "shader" (ray generator), surface shader and maybe light & background shaders
     9  * namespace
     8  * namespace
    10  * Python binding for all classes
     9  * Python binding for all classes
    11  * stochastic oversampling
    10  * stochastic oversampling
    12  * absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant)
    11  * absorbtion of refracted rays in dense materials (can be computed using shape distance and some 'absorbance' constant)
    13  * implement efficient AABB-ray intersection using Plucker coordinates
    12  * implement efficient AABB-ray intersection using Plucker coordinates
    14 
    13 
    15 New Classes?
    14 New Classes?
    16 ============
    15 ============
    17 
    16 
    18 shapes.h  -- Triangle, Sphere
    17 scene.h   -- Scene, ...
    19 scene.h   -- Ray, Light, Camera, Scene
       
    20 material.h -- Material, Texture
       
    21 reader.h  -- Reader, WavefrontReader
    18 reader.h  -- Reader, WavefrontReader
    22 
    19 
    23 wf = new WavefrontReader()
    20 wf = new WavefrontReader()
    24 wf.setContainer(top)
    21 wf.setContainer(top)
    25 wf.setTransform(monkey_pos_matrix)
    22 wf.setTransform(monkey_pos_matrix)
    31 scene = new Scene()
    28 scene = new Scene()
    32 scene.setCamera(new Camera(eye, u, v, p))
    29 scene.setCamera(new Camera(eye, u, v, p))
    33 scene.addLight(new PointLight(pos, color))
    30 scene.addLight(new PointLight(pos, color))
    34 rt.setScene(scene)
    31 rt.setScene(scene)
    35 rt.render(w,h)
    32 rt.render(w,h)
    36 
       
    37 
       
    38 constructors have zero or one parameter by default -- the object to copy data from
       
    39 more parameters -- the data (ray origin and direction)