EXAMINATIONS 2017 TRIMESTER 2

Size: px
Start display at page:

Download "EXAMINATIONS 2017 TRIMESTER 2"

Transcription

1 EXAMINATIONS 2017 TRIMESTER 2 CGRA 151 INTRODUCTION TO COMPUTER GRAPHICS Time Allowed: TWO HOURS CLOSED BOOK Permitted materials: Silent non-programmable calculators or silent programmable calculators with their memories cleared are permitted in this examination. Printed foreign language English dictionaries are permitted. No other material is permitted. Instructions: Attempt ALL questions. The examination will be marked out of 120 marks. Brief Processing documentation is provided on page??, which may be detached from the question paper. Answer in the appropriate boxes if possible if you write your answer elsewhere, make it clear where your answer can be found. There are spare pages for your working and your answers in this question paper. However, you may ask for additional paper if you need it. Questions: Marks 1. Programming in Processing Graphics algorithms Colour, displays, and human vision Mathematics for graphics 30 Total 120 CGRA 151 Page 1 of??

2 SPARE PAGE FOR EXTRA ANSWERS Cross out rough working that you do not want marked. Specify the question number for work that you do want marked. CGRA 151 Page 2 of??

3 Question 1. Programming in Processing [30 marks] (a) [15 marks] Write Processing code to draw the following things in the Processing window. The coordinates for drawing these things need to be specified to the nearest 10. Hint: the three circles have diameters 50, 80, and 120. ( Processing window) // Window size needs to be (300, 300) // CGRA 151 Page 3 of??

4 (b) [15 marks] Sketch what the following code will draw in the Processing window. size(300, 300); background(255); stroke(0); int x = 60; int y = 120; int i = 0; triangle(150,40,20,100,280,100); rect(40, 100, 220, 200); rect(200, 220, 40, 80); while (i <= 2) { beginshape(); vertex(x, y); vertex(x+40, y); vertex(x+40, y+40); vertex(x, y+40); endshape(close); i++; x = x + 70; } y = y + 100; x = 60; while (x < 200) { rect(x,y,40,40); x = x + 70; } ( Processing window) CGRA 151 Page 4 of??

5 SPARE PAGE FOR EXTRA ANSWERS Cross out rough working that you do not want marked. Specify the question number for work that you do want marked. Below is an extra copy of the template for Question 1(b), in case you make a mistake. (spare copy of Processing window) CGRA 151 Page 5 of??

6 Question 2. Graphics Algorithms [30 marks] (a) [6 marks] Describe two different ways in which the straight line drawing algorithm can be used or the ideas in the algorithm re-purposed to draw 2D elements other than a straight line. Answer 1: Answer 2: CGRA 151 Page 6 of??

7 (b) [6 marks] In the midpoint line drawing algorithm, we normally define a decision variable as: k(x, y) = ax + by + c. For a straight line lying in the first octant, if a point (x, y) is above the straight line, k(x, y) > 0; if (x, y) is below that line, k(x, y) < 0. Assume that we have already turned on the pixel (x p, y p ), then the point we use to evaluate the decision variable is (x p + 1, y p + 0.5). Explain how the decision variable s value is used to decide which pixel should be turned on next. (c) [4 marks] For each of the possible pixels that could be turned on next, show the calculation that updates the decision variable for the following iteration. CGRA 151 Page 7 of??

8 (d) [6 marks] In Cohen-Sutherland s line clipping algorithm, every line endpoint is assigned a 4 bit region code, as shown in the diagram below. The infinite edges of the window to clip against are x = x L, x = x R, y = y T, y = y B. Explain how the region codes are used to decide whether clipping is needed and, if so, how we choose which infinite edge to clip against. (e) [3 marks] You are given the three line segments P 1 P 2, P 3 P 4 and P 5 P 6 shown in the diagram. For each line, state whether Cohen-Sutherland s algorithm will require it to be clipped against some infinite edge. P 1 P 2 P 3 P 4 P 5 P 6 CGRA 151 Page 8 of??

9 (f) [5 marks] For each line, explain why it needs to be clipped or not, and which infinite edge should be clipped against, if applicable. CGRA 151 Page 9 of??

10 SPARE PAGE FOR EXTRA ANSWERS Cross out rough working that you do not want marked. Specify the question number for work that you do want marked. CGRA 151 Page 10 of??

11 Question 3. Colour, Displays, and Human Vision [30 marks] (a) [6 marks] Pick two of the following three-dimensional colour spaces: Lab, HSL, XYZ. Explain what each of the three dimensions represents. Your first choice of colour space is: [3 marks: 1 mark for each dimension] First dimension: Second dimension: Third dimension: Your second choice of colour space is: [3 marks: 1 mark for each dimension] First dimension: Second dimension: Third dimension: CGRA 151 Page 11 of??

12 (b) [6 marks] Explain why red, green and blue are the three primary colours for television. (c) [4 marks] The world s largest LED display screen is made by Colosseo and is installed in the Zenit Arena football stadium in Russia (see above). It is 30 m 10 m in size, with individual pixels that are mm mm. What is the resolution, in pixels, of the screen? Show your working. CGRA 151 Page 12 of??

