Computer Science 474 Spring 2010 Viewing Transformation

Size: px
Start display at page:

Download "Computer Science 474 Spring 2010 Viewing Transformation"

Transcription

1 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 simple primitives. For example, a robot arm may be composed of cylinders, spheres, and polygons of different sizes and orientations. Transformations may be used as part of the modeling process to describe how the primitive elements are transformed and combined to form the more complex object. Modeling will be described in a later reading. Another application of transformations is to modify the entire scene so that it appears different on the screen to the viewer. For example, if the scene is rendered from the viewer s position and orientation, and the viewer position changes, then the scene needs to be transformed accordingly before being drawn to the screen. This is best described by considering two separate coordinate systems. The world coordinate system, or world space, is where objects are defined. This space may be very application specific. For example, if modeling subatomic particles, coordinates may be specified in angstroms while if modeling the universe, light years may be more appropriate. The position of the viewer may be some arbitrary location in world space. However, angstroms and light years do not fit on the screen very well, so a different space is necessary to define where to put things on the screen. This is known as screen space. The typical measurements for screen space are in pixels. Although we think of the screen as two dimensional, screen space can be defined as three dimensional, in which the Z axis is perpendicular to the screen and defines what objects are in front of other objects for display purposes. The process of converting from world space to screen space is known as the viewing transformation. Various pieces of information are combined to transform objects defined in world space to places on the screen to draw graphic primitives. Examples of the necessary information are: Viewer position and orientation Point being looked at Distance from viewer to projection window Location and orientation of viewing window (viewport) on the screen This reading will focus on the concepts and process of the 2 D viewing transformation while the next reading will expand these to the 3 D case. Windows and Viewports As described, world coordinates are specified in whatever units make sense for the application. An architect drawing a 2 D set of plans for a building may use feet or meters for defining the drawing while a cartographer creating a map of a country may use miles or kilometers. Regardless of the unit, it is necessary to specify what portion of the world is going to be displayed to the screen. This is done by specifying a window in the world that will get mapped to the screen. The window can be specified by the corners of the rectangle in world space coordinates. This is shown in Figure 1. Whatever is visible in 1

2 the window in world coordinates gets mapped to the screen coordinates. Note that if the window is not the same size or aspect ratio as the screen display area, distortion of the displayed image can result. Also note that there is no requirement for the window to be aligned with the world axes, and may be rotated by some amount. This might indicate the viewer has tilted his head. Figure 1. Viewport in world space mapped to screen. In screen space, rather than map the window to the entire screen, the user can select an area of the screen to display the window in, known as the viewport. A single screen can contain several viewports of the same scene, or different scenes. The viewport can be sized differently than the window or rotated to different orientations. Figure 2 shows a screen containing different viewports of the world space window shown in Figure 1. Note how the differently shaped and oriented viewports change the image. Although different systems use different terminology, we will use the term window to refer to the rectangular area in world space that represents what we want to view. It is, literally, the window into the world through which we are looking. The viewport is the porthole on the screen that we are looking through to see the objects in the window. Figure 2. Different viewports of same window. 2

3 Mapping objects from the window to the viewport can be accomplished by defining a viewing transformation and applying it to every object visible in the window. Logically, if you defined a transformation that successfully transforms the corners of the window to the corners of the viewport, that transformation will work properly for all objects contained in the window. To accomplish this, we will develop the transformation in a two step process. First, transform the window to a normalized or canonical window of unit size centered about the world origin. Next, transform the canonical window to the correct location and orientation for the viewport. A window can be defined by:,, center of the window in world coordinates width and height of the window in world coordinates angle of rotation of the window about its center To transform the window, we will translate the center to the world origin, rotate by to align it with the axes, and scale by 1/,1/. Using the standard transformation matrices previously described. This sequence can be annotated by:,, (1) Applying this transformation to all points in the window will result in the coordinates lying between 0.5 and 0.5 in both the and directions. The next step is to transform this canonical window to the viewport. Similar to a window, a viewport can be defined by:,, center of the viewport in screen coordinates width and height of the viewport in screen coordinates angle of rotation of the viewport about its center The proper sequence to transform the canonical coordinates is scale to the appropriate size, rotate about the origin, and translate the origin to the viewport center. In matrix notation,,, (2) These two sequences, (1) and (2), can be combined into a single viewing transformation matrix. When each point in the window is multiplied by this matrix, the appropriate screen coordinates result. Clipping If all of the objects in world space are transformed with the viewing transformation, there will be objects both inside and outside of the viewing area. The process of removing parts of the scene that are not visible in the window/viewport is known as clipping. In Figure 1, the pentagon in the lower right portion of world space was clipped totally out of the final scene and the circle was partially clipped. Clipping can be done at various points along the viewing process. For example, all objects can be clipped to the edges of the original viewing window, and only visible objects need to be transformed to the final screen coordinates. Alternatively, all objects can be transformed, and the transformed objects can be clipped to the viewport. To simplify the clipping operation, we will assume clipping occurs after 3

