Commit graph

27 commits

Author SHA1 Message Date
79c951030d Move Stats to its own module
Move Stats to its own module and pass it around to the intersection methods to keep track of how many tests and successful intersections there are.
2014-08-02 15:21:14 -07:00
8de737decd Little bit of code clean up in TraceRay 2014-08-02 14:30:40 -07:00
5a8d634590 Update Scene a bit for new code style and namespaces in Object and Sphere 2014-07-20 16:54:10 -07:00
0d2011931c Account all types of rays -- print them at the end 2014-07-20 14:21:12 -07:00
c65c6a3cfd Use shared_ptr for Scene::mCamera
Makes memory management a bit easier...
2014-07-20 12:37:31 -07:00
3ec5b20f16 Rename Scene::camera -> mCamera 2014-07-19 20:57:12 -07:00
25b246d3ed Use the PerspectiveCamera to generate primary rays. 2014-07-16 23:32:44 -07:00
687de91a81 Quick 'n dirty setters for height and width 2014-07-13 20:12:10 -07:00
6c1e8c7ffb Add min_weight property to Scene 2013-09-21 17:01:11 -07:00
58f3cdd304 Add default values for trace_ray depth and weight arguments 2013-09-21 16:45:10 -07:00
3b7f672ab3 Add get_ambient() to Scene 2013-09-13 18:25:09 -07:00
fcd2781cc7 Add ambient property to Scene 2013-09-13 14:15:34 -07:00
55ef253c10 New lighting object tree: AmbientLight -> PointLight 2013-09-13 14:14:03 -07:00
cc126a153e Add ray count and duration stats 2013-09-12 09:10:22 -07:00
3a5c6cddf9 Add max_depth parameter 2013-09-11 10:33:20 -07:00
6bb7689ac0 Add lights to the scene 2013-09-10 21:49:01 -07:00
72c0d1475e Yay! 2013-09-10 21:04:56 -07:00
568e3f4c55 Update scene module for C++ 2013-09-10 16:28:38 -07:00
c06fb87990 Add scene_add_object 2013-09-07 18:41:33 -07:00
cee4113f6a Remove basics include from scene.h 2013-09-07 16:48:57 -07:00
b4cc32a196 Add ObjectList struct 2013-09-07 16:10:50 -07:00
9c01ba8811 Write the scene in writer_png
- Add pixels to Scene struct
2013-09-06 23:04:30 -07:00
9508b01e10 Scenes have a Camera object 2013-09-06 19:01:15 -07:00
0377a651f5 Fiddle with the scene functions; add scene_load 2013-09-06 14:52:03 -07:00
3ee28f9696 Include basics.h in scene.h 2013-09-05 22:57:03 -07:00
f8806f9fd4 Add scene_render() function 2013-09-05 22:08:55 -07:00
495d3802e2 Some code
- A main()
- A Scene type
- Some functions on Scenes
2013-09-05 21:58:58 -07:00