13 (d) [4 marks] Use your knowledge of the limitations of human vision to calculate the minimum distance that a human being would have to stand from the screen so that the screen s resolution matches or exceeds the resolving ability of the human eye. The human eye has a maximum resolving power of 1/60 of a degree. Show your working. (e) [4 marks] What difference would a human being notice about the screen if they stood significantly closer than the distance you calculated in the previous part? CGRA 151 Page 13 of??

14 (f) [6 marks] The company that built the screen offers an alternative screen with pixels of size 5 mm 5 mm. This screen costs ten times the price of the one that is installed. Stadium management considered installing this higher-resolution screen. Give two reasons, other than the increased price of the screen itself, why you would advise management not to install the higher resolution screen. Reason 1: Reason 2: CGRA 151 Page 14 of??

15 SPARE PAGE FOR EXTRA ANSWERS Cross out rough working that you do not want marked. Specify the question number for work that you do want marked. CGRA 151 Page 15 of??

16 Question 4. Mathematics for graphics [30 marks] (a) [12 marks] Vector and matrix algebra You are given three vectors, p = 2, q = 3 and r = and two matrics, M 1 = and M 2 = 0 0 2, Assume that θ is the angle between the vector p and q. Evaluate the following expressions. Magnitude p = Dot product p q = Angle between vectors p and q θ = Matrix addition M 1 + M 2 = Matrix multiplication 1 M 1 M 2 = Matrix multiplication 2 M 2 r = CGRA 151 Page 16 of??

17 (b) [3 marks] Assume that we have an 2D image plane parallel to the xy plane at a distance d and that we want to project 3D points onto that 2D plane. Give the equations for x and y in terms of x, y, z and d. (c) [6 marks] You are given a triangle ABC in 3D space, where the xyz-coordinates of A, B and C are (6, 10, 4), (1, 2, 2) and (15, 3, 6) respectively, and the distance from the image plane to the origin is d = 2. Calculate the coordinates for the three vertices and draw the projected triangle on the image plane after perspective projection. Show your calculations. Note: The grid is to help you to plot the vertices on the image plane; you do not need to fill the pixels to represent the triangle. (Image plane) CGRA 151 Page 17 of??

18 (d) [9 marks] You are given the 3D object shown below (a teapot). Its centre is at (1, 0, 3). The teapot s axis, which runs from the teapot centre through the centre of the lid, is (0, 1, 0), which is parallel to the y-axis. Describe the minimum transformation steps needed to rotate the teapot 90 degrees about its axis, and show the transformation matrices in homogeneous form for each step. CGRA 151 Page 18 of??

19 Brief Processing documentation You may detach this page from the question paper. void point( float x, float y ) // draw a point at location (x,y) void line( float x1, float y1, float x2, float y2 ) // draw a line segment from location (x1, y1) to location (x2, y2) void rect( float left, float top, float width, float height ) // draw a rectangle with its top left corner at the indicated position // of size width times height void ellipse( float centerx, float centery, float width, float height ) // draw an ellipse centred at the indicated position // of size width times height void triangle( float x1, float y1, float x2, float y2, float x3, float y3 ) // draw a triangle with vertices at the three points // (x1,y1 ), (x2,y2 ), (x3, y3) void beginshape() // start a shape which comprises a sequence of polygon vertices void vertex( float x, float y ) // specify a vertex in the current shape void endshape( mode ) // end and draw a shape. If the mode is CLOSE then the final point // will be connected to the initial point. If the mode is missing then // the shape will be left open. void bezier( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) // draw a Bezier cubic curve with the four control points // (x1,y1 ), (x2,y2 ), (x3, y3 ), (x4, y4) void background( float grey ) void stroke( float grey ) void fill( float grey ) // set the colour of the background, stroke or fill to be // a grey value between 0 ( black ) and 255 ( white ) void nostroke() void nofill() // turn off drawing strokes around objects and filling objects, respectively * * * * * * * * * * * * * * * CGRA 151 Page 19 of??

EXAMINATIONS 2016 TRIMESTER 2

EXAMINATIONS 2016 TRIMESTER 2 EXAMINATIONS 2016 TRIMESTER 2 CGRA 151 INTRODUCTION TO COMPUTER GRAPHICS Time Allowed: TWO HOURS CLOSED BOOK Permitted materials: Silent non-programmable calculators or silent programmable calculators

More information

Solution Notes. COMP 151: Terms Test

Solution Notes. COMP 151: Terms Test Family Name:.............................. Other Names:............................. ID Number:............................... Signature.................................. Solution Notes COMP 151: Terms

More information

Institutionen för systemteknik