4 the first part of the viewing transformation (1). Thus, all objects are transformed to the canonical coordinates in world space before being clipped. The advantage of this is that the clipping window is a well defined rectangle centered about the origin. After clipping, only the visible points remain and are transformed with the second part of the viewing transformation, (2), for final display. The process of clipping depends on the type of object being clipped. Clipping Points The simplest drawing primitive to clip is the point. The, coordinates of the point simply need to be checked against the boundaries of the clipping window to determine if the point is inside or outside the window. Here the advantage of deferring clipping until after the first transformation can be seen. If the window were rotated in world space, the determination of inside or outside is not as simple. The disadvantage of waiting until after the first transformation is that all points need to transformed, even if the viewing window is a relatively small part of the overall scene. If there is a performance issue for the particular application, the clipping operation may be accomplished before the transformation. Clipping Lines Since we are conducting clipping to a rectangle, we can identify four discrete cases as shown in Figure 3. If both ends of the line are interior to the rectangle, as in A, the entire line is visible. If both ends are exterior the line may be totally invisible, as in B, or partially visible as in D, in which case the end line segments would be clipped and removed. Finally, if only one end of the line is interior, as in C, then the line needs to be clipped to the appropriate boundary. Figure 3. Possible line clipping configurations: A totally interior; B totally exterior; C one end interior; D ends exterior, crosses boundary An easy way to accomplish the line clipping cases shown above is to successively clip each line against the half spaces defined by the edges of the window. The half space is defined by extending the boundary line infinitely in each direction, with one side designated as being 4

5 outside the window. Figure 4 shows the progressive clipping of the lines to each of the four half spaces defined by the window. For the half space defined by the top edge of the window, both lines B and C were intersected with the half space line, the portion of both lines lying in the outside part of the half space were discarded. Lines A and D had both ends on the inside of the half space and were kept. For the right edge half space, line D was clipped, and the remainder of line B was discarded as both ends were on the outside of the half space. The bottom edge clipped line D, and the left edge did not clip or remove any lines. The remaining parts of the lines are all contained in the window and can be transformed to the viewport accordingly. Clipping Polygons Figure 4. Clipping lines to half spaces defined by window boundaries. Clipping polygons will follow a similar strategy as clipping lines. Each edge of each polygon can be classified similar to Figure 3. An additional complication in clipping polygons is that a corner of the window may become a corner of the clipped polygon as shown in Figure 5. Note the star in the lower left corner, when clipped, will consist of two edges formed from part of the left and bottom edge of the window along with parts of the original polygon as shown on the right. 5

6 Figure 5. Clipping polygons to window. The described polygon clipping algorithm is known as the Sutherland Hodgeman algorithm after its inventors. The vertices of the polygon to be clipped are ordered from 1 to n in clockwise order and added to a vertex list. Figure 6 shows the initial configuration of a five vertex polygon to be clipped at the top. Each edge, in order of vertices, is clipped to the half space defined by the top of the window, as shown in part A of Figure 6. Notice that when line 2 3 was clipped, a new point at the window top edge was added to the list. When line 3 4 was clipped, another point was added and the old point 3 discarded. The vertex list now represents a polygon with six vertices that has been clipped to the top edge. The process is repeated for the right, bottom, and left edge as shown in B, C, and D. When finished, the clipped polygon has 8 vertices. Figure 6. Step by step polygon clipping. 6

7 This algorithm works for every convex polygon, polygons with every internal angle less than 180 degrees. Note that it is possible for a concave polygon to result in two separate pieces after clipping as shown in Figure 7. Using the algorithm described, there are seven vertices after clipping as shown in the middle of the Figure. However, if you simply treat the set of vertices as a polygon and connect them together, you end up with the extra line going from vertex 7 to vertex 1 as shown on the right in the Figure. Special consideration needs to be taken to avoid this error. One solution is to convert any concave polygons to convex polygons prior to clipping. For example, any polygon can be converted to triangles which are guaranteed to be convex. Another solution, known as the Weiler Atherton algorithm traverses the vertices of a polygon in order looking at whether edges to be clipped are traversing from outside to inside the window or vice versa. If it is going from inside to outside, the window edge is followed as the next line versus the polygon edge. With this approach, the correct two clipped polygons, as shown in the middle of Figure 7, are generated. Clipping other primitives Figure 7. Concave polygon resulting in error. In addition to points, lines, and polygons, the scene to be clipped may consist of other geometric shapes, such as ellipses or circles, or different types of curves. Special clipping algorithms can be developed for each type of object. Or, more commonly, such primitives are converted to one of the three cases described and clipped accordingly. For example, a filled circle can be represented as a polygon with many edges and clipped using the polygon clipping routine. For text, a simpler approach would be to check the bounding box of each character and only display characters whose bounding box is completely interior to the viewing window. This is shown in the middle image of Figure 8. Note that characters straddling the window boundary are lost. Alternatively, each character can be converted to a polygon and clipped as shown on the right. Figure 8. Clipping text. 7

