Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
COMP0027 Team
We have shown you the framework for solving the coursework at cg.cs.ucl.ac.uk/. You should start by
extending the example Coursework1. Do not write any answers in any other programming language, in
paper, or pseudo code. Consider downloading the coursework in case your connection becomes unavailable.
Remember to save your solution often enough to a .uclcg file. In the end, hand in that file via Moodle.
The total points for this exercise is 100.
Above, the scene from this coursework, rendered with the simple initial ray-tracer you are asked to extend.
1
1 New primitives: Plane and cylinder (30 points)
We have added definitions of planes (a normal n and a distance r to the origin) and cylinders (an orientation
o and a radius r) to the scene. You are asked to add code to intersect them (10 points) and explain how
they work (10 points). Pay attention on how Sphere is intersected. Stick to the same function signature for
Plane and Cylinder that contain HitInfo, including normals and material (10 points).
2 Materials (6 points)
Make the scene show different materials and explain why those parameters are adequate in some table: paper
2
(1 points) metallic mirror ground plane (2 points) a glass sphere (2 points) and a yellow plastic sphere (1
points). It is important that settings are chosen such that the distinct visual features become visible in the
scene.