Institutionen för systemteknik Code: Day: Lokal: M7002E 19 March E1026 Institutionen för systemteknik Examination in: M7002E, Computer Graphics and Virtual Environments Number of sections: 7 Max. score: 100 (normally 60 is required

More information

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination (Total: 100 marks) Figure 1: A perspective view of a polyhedron on an infinite plane. Cameras and Perspective Rendering

More information

Part 3: 2D Transformation

Part 3: 2D Transformation Part 3: 2D Transformation 1. What do you understand by geometric transformation? Also define the following operation performed by ita. Translation. b. Rotation. c. Scaling. d. Reflection. 2. Explain two

More information

1. Complete these exercises to practice creating user functions in small sketches.

1. Complete these exercises to practice creating user functions in small sketches. Lab 6 Due: Fri, Nov 4, 9 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use the

More information

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination (Total: 100 marks)

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination (Total: 100 marks) CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination (Total: 100 marks) Cameras and Perspective Figure 1: A perspective view of a polyhedron on an infinite plane. Rendering

More information

The University of Calgary

The University of Calgary The University of Calgary Department of Computer Science Final Examination, Questions ENEL/CPSC 555 Computer Graphics Time: 2 Hours Closed Book, calculators are permitted. The questions carry equal weight.

More information

(a) rotating 45 0 about the origin and then translating in the direction of vector I by 4 units and (b) translating and then rotation.

(a) rotating 45 0 about the origin and then translating in the direction of vector I by 4 units and (b) translating and then rotation. Code No: R05221201 Set No. 1 1. (a) List and explain the applications of Computer Graphics. (b) With a neat cross- sectional view explain the functioning of CRT devices. 2. (a) Write the modified version

More information

a. Plot the point (x, y, z) and understand it as a vertex of a rectangular prism. c. Recognize and understand equations of planes and spheres.

a. Plot the point (x, y, z) and understand it as a vertex of a rectangular prism. c. Recognize and understand equations of planes and spheres. Standard: MM3G3 Students will investigate planes and spheres. a. Plot the point (x, y, z) and understand it as a vertex of a rectangular prism. b. Apply the distance formula in 3-space. c. Recognize and

More information

CMSC 435/634: Introduction to Graphics

CMSC 435/634: Introduction to Graphics CMSC 435/634: Introduction to Graphics Midterm Exam October 9, 2002 Instructions: Clearly write your name on this sheet. Answer each problem in the space provided. If you need extra space, write on extra

More information

CS602 MCQ,s for midterm paper with reference solved by Shahid

CS602 MCQ,s for midterm paper with reference solved by Shahid #1 Rotating a point requires The coordinates for the point The rotation angles Both of above Page No 175 None of above #2 In Trimetric the direction of projection makes unequal angle with the three principal

More information

MET71 COMPUTER AIDED DESIGN

MET71 COMPUTER AIDED DESIGN UNIT - II BRESENHAM S ALGORITHM BRESENHAM S LINE ALGORITHM Bresenham s algorithm enables the selection of optimum raster locations to represent a straight line. In this algorithm either pixels along X

More information

INSTRUCTIONS FOR THE USE OF THE SUPER RULE TM

INSTRUCTIONS FOR THE USE OF THE SUPER RULE TM INSTRUCTIONS FOR THE USE OF THE SUPER RULE TM NOTE: All images in this booklet are scale drawings only of template shapes and scales. Preparation: Your SUPER RULE TM is a valuable acquisition for classroom

More information

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer The exam consists of 10 questions. There are 2 points per question for a total of 20 points. You

More information

CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo)

CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo) CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo) www.vucybarien.com Question No: 1 What are the two focusing methods in CRT? Explain briefly. Page no : 26 1. Electrostatic focusing

More information

Guided Problem Solving