8 LAGNIAPPE Pac Man While Pong was one of the earliest computer games created, arguably Pac Man, created by Namco in 1980, is perhaps the most well known. According to the Davie Brown Celebrity Index, Pac Man has the highest brand awareness of any video game character among American consumers, recognized by 94 percent of them. The game was developed primarily by Namco employee Tōru Iwatani over eighteen months. The original title was pronounced pakku man where paku paku describes the sound of the mouth movement when widely opened and then closed in succession. The game was picked up for manufacture in the United States by Bally under the altered title Pac Man. The name was changed from Puck Man to Pac Man, as it was thought that vandals would be likely to change the P in "puck" to an F, forming a common expletive. Puck Man machines can still be found throughout Europe. Guinness World Records has awarded the Pac Man series eight records in Guinness World Records: Gamer's Edition 2008, including "First Perfect Pac Man Game" for Billy Mitchell's July 3, 1999 score; "Most Successful Coin Operated Game"; and "Largest Pac Man Game", when, in 2004, students from New York University created Pac Manhattan, a real life reenactment of the game, in which people dressed as Pac Man and the four ghosts chased each other around Manhattan city blocks. Each player was teamed with a controller who communicated the player's positions using cellular phones. 8

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

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination Rendering Pipeline 3D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination 3D Polygon Rendering What steps are necessary to utilize spatial coherence while drawing

More information

Lecture 3 Sections 2.2, 4.4. Mon, Aug 31, 2009

Lecture 3 Sections 2.2, 4.4. Mon, Aug 31, 2009 Model s Lecture 3 Sections 2.2, 4.4 World s Eye s Clip s s s Window s Hampden-Sydney College Mon, Aug 31, 2009 Outline Model s World s Eye s Clip s s s Window s 1 2 3 Model s World s Eye s Clip s s s Window

More information

Two-Dimensional Viewing. Chapter 6

Two-Dimensional Viewing. Chapter 6 Two-Dimensional Viewing Chapter 6 Viewing Pipeline Two-Dimensional Viewing Two dimensional viewing transformation From world coordinate scene description to device (screen) coordinates Normalization and

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

Clipping & Culling. Lecture 11 Spring Trivial Rejection Outcode Clipping Plane-at-a-time Clipping Backface Culling

Clipping & Culling. Lecture 11 Spring Trivial Rejection Outcode Clipping Plane-at-a-time Clipping Backface Culling Clipping & Culling Trivial Rejection Outcode Clipping Plane-at-a-time Clipping Backface Culling Lecture 11 Spring 2015 What is Clipping? Clipping is a procedure for spatially partitioning geometric primitives,

More information

Chapter 5. Projections and Rendering

Chapter 5. Projections and Rendering Chapter 5 Projections and Rendering Topics: Perspective Projections The rendering pipeline In order to view manipulate and view a graphics object we must find ways of storing it a computer-compatible way.

More information

UNIT 2. Translation/ Scaling/ Rotation. Unit-02/Lecture-01

UNIT 2. Translation/ Scaling/ Rotation. Unit-02/Lecture-01 UNIT 2 Translation/ Scaling/ Rotation Unit-02/Lecture-01 Translation- (RGPV-2009,10,11,13,14) Translation is to move, or parallel shift, a figure. We use a simple point as a starting point. This is a simple

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

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

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T Copyright 2018 Sung-eui Yoon, KAIST freely available on the internet http://sglab.kaist.ac.kr/~sungeui/render

More information

Unit 3 Transformations and Clipping

Unit 3 Transformations and Clipping Transformation Unit 3 Transformations and Clipping Changes in orientation, size and shape of an object by changing the coordinate description, is known as Geometric Transformation. Translation To reposition

More information

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into 2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into the viewport of the current application window. A pixel

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

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

3D Rendering Pipeline (for direct illumination)

3D Rendering Pipeline (for direct illumination) Clipping 3D Rendering Pipeline (for direct illumination) 3D Primitives 3D Modeling Coordinates Modeling Transformation Lighting 3D Camera Coordinates Projection Transformation Clipping 2D Screen Coordinates

More information

Lesson Polygons

Lesson Polygons Lesson 4.1 - Polygons Obj.: classify polygons by their sides. classify quadrilaterals by their attributes. find the sum of the angle measures in a polygon. Decagon - A polygon with ten sides. Dodecagon

More information

CSCI 4620/8626. Computer Graphics Clipping Algorithms (Chapter 8-5 )

