辅导案例-COMP371

  • July 16, 2020

COMP371 – Computer Graphics – Winter 2020 Date: July 14, 2020 Instructors: S. Mokhov, K. Mendhurwar Time: 24 hours, from 12:00 (noon) Marks: 20 Quiz 1 – Take Home Rules • When done, submit via EAS as “quiz 1”: https://fis.encs.concordia.ca/eas/ • Submit all project, dependency, and source files (cpp, h, 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. • 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. • Your own project’s code is allowed to be copied as it is assumed to be well documented and referenced (if it is not so, this is another chance to fix that). Plagiarism 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 gray. Place a camera looking at the scene as in PA1 together with the grid as in PA1. 2. (3) Draw (X,Y, Z) axes as lines originating at (0, 0, 0) to their positive direction, 3 units in length, X: red, Y : green, Z: yellow. 3. (16) Model the first 6 characters of your last name as letters, centerred at x = 0, y = 0, but at the back of the grid over z from PA1. If your last name does not have 6 letters, borrow from your first name and your ID as necessary: (a) (6) Model them using the old Timex watch display style using parallelepipeds (3D “cubes”, scaled) half- unit tall, 0.25 unit deep, 1 unit wide. You are encouraged to use your cube utility functions/methods/classes from your project. ___ ___ /|___| /|___| |/___/ |/___/ (b) (1) Make each letter 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). • Save the code for the future needs. 2

LATEST POSTS
MOST POPULAR

ezAce多年来为广大留学生提供定制写作、留学文书定制、语法润色以及网课代修等服务,超过200位指导老师为您提供24小时不间断地服务。