Guided Problem Solving -1 Guided Problem Solving GPS Student Page 57, Exercises 1 1: Match each rule with the correct translation. A. (x, y) (x, y 1 ) I. P(, 1) P (3, ) B. (x, y) (x 1 3, y) II. Q(3, 0) Q (3, ) C. (x, y) (x 1,

More information

Generating Vectors Overview

Generating Vectors Overview Generating Vectors Overview Vectors are mathematically defined shapes consisting of a series of points (nodes), which are connected by lines, arcs or curves (spans) to form the overall shape. Vectors can

More information

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives. D Graphics Primitives Eye sees Displays - CRT/LCD Frame buffer - Addressable pixel array (D) Graphics processor s main function is to map application model (D) by projection on to D primitives: points,

More information

11.2 RECTANGULAR COORDINATES IN THREE DIMENSIONS

11.2 RECTANGULAR COORDINATES IN THREE DIMENSIONS 11.2 Rectangular Coordinates in Three Dimensions Contemporary Calculus 1 11.2 RECTANGULAR COORDINATES IN THREE DIMENSIONS In this section we move into 3 dimensional space. First we examine the 3 dimensional

More information

Graphics. HCID 520 User Interface Software & Technology

Graphics. HCID 520 User Interface Software & Technology Graphics HCID 520 User Interface Software & Technology PIXELS! 2D Graphics 2D Graphics in HTML 5 Raster Graphics: canvas element Low-level; modify a 2D grid of pixels.

More information

Graphics. HCID 520 User Interface Software & Technology

Graphics. HCID 520 User Interface Software & Technology Graphics HCID 520 User Interface Software & Technology PIXELS! 2D Graphics 2D Raster Graphics Model Drawing canvas with own coordinate system. Origin at top-left, increasing down and right. Graphics

More information

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS2401 COMPUTER GRAPHICS QUESTION BANK PART A UNIT I-2D PRIMITIVES 1. Define Computer graphics. 2. Define refresh

More information

CHAPTER 2 REVIEW COORDINATE GEOMETRY MATH Warm-Up: See Solved Homework questions. 2.2 Cartesian coordinate system

CHAPTER 2 REVIEW COORDINATE GEOMETRY MATH Warm-Up: See Solved Homework questions. 2.2 Cartesian coordinate system CHAPTER 2 REVIEW COORDINATE GEOMETRY MATH6 2.1 Warm-Up: See Solved Homework questions 2.2 Cartesian coordinate system Coordinate axes: Two perpendicular lines that intersect at the origin O on each line.

More information

Real Time Data Plotting

Real Time Data Plotting Real Time Data Plotting Introduction This lesson will show how to write a program plot data on a X-Y graph. On the Arduino, write a program to sample a sensor and print the voltage to the Serial interface.

More information

Ū P O K O O T E I K A A M Ā U I U N I V E R S I T Y O F W E L L I N G T O N EXAMINATIONS 2014 TRIMESTER 1 *** WITH SOLUTIONS ***

Ū P O K O O T E I K A A M Ā U I U N I V E R S I T Y O F W E L L I N G T O N EXAMINATIONS 2014 TRIMESTER 1 *** WITH SOLUTIONS *** T E W H A R E W Ā N A N G A O T E Student ID:....................... Ū P O K O O T E I K A A M Ā U I VUW VICTORIA U N I V E R S I T Y O F W E L L I N G T O N EXAMINATIONS 2014 TRIMESTER 1 *** WITH SOLUTIONS

More information

Computer Graphics Hands-on

Computer Graphics Hands-on Computer Graphics Hands-on Two-Dimensional Transformations Objectives Visualize the fundamental 2D geometric operations translation, rotation about the origin, and scale about the origin Learn how to compose

More information

Boardworks Ltd KS3 Mathematics. S1 Lines and Angles

Boardworks Ltd KS3 Mathematics. S1 Lines and Angles 1 KS3 Mathematics S1 Lines and Angles 2 Contents S1 Lines and angles S1.1 Labelling lines and angles S1.2 Parallel and perpendicular lines S1.3 Calculating angles S1.4 Angles in polygons 3 Lines In Mathematics,

More information

Module Contact: Dr Stephen Laycock, CMP Copyright of the University of East Anglia Version 1

Module Contact: Dr Stephen Laycock, CMP Copyright of the University of East Anglia Version 1 UNIVERSITY OF EAST ANGLIA School of Computing Sciences Main Series PG Examination 2013-14 COMPUTER GAMES DEVELOPMENT CMPSME27 Time allowed: 2 hours Answer any THREE questions. (40 marks each) Notes are

More information

B.Stat / B.Math. Entrance Examination 2017

B.Stat / B.Math. Entrance Examination 2017 B.Stat / B.Math. Entrance Examination 017 BOOKLET NO. TEST CODE : UGA Forenoon Questions : 0 Time : hours Write your Name, Registration Number, Test Centre, Test Code and the Number of this Booklet in

More information

Revision Problems for Examination 2 in Algebra 1

Revision Problems for Examination 2 in Algebra 1 Centre for Mathematical Sciences Mathematics, Faculty of Science Revision Problems for Examination in Algebra. Let l be the line that passes through the point (5, 4, 4) and is at right angles to the plane

More information

CS Exam 1 Review Problems Fall 2017

CS Exam 1 Review Problems Fall 2017 CS 45500 Exam 1 Review Problems Fall 2017 1. What is a FrameBuffer data structure? What does it contain? What does it represent? How is it used in a graphics rendering pipeline? 2. What is a Scene data

More information

Math 9 Final Exam Review and Outline

Math 9 Final Exam Review and Outline Math 9 Final Exam Review and Outline Your Final Examination in Mathematics 9 is a comprehensive final of all material covered in the course. It is broken down into the three sections: Number Sense, Patterns

More information

Computer Graphics. The Two-Dimensional Viewing. Somsak Walairacht, Computer Engineering, KMITL

Computer Graphics. The Two-Dimensional Viewing. Somsak Walairacht, Computer Engineering, KMITL Computer Graphics Chapter 6 The Two-Dimensional Viewing Somsak Walairacht, Computer Engineering, KMITL Outline The Two-Dimensional Viewing Pipeline The Clipping Window Normalization and Viewport Transformations

More information

CISC 1600, Lab 3.1: Processing

CISC 1600, Lab 3.1: Processing CISC 1600, Lab 3.1: Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using OpenProcessing, a site for building processing sketches online using processing.js. 1.1. Go to https://www.openprocessing.org/class/57767/

More information

CSCI 4620/8626. Coordinate Reference Frames

CSCI 4620/8626. Coordinate Reference Frames CSCI 4620/8626 Computer Graphics Graphics Output Primitives Last update: 2014-02-03 Coordinate Reference Frames To describe a picture, the world-coordinate reference frame (2D or 3D) must be selected.

More information

Computer Graphics 7: Viewing in 3-D

Computer Graphics 7: Viewing in 3-D Computer Graphics 7: Viewing in 3-D In today s lecture we are going to have a look at: Transformations in 3-D How do transformations in 3-D work? Contents 3-D homogeneous coordinates and matrix based transformations

More information

Multivariable Calculus

Multivariable Calculus Multivariable Calculus Chapter 10 Topics in Analytic Geometry (Optional) 1. Inclination of a line p. 5. Circles p. 4 9. Determining Conic Type p. 13. Angle between lines p. 6. Parabolas p. 5 10. Rotation

More information

Computer Graphics: Geometric Transformations

Computer Graphics: Geometric Transformations Computer Graphics: Geometric Transformations Geometric 2D transformations By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, 1 Outlines 1. Basic 2D transformations 2. Matrix Representation of 2D transformations

More information

Chapter 8: Implementation- Clipping and Rasterization

Chapter 8: Implementation- Clipping and Rasterization Chapter 8: Implementation- Clipping and Rasterization Clipping Fundamentals Cohen-Sutherland Parametric Polygons Circles and Curves Text Basic Concepts: The purpose of clipping is to remove objects or

More information

CS602- Computer Graphics Solved MCQS From Midterm Papers. MIDTERM EXAMINATION Spring 2013 CS602- Computer Graphics

CS602- Computer Graphics Solved MCQS From Midterm Papers. MIDTERM EXAMINATION Spring 2013 CS602- Computer Graphics CS602- Computer Graphics Solved MCQS From Midterm Papers Dec 18,2013 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 Question No: 1 ( Marks: 1 ) - Please choose one DDA abbreviated for. Discrete

More information

CISC 1600, Lab 2.1: Processing

CISC 1600, Lab 2.1: Processing CISC 1600, Lab 2.1: Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using Sketchpad, a site for building processing sketches online using processing.js. 1.1. Go to http://cisc1600.sketchpad.cc

More information

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

COMPUTER AIDED ENGINEERING DESIGN (BFF2612) COMPUTER AIDED ENGINEERING DESIGN (BFF2612) BASIC MATHEMATICAL CONCEPTS IN CAED by Dr. Mohd Nizar Mhd Razali Faculty of Manufacturing Engineering mnizar@ump.edu.my COORDINATE SYSTEM y+ y+ z+ z+ x+ RIGHT

More information

Lab Manual. Computer Graphics. T.E. Computer. (Sem VI)

Lab Manual. Computer Graphics. T.E. Computer. (Sem VI) Lab Manual Computer Graphics T.E. Computer (Sem VI) Index Sr. No. Title of Programming Assignments Page No. 1. Line Drawing Algorithms 3 2. Circle Drawing Algorithms 6 3. Ellipse Drawing Algorithms 8 4.

More information

1. (10 pts) Order the following three images by how much memory they occupy:

1. (10 pts) Order the following three images by how much memory they occupy: CS 47 Prelim Tuesday, February 25, 2003 Problem : Raster images (5 pts). (0 pts) Order the following three images by how much memory they occupy: A. a 2048 by 2048 binary image B. a 024 by 024 grayscale

More information

Transform 1: Translate, Matrices

Transform 1: Translate, Matrices Transform 1: Translate, Matrices This unit introduces coordinate system transformations and explains how to control their scope. Syntax introduced: translate(), pushmatrix(), popmatrix() The coordinate

More information

COMP 175 COMPUTER GRAPHICS. Ray Casting. COMP 175: Computer Graphics April 26, Erik Anderson 09 Ray Casting

COMP 175 COMPUTER GRAPHICS. Ray Casting. COMP 175: Computer Graphics April 26, Erik Anderson 09 Ray Casting Ray Casting COMP 175: Computer Graphics April 26, 2018 1/41 Admin } Assignment 4 posted } Picking new partners today for rest of the assignments } Demo in the works } Mac demo may require a new dylib I