CSCI 4620/8626. Computer Graphics Clipping Algorithms (Chapter 8-5 ) CSCI 4620/8626 Computer Graphics Clipping Algorithms (Chapter 8-5 ) Last update: 2016-03-15 Clipping Algorithms A clipping algorithm is any procedure that eliminates those portions of a picture outside

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

Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 24 Solid Modelling

Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 24 Solid Modelling Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 24 Solid Modelling Welcome to the lectures on computer graphics. We have

More information

pine cone Ratio = 13:8 or 8:5

pine cone Ratio = 13:8 or 8:5 Chapter 10: Introducing Geometry 10.1 Basic Ideas of Geometry Geometry is everywhere o Road signs o Carpentry o Architecture o Interior design o Advertising o Art o Science Understanding and appreciating

More information

2D Viewing. Viewing Pipeline: Window-Viewport Transf.

2D Viewing. Viewing Pipeline: Window-Viewport Transf. Viewing Pipeline: Window-Viewport Transf. 2D Viewing yw max clipping window: what to display viewport: where to be viewed translation, rotation, scaling, clipping,... Clipping Window yv max Viewport yv

More information

The radius for a regular polygon is the same as the radius of the circumscribed circle.

The radius for a regular polygon is the same as the radius of the circumscribed circle. Perimeter and Area The perimeter and area of geometric shapes are basic properties that we need to know. The more complex a shape is, the more complex the process can be in finding its perimeter and area.

More information

CARDSTOCK MODELING Math Manipulative Kit. Student Activity Book

CARDSTOCK MODELING Math Manipulative Kit. Student Activity Book CARDSTOCK MODELING Math Manipulative Kit Student Activity Book TABLE OF CONTENTS Activity Sheet for L.E. #1 - Getting Started...3-4 Activity Sheet for L.E. #2 - Squares and Cubes (Hexahedrons)...5-8 Activity

More information

TIMSS 2011 Fourth Grade Mathematics Item Descriptions developed during the TIMSS 2011 Benchmarking

TIMSS 2011 Fourth Grade Mathematics Item Descriptions developed during the TIMSS 2011 Benchmarking TIMSS 2011 Fourth Grade Mathematics Item Descriptions developed during the TIMSS 2011 Benchmarking Items at Low International Benchmark (400) M01_05 M05_01 M07_04 M08_01 M09_01 M13_01 Solves a word problem

More information

Beaumont Middle School Design Project April May 2014 Carl Lee and Craig Schroeder

Beaumont Middle School Design Project April May 2014 Carl Lee and Craig Schroeder Beaumont Middle School Design Project April May 2014 Carl Lee and Craig Schroeder 1 2 SketchUp 1. SketchUp is free, and you can download it from the website www.sketchup.com. For some K12 use, see www.sketchup.com/3dfor/k12-education.

More information

Geometry Vocabulary. acute angle-an angle measuring less than 90 degrees

Geometry Vocabulary. acute angle-an angle measuring less than 90 degrees Geometry Vocabulary acute angle-an angle measuring less than 90 degrees angle-the turn or bend between two intersecting lines, line segments, rays, or planes angle bisector-an angle bisector is a ray that

More information

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CSE528 Computer Graphics: Theory, Algorithms, and Applications CSE528 Computer Graphics: Theory, Algorithms, and Applications Hong Qin Stony Brook University (SUNY at Stony Brook) Stony Brook, New York 11794-2424 Tel: (631)632-845; Fax: (631)632-8334 qin@cs.stonybrook.edu

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

Instructional Alignment Chart

Instructional Alignment Chart CLUSTER HEADING: STANDARD: N/A CLUSTER HEADING: Identify and describe shapes (squares, circles, triangles, rectangles, hexagons, cubes, cones, cylinders, and spheres). STANDARD: K.G.3 Identify shapes as

More information

Unit 10 Study Guide: Plane Figures

Unit 10 Study Guide: Plane Figures Unit 10 Study Guide: Plane Figures *Be sure to watch all videos within each lesson* You can find geometric shapes in art. Whether determining the amount of leading or the amount of glass needed for a piece

More information

6 Mathematics Curriculum

