Essays /

Paper Of Web Programming Essay

Essay preview

H. Jordon Math 175 Spring 2008

Project 1: Computer Graphics 1 Introduction

Computer graphics are images displayed or animated on a computer screen. Applications of computer graphics are widespread and growing rapidly. For instance, computer-aided design is an integral part of many engineering processes. The entertainment industry has made the most spectacular use of computer graphics–from the special effects in King Kong to the Nintendo Wii. Most interactive computer software for business and industry makes use of computer graphics including screen displays, desktop publishing, and slide production for commercial and education presentations. Consequently, most students studying a computer language spend some time learning how to use two-dimensional (2D) graphics, and maybe three dimensional (3D) graphics.

2

Transformations in 2D

We begin by examining some of the basic mathematics used to manipulate and display graphical images such as a letter of the alphabet. Such an image consists of a number of points, connected lines or curves, and information about how to fill closed regions bounded by the lines and curves. Often, curved lines are approximated by short straight-line segments, and a figure is defined mathematically by a list of points. The capital letter N can be determined by eight points, or vertices. The coordinates of the points can be stored in a data matrix D. In addition to D, it is necessary to specify which vertices are connected by lines, but we will omit this detail for now. The main reason graphical objects are described by a collection of straight-line segments is that the standard transformations in computer graphics map line segments onto other line segments. Once the vertices that describe an object have been transformed, their images can be connected with the appropriate straight lines to produce the compete image of the original object. 1. On graph paper, carefully draw the letter N. Construct a data matrix D containing the eight points or vertices from your drawing. Include in your report a picture of your letter N.

1

2. Given a matrix A =

1 .25 , describe the effect of left multiplication by A on the letter 0 1 N. Include in your report a picture of the letter N after the transformation by A.

3. In the previous question, the N looks a bit too wide after the transformation by the matrix A. to compensate, multiply (on the left) the coordinates of the letter obtained in .75 0 the previous question by the matrix S = . Include a picture of this letter N 0 1 in your report and describe with a short sentence the effect of left multiplication by the matrix S. There are three different ways we can move an object to another location. The first w...

Read more

Keywords

0 1 1.2 1/2 1/4 10 11 12 13 14 15 175 18 2 20 2008 24 25 2d 3 30 3d 4 4.2 45 5 6 60 7 75 8 9 a1 a2 ab abil abl accept accomplish activ actual ad addit advanc aid along alphabet also amount analog angl anim anoth answer appear appli applic appropri approxim argument around assum attach attempt attent axe axi b ba bare basic begin biologist bit bk bound busi calcul call cancer cannot capit care case challeng check chemic close collect column combin commerci commut compar compens compet composit compress comput computer-aid connect consequ consid consist construct contain convinc coordin correspond cos could coupl current curv d data denot depend describ design desktop detail detect determin develop defin dilat dimension display differ done door dot dr draw drug dx dy earlier easili educ eight engin entertain environ even examin exampl excit experiment explain express extent eye effect fact factor featur feel find first focus follow formula four front general geometr geometri give given glove graph graphic grow h hand head helmet hold homogen horizont howev i.e ident identifi identifi illustr imag implement import includ indic industri inform ing instanc integr interact interest introduct involv jordon k kbk king know kong languag learn left length let letter lie like limit line list ll locat look made main make mani manipul map math mathemat mathematician matric matrix mayb memori might model modern molecul molecular move movement multipl multipli must n necessari new newest next nintendo number numer object observ obtain occurr often old omit one onto open origin p30 p30p45 p30r45 p45 packag paper parallel part particular perform perpendicular physic pictur pixel plane point posit possibl potenti preced predict present previous printout process processor produc product program progress project protein provid publish q qr question quick r r3 r45p30 rapid rd reaction realist realiti reason rectangl region repeat report repres represent requir research respect result rewrit reflect right rotat row rq saw say scale scientist scratch screen search sec second see segment sentenc set shearand shearand-scal short show similar simul sin site slide small softwar sometim space special specifi specific spectacular speed spend spring standard step store straight straight-lin stretch student studi subroutin suppos surfac sx sy tan tell term test textbook though three thus tilt time tini toward transform translat treat tri triangl trigonometr trigonometri turn two two-dimension type unit upon upward us us0 use usual vector version vertic via virtual visual vital want way web well wide widespread wii wish word work would write x x-axi x-coordin xr xy xy-plan y y-axi y-coordin yr yz yz-plane z z-axi θ φ ψ field figure fill find finger first flip