More information

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations Multimedia Systems 03 Vector Graphics 2D and 3D Graphics, Transformations Imran Ihsan Assistant Professor, Department of Computer Science Air University, Islamabad, Pakistan www.imranihsan.com Lectures

More information

Iteration in Programming

Iteration in Programming Iteration in Programming for loops Produced by: Mairead Meagher Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topics list There are three types of loop in programming: While

More information

Unit 12 Topics in Analytic Geometry - Classwork

Unit 12 Topics in Analytic Geometry - Classwork Unit 1 Topics in Analytic Geometry - Classwork Back in Unit 7, we delved into the algebra and geometry of lines. We showed that lines can be written in several forms: a) the general form: Ax + By + C =

More information

Number/Computation. addend Any number being added. digit Any one of the ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9

Number/Computation. addend Any number being added. digit Any one of the ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9 14 Number/Computation addend Any number being added algorithm A step-by-step method for computing array A picture that shows a number of items arranged in rows and columns to form a rectangle associative

More information

Lesson 1. Unit 2 Practice Problems. Problem 2. Problem 1. Solution 1, 4, 5. Solution. Problem 3

Lesson 1. Unit 2 Practice Problems. Problem 2. Problem 1. Solution 1, 4, 5. Solution. Problem 3 Unit 2 Practice Problems Lesson 1 Problem 1 Rectangle measures 12 cm by 3 cm. Rectangle is a scaled copy of Rectangle. Select all of the measurement pairs that could be the dimensions of Rectangle. 1.