6 Mathematics Curriculum New York State Common Core 6 Mathematics Curriculum GRADE GRADE 6 MODULE 5 Table of Contents 1 Area, Surface Area, and Volume Problems... 3 Topic A: Area of Triangles, Quadrilaterals, and Polygons (6.G.A.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

absolute value- the absolute value of a number is the distance between that number and 0 on a number line. Absolute value is shown 7 = 7-16 = 16

absolute value- the absolute value of a number is the distance between that number and 0 on a number line. Absolute value is shown 7 = 7-16 = 16 Grade Six MATH GLOSSARY absolute value- the absolute value of a number is the distance between that number and 0 on a number line. Absolute value is shown 7 = 7-16 = 16 abundant number: A number whose

More information

Mathematics Curriculum

Mathematics Curriculum 6 G R A D E Mathematics Curriculum GRADE 6 5 Table of Contents 1... 1 Topic A: Area of Triangles, Quadrilaterals, and Polygons (6.G.A.1)... 11 Lesson 1: The Area of Parallelograms Through Rectangle Facts...

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

VISIBILITY & CULLING. Don t draw what you can t see. Thomas Larsson, Afshin Ameri DVA338, Spring 2018, MDH

VISIBILITY & CULLING. Don t draw what you can t see. Thomas Larsson, Afshin Ameri DVA338, Spring 2018, MDH VISIBILITY & CULLING Don t draw what you can t see. Thomas Larsson, Afshin Ameri DVA338, Spring 2018, MDH Visibility Visibility Given a set of 3D objects, which surfaces are visible from a specific point

More information

Course Number: Course Title: Geometry

Course Number: Course Title: Geometry Course Number: 1206310 Course Title: Geometry RELATED GLOSSARY TERM DEFINITIONS (89) Altitude The perpendicular distance from the top of a geometric figure to its opposite side. Angle Two rays or two line

More information

3D Programming. 3D Programming Concepts. Outline. 3D Concepts. 3D Concepts -- Coordinate Systems. 3D Concepts Displaying 3D Models

3D Programming. 3D Programming Concepts. Outline. 3D Concepts. 3D Concepts -- Coordinate Systems. 3D Concepts Displaying 3D Models 3D Programming Concepts Outline 3D Concepts Displaying 3D Models 3D Programming CS 4390 3D Computer 1 2 3D Concepts 3D Model is a 3D simulation of an object. Coordinate Systems 3D Models 3D Shapes 3D Concepts

More information

CS 4204 Computer Graphics

CS 4204 Computer Graphics CS 4204 Computer Graphics 3D Viewing and Projection Yong Cao Virginia Tech Objective We will develop methods to camera through scenes. We will develop mathematical tools to handle perspective projection.

More information

CSE328 Fundamentals of Computer Graphics

CSE328 Fundamentals of Computer Graphics CSE328 Fundamentals of Computer Graphics Hong Qin State University of New York at Stony Brook (Stony Brook University) Stony Brook, New York 794--44 Tel: (63)632-845; Fax: (63)632-8334 qin@cs.sunysb.edu

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

How to create shapes. Drawing basic shapes. Adobe Photoshop Elements 8 guide

How to create shapes. Drawing basic shapes. Adobe Photoshop Elements 8 guide How to create shapes With the shape tools in Adobe Photoshop Elements, you can draw perfect geometric shapes, regardless of your artistic ability or illustration experience. The first step to drawing shapes

More information

Computer Graphics: Two Dimensional Viewing

Computer Graphics: Two Dimensional Viewing Computer Graphics: Two Dimensional Viewing Clipping and Normalized Window By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, 1 Outlines 1. End 2 Transformation between 2 coordinate systems To transform positioned

More information

UNIVERSITY OF NEBRASKA AT OMAHA Computer Science 4620/8626 Computer Graphics Spring 2014 Homework Set 1 Suggested Answers

UNIVERSITY OF NEBRASKA AT OMAHA Computer Science 4620/8626 Computer Graphics Spring 2014 Homework Set 1 Suggested Answers UNIVERSITY OF NEBRASKA AT OMAHA Computer Science 4620/8626 Computer Graphics Spring 2014 Homework Set 1 Suggested Answers 1. How long would it take to load an 800 by 600 frame buffer with 16 bits per pixel

More information

Geometry Practice. 1. Angles located next to one another sharing a common side are called angles.

Geometry Practice. 1. Angles located next to one another sharing a common side are called angles. Geometry Practice Name 1. Angles located next to one another sharing a common side are called angles. 2. Planes that meet to form right angles are called planes. 3. Lines that cross are called lines. 4.

More information

Geometry: Semester 2 Practice Final Unofficial Worked Out Solutions by Earl Whitney

Geometry: Semester 2 Practice Final Unofficial Worked Out Solutions by Earl Whitney Geometry: Semester 2 Practice Final Unofficial Worked Out Solutions by Earl Whitney 1. Wrapping a string around a trash can measures the circumference of the trash can. Assuming the trash can is circular,

More information

Einführung in Visual Computing

Einführung in Visual Computing Einführung in Visual Computing 186.822 Rasterization Werner Purgathofer Rasterization in the Rendering Pipeline scene objects in object space transformed vertices in clip space scene in normalized device

More information

Polygons. Discuss with a partner what a POLYGON is. Write down the key qualities a POLYGON has. Share with the class what a polygon is?

Polygons. Discuss with a partner what a POLYGON is. Write down the key qualities a POLYGON has. Share with the class what a polygon is? Polygons Use a ruler to draw 3 different POLYGONS Discuss with a partner what a POLYGON is Write down the key qualities a POLYGON has Share with the class what a polygon is? *Can you find the area of each

More information

Park Forest Math Team. Meet #3. Self-study Packet

Park Forest Math Team. Meet #3. Self-study Packet Park Forest Math Team Meet #3 Self-study Packet Problem Categories for this Meet (in addition to topics of earlier meets): 1. Mystery: Problem solving 2. : Properties of Polygons, Pythagorean Theorem 3.

More information

I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S

I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S 3D Viewing: the Synthetic Camera Programmer s reference model for specifying 3D view projection parameters to the computer General synthetic camera (e.g., PHIGS Camera, Computer Graphics: Principles and

More information

Mathematics RIT Score:

Mathematics RIT Score: Mathematics RIT Score: 201-210 Number Sense and Operations Whole Numbers Understand the concept of division using pictorial representation Use front-end estimation strategy for multiplication and division

More information

S206E Lecture 3, 5/15/2017, Rhino 2D drawing an overview

S206E Lecture 3, 5/15/2017, Rhino 2D drawing an overview Copyright 2017, Chiu-Shui Chan. All Rights Reserved. S206E057 Spring 2017 Rhino 2D drawing is very much the same as it is developed in AutoCAD. There are a lot of similarities in interface and in executing

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

Figure 1. Lecture 1: Three Dimensional graphics: Projections and Transformations

Figure 1. Lecture 1: Three Dimensional graphics: Projections and Transformations Lecture 1: Three Dimensional graphics: Projections and Transformations Device Independence We will start with a brief discussion of two dimensional drawing primitives. At the lowest level of an operating

More information

Aptitude Test Question

Aptitude Test Question Aptitude Test Question Q.1) Which software is not used for Image processing? a) MatLab b) Visual Basic c) Java d) Fortran Q.2) Which software is not used for Computer graphics? a) C b) Java c) Fortran

