Computer Graphics Assignment: Rendering Algorithms for CSE190, Assignments of Computer Science

This programming assignment for the computer graphics course, cse190, requires students to develop a ray tracer capable of rendering spheres and triangles with basic shading. The assignment consists of seven tasks, each with a specific percentage value. Students must implement camera transformation, sphere intersection, triangle intersection, barycentric interpolation, diffuse shading, specular shading, specular reflection, and shadow rays.

Typology: Assignments

Pre 2010

Uploaded on 03/28/2010

koofers-user-mau
koofers-user-mau 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE190: Computer Graphics - Rendering Algorithms
Programming Assignment 1
Due Monday, April 28
Henrik Wann Jensen
April 8, 2003
This assigment involves making a ray tracer capable of ray tracing spheres
and triangles with basic shading from a given camera position.
Percentages indicate percentage value for this assigment.
Render at least one image demonstrating all the effects below.
Send source files (all .cpp, .h and makefile - not object files) as well
as rendered images as a packed .tar.gz file to [email protected]
before the deadline.
Task 1: Camera transformation: 15 %
Implement tracing of primary rays given a camera with a location, view
direction, field of view, up vector, as well as an image of a given resolution.
Task 2: Sphere intersection: 15 %
Implement a sphere object with intersections and normal computations. The
sphere should be implemented such that the center and radius are parameters
that can be changed.
Task 3: Triangle intersection: 20 %
Implement a triangle intersection routine that computes the intersection of
a ray and a triangle (specified as three vertices).
Task 4: Barycentric interpolation: 15 %
Implement barycentric interpolation of normals for a triangle with three nor-
mals (one per vertex).
Task 5: Implement a material with diffuse shading and specular
highlights: 15 %
Implement diffuse and specular shading.
Task 6: Implement specular reflection for the material: 10 %
Add mirror reflection to the shader.
Task 7: Implement shadow rays to get cast shadows: 10 %
Implement shadow rays to compute shadow regions in the model.

Partial preview of the text

Download Computer Graphics Assignment: Rendering Algorithms for CSE190 and more Assignments Computer Science in PDF only on Docsity!

CSE190: Computer Graphics - Rendering Algorithms

Programming Assignment 1

Due Monday, April 28

Henrik Wann Jensen

April 8, 2003

This assigment involves making a ray tracer capable of ray tracing spheres and triangles with basic shading from a given camera position. Percentages indicate percentage value for this assigment.

Render at least one image demonstrating all the effects below. Send source files (all .cpp, .h and makefile - not object files) as well as rendered images as a packed .tar.gz file to [email protected] before the deadline.

Task 1: Camera transformation: 15 % Implement tracing of primary rays given a camera with a location, view direction, field of view, up vector, as well as an image of a given resolution.

Task 2: Sphere intersection: 15 % Implement a sphere object with intersections and normal computations. The sphere should be implemented such that the center and radius are parameters that can be changed.

Task 3: Triangle intersection: 20 % Implement a triangle intersection routine that computes the intersection of a ray and a triangle (specified as three vertices).

Task 4: Barycentric interpolation: 15 % Implement barycentric interpolation of normals for a triangle with three nor- mals (one per vertex).

Task 5: Implement a material with diffuse shading and specular highlights: 15 % Implement diffuse and specular shading.

Task 6: Implement specular reflection for the material: 10 % Add mirror reflection to the shader.

Task 7: Implement shadow rays to get cast shadows: 10 % Implement shadow rays to compute shadow regions in the model.