More information

Answer Key: Three-Dimensional Cross Sections

Answer Key: Three-Dimensional Cross Sections Geometry A Unit Answer Key: Three-Dimensional Cross Sections Name Date Objectives In this lesson, you will: visualize three-dimensional objects from different perspectives be able to create a projection

More information

GeoGebra. 10 Lessons. maths.com. Gerrit Stols. For more info and downloads go to:

GeoGebra. 10 Lessons.   maths.com. Gerrit Stols. For more info and downloads go to: GeoGebra in 10 Lessons For more info and downloads go to: http://school maths.com Gerrit Stols Acknowledgements Download GeoGebra from http://www.geogebra.org GeoGebra is dynamic mathematics open source

More information

CS 184, Fall 1996 Midterm #1 Professor: unknown

CS 184, Fall 1996 Midterm #1 Professor: unknown CS 184, Fall 1996 Midterm #1 Professor: unknown Problem #1, Transformations (8pts) All questions assume a right handed coordinate system. Circle the correct answer: (2 pts each) a) In 3 space, two rotations

More information

GCSE LINKED PAIR PILOT 4364/02 METHODS IN MATHEMATICS UNIT 2: Methods (Calculator) HIGHER TIER

GCSE LINKED PAIR PILOT 4364/02 METHODS IN MATHEMATICS UNIT 2: Methods (Calculator) HIGHER TIER Surname Other Names Centre Number 0 Candidate Number GCSE LINKED PAIR PILOT 4364/02 METHODS IN MATHEMATICS UNIT 2: Methods (Calculator) HIGHER TIER A.M. MONDAY, 17 June 2013 2 hours ADDITIONAL MATERIALS

More information

End-Term Examination

End-Term Examination Paper Code: MCA-108 Paper ID : 44108 Second Semester [MCA] MAY-JUNE 2006 Q. 1 Describe the following in brief :- (3 x 5 = 15) (a) QUADRATIC SURFACES (b) RGB Color Models. (c) BSP Tree (d) Solid Modeling

More information

DC2 File Format. 1. Header line 2. Entity line 3. Point line 4. String line

DC2 File Format. 1. Header line 2. Entity line 3. Point line 4. String line DC2 File Format The DesignCAD DC2 drawing file is an ASCII file, with the data present in character format. Each "record" in the file is actually a line in a text file. There are four types of records,

More information

Kimberly Nguyen Professor Oliehoek Introduction to Programming 8 September 2013

Kimberly Nguyen Professor Oliehoek Introduction to Programming 8 September 2013 1. A first program // Create 200x200 canvas // Print favorite quote size(200, 200); println("it is what it is"); // Draw rectangle and a line rect(100,100,50,50); line(0,0,50,50); // Save as.pde. Can be

More information

Class #1. introduction, functions, variables, conditionals

Class #1. introduction, functions, variables, conditionals Class #1 introduction, functions, variables, conditionals what is processing hello world tour of the grounds functions,expressions, statements console/debugging drawing data types and variables decisions

More information

How to draw and create shapes

How to draw and create shapes Adobe Flash Professional Guide How to draw and create shapes You can add artwork to your Adobe Flash Professional documents in two ways: You can import images or draw original artwork in Flash by using

More information

1 Getting started with Processing

1 Getting started with Processing cis3.5, spring 2009, lab II.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For

More information

Size Transformations in the Coordinate Plane

Size Transformations in the Coordinate Plane Size Transformations in the Coordinate Plane I.e. Dilations (adapted from Core Plus Math, Course 2) Concepts 21-26 Lesson Objectives In this investigation you will use coordinate methods to discover several

More information

2D Shapes. Creative Coding & Generative Art in Processing 2 Ira Greenberg, Dianna Xu, Deepak Kumar

2D Shapes. Creative Coding & Generative Art in Processing 2 Ira Greenberg, Dianna Xu, Deepak Kumar 2D Shapes Creative Coding & Generative Art in Processing 2 Ira Greenberg, Dianna Xu, Deepak Kumar Did you do this? Read Chapter 2 (pages 33-50) Read and do the Coordinate Systems & Shapes and Color tutorials

More information

Perspective Mappings. Contents

Perspective Mappings. Contents Perspective Mappings David Eberly, Geometric Tools, Redmond WA 98052 https://www.geometrictools.com/ This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy

More information

Computer Graphics Fundamentals. Jon Macey

Computer Graphics Fundamentals. Jon Macey Computer Graphics Fundamentals Jon Macey jmacey@bournemouth.ac.uk http://nccastaff.bournemouth.ac.uk/jmacey/ 1 1 What is CG Fundamentals Looking at how Images (and Animations) are actually produced in

More information

CS 184, Fall 1996 Midterm #1 Professor: unknown

CS 184, Fall 1996 Midterm #1 Professor: unknown CS 184, Fall 1996 Midterm #1 Professor: unknown Problem #1, Transformations (8pts) All questions assume a right handed coordinate system. Circle the correct answer: (2 pts each) a) In 3 space, two rotations

More information

For each question, indicate whether the statement is true or false by circling T or F, respectively.