More information

2009 Fall Startup Event Thursday, September 24th, 2009

2009 Fall Startup Event Thursday, September 24th, 2009 009 Fall Startup Event This test consists of 00 problems to be solved in 0 minutes. All answers must be exact, complete, and in simplest form. To ensure consistent grading, if you get a decimal, mixed

More information

On Your Own. ). Another way is to multiply the. ), and the image. Applications. Unit 3 _ _

On Your Own. ). Another way is to multiply the. ), and the image. Applications. Unit 3 _ _ Applications 1 a 90 clockwise rotation matrix: - b As can be seen by the diagram, the image of P is Q and the image of R is P The coordinate of Q can be found by symmetry y R 1 P, Thus, the 45 clockwise

More information

Points and lines, Line drawing algorithms. Circle generating algorithms, Midpoint circle Parallel version of these algorithms

Points and lines, Line drawing algorithms. Circle generating algorithms, Midpoint circle Parallel version of these algorithms Jahangirabad Institute Of Technology Assistant Prof. Ankur Srivastava COMPUTER GRAPHICS Semester IV, 2016 MASTER SCHEDULE Unit-I Unit-II Class 1,2,3,4 Mon, Jan19,Tue20,Sat23,Mon 25 Class 5 Wed, Jan 27

More information

Next Generation Math Standards----Grade 3 Cognitive Complexity/Depth of Knowledge Rating: Low, Moderate, High

Next Generation Math Standards----Grade 3 Cognitive Complexity/Depth of Knowledge Rating: Low, Moderate, High Next Generation Math Standards----Grade 3 Cognitive Complexity/Depth of Knowledge Rating: Low,, BIG IDEAS (3) BIG IDEA 1: Develop understandings of multiplication and division and strategies for basic

More information

2D/3D Geometric Transformations and Scene Graphs

2D/3D Geometric Transformations and Scene Graphs 2D/3D Geometric Transformations and Scene Graphs Week 4 Acknowledgement: The course slides are adapted from the slides prepared by Steve Marschner of Cornell University 1 A little quick math background

More information

On a coordinate plane, such a change can be described by counting the number of spaces, vertically and horizontally, that the figure has moved.

On a coordinate plane, such a change can be described by counting the number of spaces, vertically and horizontally, that the figure has moved. Transformations We have studied four different kinds of transformations: translation, rotation, reflection, and dilation. Each one involves moving a figure to a new location on a plane. Translation Translation

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

3D Graphics Pipeline II Clipping. Instructor Stephen J. Guy

3D Graphics Pipeline II Clipping. Instructor Stephen J. Guy 3D Graphics Pipeline II Clipping Instructor Stephen J. Guy 3D Rendering Pipeline (for direct illumination) 3D Geometric Primitives 3D Model Primitives Modeling Transformation 3D World Coordinates Lighting

More information

