关键词 > COSC363

COSC 363: Computer Graphics Assignment 2 2024

发布时间:2024-05-31

Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

COSC 363: Computer Graphics

Assignment 2

Max. Marks: 20

Due: 11:55pm, 31 May 2024

Aim

In this assignment you will implement a ray tracer that can handle different types of geometric objects and global illumination features, and demonstrate its capability in enhancing the visual realism of a rendered scene.

1. The Basic Ray Tracer (Max. marks: 10)

In labs 7, 8, you will develop a simple ray tracer that can handle scenes containing planes and spheres. You will also implement methods for generating shadows and reflections. This assignment builds upon that ray tracer. As a minimum, your ray tracer should include the following features/objects.

(a)    A set of scene objects in a good spatial arrangement inside a box defined by five or six axis-aligned planes. Each plane must have a different colour or pattern.

(b)    At least one transparent object such as a hollow sphere. (Note:  A transparent object should not be modelled as a special case of a refractive surface with η1 = η2 = 1. )

(c)    Objects must cast shadows. Transparent and refractive objects must have lighter shadows.

(d)    The scene must include at least one planar object containing mirror-like reflections of surrounding objects.

(e)    At least one planar surface in the scene must have a chequered pattern. The method used for generating a stripe pattern in Lab-8 may be extended for this.

OpenGL functions should be used only for the final rendering of the ray traced image.

2.  Extensions  (Max. marks: 7)

This assignment will be marked out of 20, with  17 marks for the ray tracer and 3 marks for a report (see below). With just the basic features listed in Section 1, your ray tracer would earn at most  10 marks out of 17, and the report 2 marks out of 3. To get more than that, you need to implement a few additional features. Some possible features, and the approximate marks they would each gain if implemented correctly (up to a maximum of 7 marks for extra features) are given below.

•      Objects other than a plane or a sphere: single/double/truncated cone (1 mark), cylinder (1 mark), torus (2-3 marks).

•      Aclearly visible cap”  for a cylinder or a cone: 0.5 mark

•      Refraction of light through an object (e.g. arefractive sphere) : 1 mark

•      Multiple light sources including multiple shadows and multiple specular highlights generated by them: 1 mark

•      Multiple reflections generated using parallel mirror-like surfaces:  1 mark

•      Spotlight: 0.5 mark

•      Basic anti-aliasing: 1 mark, Adaptive anti-aliasing:  1.5 marks. The report must contain outputs of the ray tracer with and without anti-aliasing.

•      Textured sphere: 0.5 marks. Textured cylinder: 0.5 marks.

•      A procedural pattern generated on any surface. The pattern must have a more complex structure than simple stripes or checks: 0.5 marks.

•      Fog: 0.5 mark. The report must contain outputs of the ray tracer with and without the fog effect.

       •      Stochastic sampling (soft shadows, depth of field, rough surface reflections):

1 mark each. The report must contain outputs of the ray tracer with and without stochastic sampling.

•      Object-space  transformations: 1.5 marks. The transformation must change the object in some way that cannot be done by changing the object parameters (e.g. rotating a cylinder or cone off they axis)

•      Constructive Solid Geometry: 2-3 marks. The construction must use intersection or subtraction (not only union) and have working normals.

The marks associated with each feature should be taken to be indicative of the time and/or effort required to implement that a feature. The  10 marks for the minimum requirements are relatively easy to get when compared to the marks gained for some of the extension features. The above list should not be taken as a list of the only features that can be implemented. Marks will be given to only those features that are clearly visible in the ray traced output.

3.  Report (Max. marks: 3, No. of pages: 2 - 4 )

The report should describe your ray tracer, including both its successes and its failures. It should include at least one image showing the ray tracer’s capabilities. You may include additional images demonstrating various features of the ray traced scene. The report should clearly describe all extra features you have implemented in the ray tracer. For example, if you have implemented anti-aliasing in your ray tracer, you should describe its purpose, and how it is implemented. Similarly, if you have used procedural textures, provide the mathematical equations used for mapping coordinates of points to colour values.

You must also give an estimate of the time taken by your program to generate the output on your personal computer or lab machine. To keep run times to a minimum, you should do most of your development with small images (approx. 600x600 pixels), and low levels of recursion.

Use of any code segments, data or images from external resources should be acknowledged in the report. Please include details of the build process/environment. You may also (optionally) include a list of references.

The report must contain the following declaration. Assignment submissions without the declaration will not be accepted.

4. Assignment Submission

Submit electronically (using Learn), the source code and any other supplementary files needed to run the program. Please also submit your report in PDF format. The files may all be packaged together and submitted as a single .zip file.

5.  Miscellaneous

1.           Check regularly on the Learn system forums for spec updates and clarifications.

2.           This is not a group project. Each student must individually develop the program. In particular, students are not permitted to share program source code in any way. Standard departmental regulations regarding dishonest practices apply.