For each question, indicate whether the statement is true or false by circling T or F, respectively. True/False For each question, indicate whether the statement is true or false by circling T or F, respectively. 1. (T/F) Rasterization occurs before vertex transformation in the graphics pipeline. 2. (T/F)

More information

Transformations in the Plane - Activity 1 Reflections in axes and an oblique line.

Transformations in the Plane - Activity 1 Reflections in axes and an oblique line. Name: Class: p 5 Maths Helper Plus Resource Set. Copyright 00 Bruce A. Vaughan, Teachers Choice Software Transformations in the Plane - Activity Reflections in axes and an oblique line. ) On the diagram

More information

Course Title: Computer Graphics Course no: CSC209

Course Title: Computer Graphics Course no: CSC209 Course Title: Computer Graphics Course no: CSC209 Nature of the Course: Theory + Lab Semester: III Full Marks: 60+20+20 Pass Marks: 24 +8+8 Credit Hrs: 3 Course Description: The course coversconcepts of

More information

CS-321 Thursday 12 September 2002 Quiz (3 pts.) What is the purpose of a control grid in a cathode ray tube (CRT)?

CS-321 Thursday 12 September 2002 Quiz (3 pts.) What is the purpose of a control grid in a cathode ray tube (CRT)? Name CS-321 Thursday 12 September 2002 Quiz 1 1. (3 pts.) What is the purpose of a control grid in a cathode ray tube (CRT)? 2. (7 pts.) For the same resolution in pixels (for example, 640x480), why does

More information

An Introduction to Processing

An Introduction to Processing An Introduction to Processing Creating static drawings Produced by: Mairead Meagher Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topics list Coordinate System in Computing.

More information

Processing Transformations. Affine Transformations

Processing Transformations. Affine Transformations Processing Transformations Affine Transformations 1 A house size(200, 200); rect(50, 75, 100, 75); // (left, top, w, h) rect(100, 110, 20, 40); // door rect(70, 110, 15, 15); //window triangle(50, 75,

More information

2D Object Definition (1/3)

2D Object Definition (1/3) 2D Object Definition (1/3) Lines and Polylines Lines drawn between ordered points to create more complex forms called polylines Same first and last point make closed polyline or polygon Can intersect itself

More information

12.4 Rotations. Learning Objectives. Review Queue. Defining Rotations Rotations

12.4 Rotations. Learning Objectives. Review Queue. Defining Rotations Rotations 12.4. Rotations www.ck12.org 12.4 Rotations Learning Objectives Find the image of a figure in a rotation in a coordinate plane. Recognize that a rotation is an isometry. Review Queue 1. Reflect XY Z with

More information

Higher tier unit 6a check in test. Calculator

Higher tier unit 6a check in test. Calculator Higher tier unit 6a check in test Calculator Q1. The point A has coordinates (2, 3). The point B has coordinates (6, 8). M is the midpoint of the line AB. Find the coordinates of M. Q2. The points A, B

More information

Section 12.1 Translations and Rotations

Section 12.1 Translations and Rotations Section 12.1 Translations and Rotations Any rigid motion that preserves length or distance is an isometry. We look at two types of isometries in this section: translations and rotations. Translations A

More information

For more info and downloads go to: Gerrit Stols

For more info and downloads go to:   Gerrit Stols For more info and downloads go to: http://school-maths.com Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It

More information

Shadows in Computer Graphics

Shadows in Computer Graphics Shadows in Computer Graphics Steven Janke November 2014 Steven Janke (Seminar) Shadows in Computer Graphics November 2014 1 / 49 Shadows (from Doom) Steven Janke (Seminar) Shadows in Computer Graphics

More information

CS110 Introduction to Computing Fall 2016 Practice Exam 1 -- Solutions

CS110 Introduction to Computing Fall 2016 Practice Exam 1 -- Solutions CS110 Introduction to Computing Fall 2016 Practice Exam 1 -- Solutions The exam will be closed-note and closed-book; please consider this fact before using your notes on this practice version. Please see

More information

Alternate Angles. Clip 67. Mathswatch

Alternate Angles. Clip 67. Mathswatch Clip 67 Alternate Angles ) Line PQ is parallel to line RS If angle PQR is equal to 6 a) What is the size of angle QRS? b) Give a reason for ou answer. P 6 Q R S ) Line DCE is parallel to line AB a) Find

More information

COMP30019 Graphics and Interaction Scan Converting Polygons and Lines

COMP30019 Graphics and Interaction Scan Converting Polygons and Lines COMP30019 Graphics and Interaction Scan Converting Polygons and Lines Department of Computer Science and Software Engineering The Lecture outline Introduction Scan conversion Scan-line algorithm Edge coherence

More information

TeeJay Publishers Homework for Level D book Ch 10-2 Dimensions

TeeJay Publishers Homework for Level D book Ch 10-2 Dimensions Chapter 10 2 Dimensions Exercise 1 1. Name these shapes :- a b c d e f g 2. Identify all the 2 Dimensional mathematical shapes in these figures : (d) (e) (f) (g) (h) 3. Write down the special name for

More information

Module Contact: Dr R J Lapeer, CMP Copyright of the University of East Anglia Version 1

