Wednesday, February 17, 2010

Assignment 7

Here are the renders for CG2 Assn 7 of the Raytracer. All images are 1024x1024 with 16x Supersampling

Ward - Lmax 1

Ward - Lmax 1000

Ward - Lmax 10000

Reinhard - Lmax 1

Reinhard - Lmax 1000

Reinhard - Lmax 10000

Wednesday, February 3, 2010

Assignment 6



Here is our rendering for assignment 6 of the ray tracer. Above you can see transmission through the glass sphere. This image was rendered at a resolution of 2056x2056 with 16x super sampling and a max recursive depth of 16. In the image, you will also notice that the shadow under the glass sphere is less prevalent than the shadow under the reflective sphere, which was one of the extras for this assignment.

Wednesday, January 27, 2010

Assignment 5



Above you can see our rendering of the ray tracer for assignment 5. In this assignment we needed to add recursion to our ray tracer to calculate reflected rays. In the scene, one sphere has 80% reflection and the other has 0% reflection. The image was generated at a resolution of 2048x2048 and has supersampling turned on.

Wednesday, January 13, 2010

Assignment 4



Above is the image generated from checkpoint 4. Since checkpoint 4 was a lot easier than previous checkpoint, I also took the time to multi-thread the application and add supersampling. Both of these options were used when generating the image above.





Above is a comparison of the generated image with and without supersampling. The left image has super sampling and the right image does not.

After running some tests, it is clear that multi-threading the application yielded very good results. To generate the image above on my dual core laptop without multithreading, it took 98.34 seconds. To generate the image above with multi-threading, it took 50.80 seconds. A significant improvement!

Friday, January 8, 2010

Assignment 3



Above is our rendering of the Phong illumination model on the spheres.

Wednesday, December 16, 2009

Assignment 2

To create the plane, we used two triangles and created a triangle Object class to handle triangle-ray intersections.


Here is the final rendering of assignment 2.

Friday, December 4, 2009

Assignment 1


Using blender, we created the scene above.

Sphere 1:
Location:
X: 0.115
Y: -5.261
Z: 2.383
Size (Radius):
1.12

Sphere 2:
Location:
X: -1.390
Y: -2.818
Z: 1.384
Size (Radius):
1.00

Plane:
Location:
X: -0.807
Y: -3.098
Z: 0.137
Size:
X: 7.960
Y: 28.372
Z: 0.000

Light (Hemisphere):
Location:
X: 4.613
Y: -9.697
Z: 8.300
Rotation:
X: 69.694
Y: 0.000
Z: 8.109

Camera:
Location:
X: -0.168
Y: -12.440
Z: 2.937
Rotation:
X: 83.161
Y: 0.000
Z: 0.000