Quiz1 PDF

Title Quiz1
Course Computer Graphics
Institution Concordia University
Pages 2
File Size 55.7 KB
File Type PDF
Total Downloads 93
Total Views 165

Summary

comp 371 quiz 1...


Description

COMP371 – Computer Graphics – Winter 2021 Instructor: Lab Instructor: Time: 24 hours, from 19:30 Feb 18 to 19:30 Feb 19

Date: February 18, 2021 S. Mokhov J. Llewellyn Marks: 20

Quiz 1 – Take Home (Revision 1.1)

Rules • When done, submit via EAS as “quiz 1”: https://fis.encs.concordia.ca/eas/ • Submit all project, dependency, and source files (README, cpp, h, cmake, vcproj, sln, etc.) Please open EAS when ready to submit only. Submit Quiz 1 as “quiz 1”. • Do not delay the submission until the last minute! Even partial submission should still be uploaded from time to time. • The submissions are allowed to be re-uploaded multiple times. The latest uploaded will be used for marking within the timeframe. During the quiz you are allowed to have any online or other media resources about OpenGL and code samples you can lay your hands on, etc., BUT: • You are not allowed to send each other’s copies of the quiz at all times. At best, the penalties for giving and taking each other’s quiz code will result in 0 grade by default. Later penalties may follow. • You are not allowed to communicate with each other orally or electronically or otherwise during the quiz time or asking others outside of the class to do the quiz for you. • Should you use some of the code snippets from external resources, the URLs to those resources should be present within the code you submit as comments in the header. • Expected completion time if you concentrate uninterrupted and assuming you have completed your own PA1 with full understanding is 2-3 hours. The rest can be used for polishing and documentation as needed if required. • Your own project’s code is allowed to be copied as a starting point, it is assumed to be well documented and referenced (if it is not so, this is another chance to fix that). Plagiarism otherwise will be strictly penalized.

Tasks • Comments in the code are of paramount importance. • Briefly (but identifiably) cite all the resources used (online as URLs or offline as book or article titles, notes, own project etc.) • Certain tasks need to be done in order, but some aren’t; read through them all; do the sequences you absolutely need and the ones you are most comfortable with first, and then do as many as you can:

1

1. (1) Set the background color of the world teal. Place a camera looking at the scene as in PA1 together with the floor grid as in PA1. 2. (3) Draw (X, Y, Z) axes as cylinders originating at (0, 0, 0) to their positive direction, 2.5 units in length and .25 units in diameter, X: red, Y : green, Z: blue. 3. (16) Model the first 6 characters of your last name as letters, centered at x = 0, y = 0, but at the back of the grid over z from PA1 and STACKED one on top of another vertically. If your last name does not have 6 letters, borrow from your first name and your ID as necessary: (a) (6) Model them using parallelepipeds (3D scaled “cubes”, no slanting required, half-unit tall, 0.25 unit deep, 1 unit wide) and spheres (also scaled: with the initial radius r = 0.25 units, elongated to 1 unit as well). The non-vertical portions (horizontal, diagonal) of the characters would be based on the cubes. The vertical portions would be based on the scaled elongated spheres. You are encouraged to use your cube utility functions/methods/classes from your project (extended to also support elongated spheres.) (b) (1) Make each character of a different color. (c) (6) Make individual letters transformable (rotate, scale, translate) on the grid by selecting it via a key assignment (documented, of your choice). Allow letter selection via keys, e.g., ‘1’, ‘2’, ‘3’, ... and use the same key sequence and transformations as in PA1 for the letter models. (d) (3) Allow camera movement in the world either placed differently in front of each letter using using ASWD or arrow keys (or up to you, document regardless) to move it in the world. 4. (5) (Optional) If you feel like it and have enough time you can add more stuff to it if you want for possible bonus marks (at the discretion of the lab instructor, max 5). That may include shading, decorations, additional models, but no textures. • Save the code for the future needs.

2...


Similar Free PDFs