Module Contact: Dr R J Lapeer, CMP Copyright of the University of East Anglia Version 1 UNIVERSITY OF EAST ANGLIA School of Computing Sciences Main Series UG Examination 2012-13 GRAPHICS 1 CMPC2G04 Time allowed: 2 hours Answer THREE questions out of FOUR. (40 marks each) Notes are not permitted

More information

Direction Fields; Euler s Method

Direction Fields; Euler s Method Direction Fields; Euler s Method It frequently happens that we cannot solve first order systems dy (, ) dx = f xy or corresponding initial value problems in terms of formulas. Remarkably, however, this

More information

Conic Sections. College Algebra

Conic Sections. College Algebra Conic Sections College Algebra Conic Sections A conic section, or conic, is a shape resulting from intersecting a right circular cone with a plane. The angle at which the plane intersects the cone determines

More information

GCE AS and A Level. Physics A. AS exams 2009 onwards A2 exams 2010 onwards. Unit 3X: Approved specimen question paper. Version 1.0

GCE AS and A Level. Physics A. AS exams 2009 onwards A2 exams 2010 onwards. Unit 3X: Approved specimen question paper. Version 1.0 GCE AS and A Level Physics A AS exams 2009 onwards A2 exams 2010 onwards Unit 3X: Approved specimen question paper Version 1.0 General Certificate of Education 2009 Advanced Subsidiary Examination abc

More information

Level8opaedia. A level is a level. Compiled for

Level8opaedia. A level is a level. Compiled for Level8opaedia A level is a level Compiled for www.glosmaths.org, 2008 Numbers and the Number System Understand the equivalence between recurring decimals and fractions Decide which of the following fractions

More information

SHAPE AND STRUCTURE. Shape and Structure. An explanation of Mathematical terminology

SHAPE AND STRUCTURE. Shape and Structure. An explanation of Mathematical terminology Shape and Structure An explanation of Mathematical terminology 2005 1 POINT A dot Dots join to make lines LINE A line is 1 dimensional (length) A line is a series of points touching each other and extending

More information

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~ Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~ Question # 1 of 10 ( Start time: 08:04:29 PM ) Total Marks: 1 Sutherland-Hodgeman clipping algorithm clips any polygon against

More information

Moore Catholic High School Math Department

Moore Catholic High School Math Department Moore Catholic High School Math Department Geometry Vocabulary The following is a list of terms and properties which are necessary for success in a Geometry class. You will be tested on these terms during

More information

7. r = r = r = r = r = 2 5

7. r = r = r = r = r = 2 5 Exercise a: I. Write the equation in standard form of each circle with its center at the origin and the given radius.. r = 4. r = 6 3. r = 7 r = 5 5. r = 6. r = 6 7. r = 0.3 8. r =.5 9. r = 4 0. r = 3.

More information

About Finish Line Mathematics 5

About Finish Line Mathematics 5 Table of COntents About Finish Line Mathematics 5 Unit 1: Big Ideas from Grade 1 7 Lesson 1 1.NBT.2.a c Understanding Tens and Ones [connects to 2.NBT.1.a, b] 8 Lesson 2 1.OA.6 Strategies to Add and Subtract

More information

CPSC Fall L01 Final Exam

CPSC Fall L01 Final Exam CPSC 601.36 - Fall 2009 - L01 Final Exam Copyright Jeffrey Boyd 2009 December 12, 2009 Time: 120 minutes General instructions: 1. This exam is open-book. You may use any reference material you require,

More information

8. The triangle is rotated around point D to create a new triangle. This looks like a rigid transformation.

8. The triangle is rotated around point D to create a new triangle. This looks like a rigid transformation. 2.1 Transformations in the Plane 1. True 2. True 3. False 4. False 5. True 6. False 7. True 8. The triangle is rotated around point D to create a new triangle. This looks like a rigid transformation. 9.

More information

Using Methods. Methods that handle events. Mairead Meagher Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics

Using Methods. Methods that handle events. Mairead Meagher Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics Using Methods Methods that handle events Produced by: Mairead Meagher Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Caveat The term function is used in Processing e.g. line(),

More information

Computer Science 474 Spring 2010 Viewing Transformation

Computer Science 474 Spring 2010 Viewing Transformation Viewing Transformation Previous readings have described how to transform objects from one position and orientation to another. One application for such transformations is to create complex models from

More information

Interaction Design A.A. 2017/2018

Interaction Design A.A. 2017/2018 Corso di Laurea Magistrale in Design, Comunicazione Visiva e Multimediale - Sapienza Università di Roma Interaction Design A.A. 2017/2018 7 Conditionals in Processing Francesco Leotta, Andrea Marrella

More information

Alaska Mathematics Standards Vocabulary Word List Grade 7

Alaska Mathematics Standards Vocabulary Word List Grade 7 1 estimate proportion proportional relationship rate ratio rational coefficient rational number scale Ratios and Proportional Relationships To find a number close to an exact amount; an estimate tells

More information

PLC Papers Created For:

PLC Papers Created For: PLC Papers Created For: Year 10 Topic Practice Papers: Polygons Polygons 1 Grade 4 Look at the shapes below A B C Shape A, B and C are polygons Write down the mathematical name for each of the polygons

More information