CS431 Images

Assignment 1

A1 Output

Assignment 2

See assignment 4 below. Assignment 4 images show all the required features for assignment 2.

Assignment 3 was submitted before I got specular highlights on triangle meshes to work correctly.

Assignment 3

Viewing Parameters:

Eye Point: (0, 0, 6000)
Lookat: (65, -65, 0)
View distance: 100
Zoom (or inverse pixel size): 200

Lights:

Point light at (250, -250, 300)
Point light at (500, 500, 500)
Point light at (-250, 0, 100)
All lights are white

Objects and Shading Parameters:

Sphere 1: ka = 0.1, kd = 0.4, ks = 0.5, n = 30, color = (1,1,0), center = (0,0,0), radius = 40

Sphere 2: ka = 0.3, kd = 0.4, ks = 0.3, n = 15, color = (0,0,1), center = (0, 30, 0), radius = 30

Sphere 3: ka = 0.3, kd = 0.4, ks = 0.3, n = 15, color = (1,0,0), center = (75, 0, 0), radius = 30

Sphere 4: ka = 0.3, kd = 0.4, ks = 0.3, n = 15, color = (0,1,0), center = (75, -120, 0), radius = 30

bound_sphere_lo.smf: ka = 0.3, kd = 0.4, ks = 0.3, n = 15, color = (0, 1, 1), scaled by 75, translated down 120

bunny_200.smf: ka = 0.3, kd = 0.4, ks = 0.3, n = 15, color = (1, 1, 1), scaled by 75, translated right 160, up 20

bunny_1000.smf: ka = 0.3, kd = 0.4, ks = 0.3, n = 15, color = (1, 1, 0), scaled by 75, translated right 160, down 70

Output Images

With Uniform Spacial Subdivision: 1.5 minutes

With No Acceleration: 9.5 minutes

Assignment 4

I rendered the same scene as for assignment 3, so the viewing parameters are above.

No anti-aliasing: 262,144 rays cast. 24.06 seconds to render.

Pixel averaging: 1,048,576 rays cast. 106.44 seconds to render.

Adaptive super-sampling: 1,790,304 rays cast. 188.57 seconds to render.

Adaptive super-sampling: Intensity proportional to number of rays cast per pixel.

Comparison Image: 300% zoom
Link to Comparison Image

Assignment 5

Three Rendered Images

Viewing Parameters:
Eye point: (0, 0, 5000)
Look at: (0, 0, 0)
View distance: 100
Zoom (inverse pixel size): 100

Lights
White point light at (-500, 500, 500)

Geometry
Triangle meshes were scaled up by a factor of 50 then translated to their positions. The top left sphere is a triangle mesh with reflection, and the bottom left sphere is a non-mesh sphere with reflection.

Bound lo sphere (top left): ka = 0.2, kd = 0.3, ks = 0.1, kr = 0.4, n = 50, color = (0, 0, 1)
Bunny 200 (top middle): ka = 0.3, kd = 0.6, ks = 0.1, kr = 0, n = 100, color = (1, 1, 1)
Bunny 1000 (top right): ka = 0.3, kd = 0.5, ks = 0.2, n = 50, color = (1, .8, .8)

Sphere 1 (lower left): ka = 0.2, kd = 0.2, ks = 0, kr = 0.6, n = 100, color = (1, 1, 1)
Sphere 2 (lower middle): ka = 0.2, kd = 0.6, ks = 0.2, kr = 0, n = 100, color = (1, 0, 0)
Sphere 3 (lower right): ka = 0.2, kd = 0.6, ks = 0.2, kr = 0, n = 100, color = (1, .6, 0)

Plane (floor): ka = 0.5, kd = 0.5, ks = 0, kr = 0, n = 1, color = (0, 1, 0)

Scene rendered with the Hall model shading (shadows, reflections, and updated specular angle) with adaptive super-sampling. Super-sampling stops recursing after two subdivisions, and reflections stop recursing after 10 rays are followed.

I set the default (background) color to a light blue instead of black… with a green ground plane, it kinda looks like grass and sky reflecting in the spheres.

The first image shows a combination of ambient, diffuse, specular and reflective shading on the large sphere mesh.

Rendering time: 123 seconds

The second image has a cow mesh instead of the bunny 200 mesh, and it’s set to high reflection:
Cow 5804 (top middle): ka = 0, kd = 0, ks = 0, kr = 1, color = (1, .8, .8)


Rendering time: 66 minutes

In the third image, I moved the spheres closer to the triangle meshes so you could more clearly see things reflected in them. I also added a second point light behind everything so the back of the spheres wouldnt be dark in the reflections.


Rendering time: 6.4 hours (tons of recursion off reflection and supersampling)

Extra Credit Assignment

I have rendered two images. One shows 2D and 3D texture mapping, and the other spot lights.

2D and 3D Texture Mapping

Viewing Parameters:
Eye point: (0, 0, 5000)
Look at: (0, 0, 0)
View distance: 100
Zoom (inverse pixel size): 100

Lights:
Point light at (-250, 250, 500)

Geometry:
Sphere 1: Center (-70, 50, 0), Radius 30
ka = 0.1, kd = 0.8, ks = 0.1, kr = 0, n = 100, texture = world_small.png
Sphere 2: Center (-20, 50, 0), Radius 10
ka = 0.1, kd = 0.8, ks = 0.1, kr = 0, n = 100, texture = moon.png
Sphere 3: Center (60, 50, 0), Radius 25
ka = 0.1, kd = 0.8, ks = 0.1, kr = 0, n = 100, texture = mars.png
Bunny 200: Scaled by 70, translated (-70, -50)
ka = 0.1, kd = 0.8, ks = 0.1, kr = 0, n = 100, texture = pattern1.png
Bunny 1000: Scaled by 70, translated (70, -50)
ka = 0.1, kd = 0.8, ks = 0.1, kr = 0, n = 100, texture = pattern2.png


Rendering time: 11 seconds

Spot Lights

Viewing Parameters:
Eye point: (0, 0, 5000)
Look at: (0, 0, 0)
View distance: 100
Zoom (inverse pixel size): 100

Lights:
Point light at (0, 250, 250)
Spot light at (-85, 5, 100) pointed towards the Z axis with cone angle 5 degrees
Spot light at (75, -5, 100) pointed towards the Z axis with cone angle 10 degrees

Geometry:
Plane at (0, 0, -250), ka = 0.5, kd = 0.5, ks = 0, kr = 0, color = (0, 1, 0)
Sphere at (-75, 5, 0), radius 30, ka = 0.3, kd = 0.5, ks = 0.1, kr = 0, n = 50, color = (0, 0, 1)
Bunny 200 mesh, scaled 75, translated (60, 10), ka = 0.3, kd = 0.8, ks = 0.1, n = 100, texture = pattern1.png


Rendering time: 224 seconds

AddThis Social Bookmark Button

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Network Activity

Visitor Boost and Targeted Visitors have received 0 order today and 0 order yesterday.

W3Counter is currently processing 0 queries per second for 13,676 websites.

Website Goodies is hosting 94,379 guestbooks, 12,586 counters and 7,427 polls.

Award Winning Hosts has collected 206 customer reviews of web hosts.