L1 - Introduction. Contents. Introduction of CAD/CAM system Components of CAD/CAM systems Basic concepts of graphics programming

L1 - Introduction. Contents. Introduction of CAD/CAM system Components of CAD/CAM systems Basic concepts of graphics programming L1 - Introduction Contents Introduction of CAD/CAM system Components of CAD/CAM systems Basic concepts of graphics programming 1 Definitions Computer-Aided Design (CAD) The technology concerned with the

More information

From Vertices To Fragments-1

From Vertices To Fragments-1 From Vertices To Fragments-1 1 Objectives Clipping Line-segment clipping polygon clipping 2 Overview At end of the geometric pipeline, vertices have been assembled into primitives Must clip out primitives

More information

Chapter 3: Polynomials. When greeted with a power of a power, multiply the two powers. (x 2 ) 3 = x 6

Chapter 3: Polynomials. When greeted with a power of a power, multiply the two powers. (x 2 ) 3 = x 6 Chapter 3: Polynomials When greeted with a power of a power, multiply the two powers. (x 2 ) 3 = x 6 When multiplying powers with the same base, add the exponents. 15 7 x15 14 = 15 21 When dividing powers

More information

Geometry 10 and 11 Notes

Geometry 10 and 11 Notes Geometry 10 and 11 Notes Area and Volume Name Per Date 10.1 Area is the amount of space inside of a two dimensional object. When working with irregular shapes, we can find its area by breaking it up into

More information

Examples. Clipping. The Rendering Pipeline. View Frustum. Normalization. How it is done. Types of operations. Removing what is not seen on the screen

Examples. Clipping. The Rendering Pipeline. View Frustum. Normalization. How it is done. Types of operations. Removing what is not seen on the screen Computer Graphics, Lecture 0 November 7, 006 Eamples Clipping Types of operations Accept Reject Clip Removing what is not seen on the screen The Rendering Pipeline The Graphics pipeline includes one stage

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

2013 Four-by-Four Competition Thursday, January 31st, Round Four-by-Four Competition Thursday, January 31st, 2013.

2013 Four-by-Four Competition Thursday, January 31st, Round Four-by-Four Competition Thursday, January 31st, 2013. Round 1 Round 1 1. What is the sum of the terms of an infinite geometric sequence with first term 2016 and common ratio? 2. In how many distinguishable ways can five extra copies of your sided house key

More information

Polygons. Discuss with a partner what a POLYGON is. Write down the key qualities a POLYGON has. Share with the class what a polygon is?

Polygons. Discuss with a partner what a POLYGON is. Write down the key qualities a POLYGON has. Share with the class what a polygon is? Polygons Use a ruler to draw 3 different POLYGONS Discuss with a partner what a POLYGON is Write down the key qualities a POLYGON has Share with the class what a polygon is? *Can you find the area of each

More information

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8 Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8 Grade 6 Grade 8 absolute value Distance of a number (x) from zero on a number line. Because absolute value represents distance, the absolute value

More information

Three-Dimensional Shapes

Three-Dimensional Shapes Lesson 11.1 Three-Dimensional Shapes Three-dimensional objects come in different shapes. sphere cone cylinder rectangular prism cube Circle the objects that match the shape name. 1. rectangular prism 2.

More information

More on Coordinate Systems. Coordinate Systems (3) Coordinate Systems (2) Coordinate Systems (5) Coordinate Systems (4) 9/15/2011

More on Coordinate Systems. Coordinate Systems (3) Coordinate Systems (2) Coordinate Systems (5) Coordinate Systems (4) 9/15/2011 Computer Graphics using OpenGL, Chapter 3 Additional Drawing Tools More on Coordinate Systems We have been using the coordinate system of the screen window (in pixels). The range is from 0 (left) to some

More information

K-5 Mathematics Missouri Learning Standards: Grade-Level Expectations

K-5 Mathematics Missouri Learning Standards: Grade-Level Expectations K-5 Mathematics Missouri Learning Standards: Grade-Level Expectations Missouri Department of Elementary and Secondary Education Spring 06 Number Sense NS Kindergarten Grade Grade Grade 3 Grade 4 Grade

More information

MATHEMATICS Grade 7 Advanced Standard: Number, Number Sense and Operations

MATHEMATICS Grade 7 Advanced Standard: Number, Number Sense and Operations Standard: Number, Number Sense and Operations Number and Number Systems A. Use scientific notation to express large numbers and numbers less than one. 1. Use scientific notation to express large numbers

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

CSC 418/2504 Computer Graphics, Winter 2012 Assignment 1 (10% of course grade)

CSC 418/2504 Computer Graphics, Winter 2012 Assignment 1 (10% of course grade) CSC 418/2504 Computer Graphics, Winter 2012 Assignment 1 (10% of course grade) Part A [50 marks in total] Due 11:59pm onwed., Feb. 8, 2012. Below are 4 exercises covering di erent topics from the first

More information

CSE 167: Introduction to Computer Graphics Lecture #4: Vertex Transformation

CSE 167: Introduction to Computer Graphics Lecture #4: Vertex Transformation CSE 167: Introduction to Computer Graphics Lecture #4: Vertex Transformation Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013 Announcements Project 2 due Friday, October 11

More information

CIRCLES ON TAKS NAME CLASS PD DUE

CIRCLES ON TAKS NAME CLASS PD DUE CIRCLES ON TAKS NAME CLASS PD DUE 1. On the calculator: Let s say the radius is 2. Find the area. Now let s double the radius to 4 and find the area. How do these two numbers relate? 2. The formula for

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

EXAMINATIONS 2017 TRIMESTER 2

EXAMINATIONS 2017 TRIMESTER 2 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

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

Pick up some wrapping paper.

Pick up some wrapping paper. Pick up some wrapping paper. What is the area of the following Christmas Tree? There is a nice theorem that allows one to compute the area of any simply-connected (i.e. no holes) grid polygon quickly.

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

Unit 1, Lesson 1: Tiling the Plane

Unit 1, Lesson 1: Tiling the Plane Unit 1, Lesson 1: Tiling the Plane Let s look at tiling patterns and think about area. 1.1: Which One Doesn t Belong: Tilings Which pattern doesn t belong? 1 1.2: More Red, Green, or Blue? m.openup.org//6-1-1-2

More information

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted. CS 184: Foundations of Computer Graphics page 1 of 12 Student Name: Student ID: Instructions: Read them carefully! The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI Department of Computer Science and Engineering CS6504-COMPUTER GRAPHICS Anna University 2 & 16 Mark Questions & Answers Year / Semester: III / V Regulation:

More information

CS 325 Computer Graphics

CS 325 Computer Graphics CS 325 Computer Graphics 02 / 06 / 2012 Instructor: Michael Eckmann Today s Topics Questions? Comments? Antialiasing Polygons Interior points Fill areas tiling halftoning dithering Antialiasing Aliasing

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

What is Clipping? Why do we Clip? Lecture 9 Comp 236 Spring Clipping is an important optimization

What is Clipping? Why do we Clip? Lecture 9 Comp 236 Spring Clipping is an important optimization Clipping, Culling, Picking & Selection Trivial Rejection Outcode Clipping Plane-at-a-time Clipping Backface Culling Picking Selection Programming Assignment #2 Lecture 9 Comp 236 Spring 2005 What is Clipping?

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

Patterns in Geometry. Polygons. Investigation 1 UNIT. Explore. Vocabulary. Think & Discuss

Patterns in Geometry. Polygons. Investigation 1 UNIT. Explore. Vocabulary. Think & Discuss UNIT K Patterns in Geometry In this lesson, you will work with two-dimensional geometric figures. You will classify polygons and find angle measures. Explore Inv 1 Polygons 172 How many squares are in

More information

3.6: First Person Computer Games

3.6: First Person Computer Games 3.6: First Person Computer Games Projections of 3-D Objects Alice is an educational software program that uses a 3-D environment to teach students programming. If you have not done so already, please download

More information

CSAP Achievement Levels Mathematics Grade 7 March, 2006

CSAP Achievement Levels Mathematics Grade 7 March, 2006 Advanced Performance Level 4 (Score range: 614 to 860) Students apply equivalent representations of decimals, factions, percents; apply congruency to multiple polygons, use fractional parts of geometric

More information

Scott Foresman Investigations in Number, Data, and Space Content Scope & Sequence Correlated to Academic Language Notebooks The Language of Math

Scott Foresman Investigations in Number, Data, and Space Content Scope & Sequence Correlated to Academic Language Notebooks The Language of Math Scott Foresman Investigations in Number, Data, and Space Content Scope & Sequence Correlated to Academic Language Notebooks The Language of Math Grade 5 Content Scope & Sequence Unit 1: Number Puzzles

More information

Data Representation in Visualisation

Data Representation in Visualisation Data Representation in Visualisation Visualisation Lecture 4 Taku Komura Institute for Perception, Action & Behaviour School of Informatics Taku Komura Data Representation 1 Data Representation We have

More information

3D Rendering and Ray Casting

3D Rendering and Ray Casting 3D Rendering and Ray Casting Michael Kazhdan (601.457/657) HB Ch. 13.7, 14.6 FvDFH 15.5, 15.10 Rendering Generate an image from geometric primitives Rendering Geometric Primitives (3D) Raster Image (2D)

More information

Performance Level Descriptors. Mathematics

Performance Level Descriptors. Mathematics Performance Level Descriptors Grade 3 Well Students rarely, Understand that our number system is based on combinations of 1s, 10s, and 100s (place value, compare, order, decompose, and combine using addition)

More information